Control-C: it makes your programs run faster!

As a postgrad in the late 80s I made some extra book money acting as a helper in the computing lab. A few of us would be posted there, for undergrads to come to for help. This tended to be focussed at the start of the year, when there were groups discovering Unix and programming for the first time.

One time an Irish girl called me over, saying that she couldn’t understand what was going on: she thought her program looked right, but for some reason each time she ran it she got partial output, and varying amounts of output each time. I don’t remember the specifics, but their assignment involved writing a program that was generating various values and writing the results in ascii tabular form to a file.

I had a look at her source code. Everything looked fine. She showed me the file generated by her last run, and indeed it looked truncated. Hmmm. “Ok, can you run your program for me, so I can see what happens?”.

She typed ./a.out and hit return. Her left hand darted to the keyboard and she hit Control-C. I was still mentally processing this when she cat‘d the output, and turned to me: “See!”. It did indeed contain partial output. Again.

“Um, can you just run it again please?”. I figured I must have not seen right. But once again she typed ./a.out, hit return, then whap! she hit Control-C. I asked her why she hit Control-C every time she ran her program: “I discovered that Control-C makes the % prompt come up quicker”.

In her mental model, the % sign appearing meant “the previous command has finished”. The undergrads were all working on a VAX-11/780, which at times was grindingly slow. She’d stumbled across a useful technique for making the prompt pop up more quickly. It hadn’t occurred to her that hitting Control-C was the cause of her problem, she just thought it was making the faulty program run faster.

This has stayed with me ever since, partly because it’s a funny story, but more as a reminder that when you don’t fully explain a system to people, they build up their own mental model about what’s going on, and as long as it fits their observations and experiences, it must be right!

This entry was posted in Humor, Unix and tagged . Bookmark the permalink.

7 Responses to Control-C: it makes your programs run faster!

  1. jdeuel says:

    I can totally relate on a smaller scale, I’m 95% certain that holding A makes all attacks in Pokemon Blue do more damage.

  2. Bernhard says:

    Ain’t userland myth great. My favourite is “you have to quit and relaunch Word for a new empty document”.

  3. toolej says:

    out of interest, did you marry her? If there was an irish programming chick back in those days that is something seriously amazing

  4. Matt Simmons says:

    Wow. As someone who has done user support before, I sympathize, but this is really an impressive bit of inventing your own reality.

    Thanks a lot for sharing!

  5. Ibod Catooga says:

    This made me poop my pants. You owe me.

  6. brokenthorn says:

    This must be the funniest thing I found today on the Internet. Made me laugh with tears. 😀

    PS – I share toolej’s opinion: did you marry her?

  7. Cristian says:

    WTF is this? this belongs to the daily wtf

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s