Tech●●●●●Difficulty 1 of 5

Was the first computer bug really a moth?

In 1947 engineers found a real moth in their computer and taped it into the logbook. The joke only worked because 'bug' was already old slang.

▶ Start the story

Yes and no. A real moth really did jam an early computer, but it was not the origin of the word bug. Engineers had been calling defects bugs since at least the 1870s. In 1878 Thomas Edison wrote about the little faults and difficulties in his inventions and called them Bugs.

The moth story is still true. On 9 September 1947, operators of the Harvard Mark II, a room-filling electromechanical computer built with relays, traced an error to a moth trapped in one of those relays. They removed it and taped it into the machine's log book with the note: First actual case of bug being found.

The key word is actual. The operators already knew the engineering slang, and they were almost certainly making a pun, enjoying the fact that for once the bug was a real insect. Their joke is actually evidence that the word was already common in computing at the time.

The story became famous thanks to Grace Hopper, a Navy officer, mathematician and computer pioneer who was working on the Mark II at Harvard and popularized it. Hopper later helped create COBOL, one of the first high-level programming languages. The log book, moth still attached, now sits in the Smithsonian National Museum of American History. So the next time software misbehaves, you can blame a very old word, and one very unlucky moth.

Official portrait of Grace Hopper in US Navy uniform and cap.
Grace Hopper, mathematician, Navy officer and computer pioneer, who made the moth story famous.Photo: James S. Davis · Public domain

Quiz me

0/3

  1. 1.Why did the operators write 'First actual case of bug being found'?
  2. 2.How could a moth break the Harvard Mark II?
  3. 3.Which fact shows the word bug was older than the moth incident?

Recap

The moth was real, but it was the first actual bug, not the first bug: Edison was using the word in 1878.

Surprising fact · The famous 1947 logbook entry, 'First actual case of bug being found', was a pun on a word that already existed.

Sources (4)

No source, no claim. Every fact in this lesson (16 claims) cites at least one of these.

  1. [1]Bug (engineering) · Wikipedia
  2. [2]Harvard Mark II · Wikipedia
  3. [3]Debugging · Wikipedia
  4. [4]Grace Hopper · Wikipedia
More lessons in 💻 Tech (3) See all tech lessons →

One more light on your map.

Get one lesson like this every day, about the things you love. Free, in two or five minutes.

Get the share card for this lesson ↗