No. 284Language4 minviews 29
Published by GK Library Annex
Why Do We Call Computer Errors “Bugs”?
The famous story of a moth found inside a 1947 calculator is only half the truth
When a program behaves strangely, we often say it has a “bug.” In English, a bug is originally an insect. The story of a real moth found inside a computer is famous, but people were calling small flaws in machines “bugs” long before that.
A moth stuck in a relay
In 1947, engineers running a calculator called the Mark II at Harvard University in the United States found a moth stuck between its parts. The Mark II calculated with parts called relays, which use an electromagnet to open and close metal contacts, and the moth is said to have been caught in Relay 70.
The team removed the moth, taped it into their logbook, and wrote next to it: “first actual case of bug being found.” That logbook is now held by the Smithsonian’s National Museum of American History in the United States.
Bugs came before the insect
Look at the note again and the word “actual” stands out. It suggests the team was already calling machine flaws “bugs,” and recorded a real insect as a kind of joke.
The word goes back to the inventor Thomas Edison. Edison used it in his notebooks and letters in the 1870s, and in an 1878 letter he explained that “bugs” was what such little faults and difficulties were called. An electrical dictionary published in 1892 also defined a bug as a fault in the connections or working of electric apparatus.
Grace Hopper and “debug”
The computer scientist Grace Hopper is often named in this story. Hopper worked on the Mark II team in 1947 and liked to tell the moth story. But many accounts say she was not the one who found the moth or wrote the log entry, and the Smithsonian also says the logbook was probably not Hopper’s.
Still, Hopper and the Mark II team helped popularize the term computer bug and the related word “debug,” meaning to find and fix flaws. The two words soon became everyday language for programmers, and Korean now uses them as they are, as beogeu and dibeoging.
Calling small machine flaws “bugs” dates back to Edison’s time, and the 1947 moth was a real case that fit the word perfectly.
Notes and references · Smithsonian NMAH · IEEE Spectrum. Description of the Smithsonian National Museum of American History object “Log Book With Computer Bug” (1947); IEEE Spectrum, “Did You Know? Edison Coined the Term Bug” (2013).
Editorial standardsReport an error
Quick quiz