Computer Science · Compilers · History of Computing
Grace Hopper
Grace Hopper (1906–1992) was a mathematician, U.S. Navy rear admiral, and computing pioneer whose 1952 compiler, A-0, first let programmers write in English-like words instead of raw machine code. Her insistence that computers should understand human language, not the other way around, led directly to COBOL and shaped how nearly every programming language works today.
Who Was Grace Hopper?
Born Grace Brewster Murray on December 9, 1906 in New York City, Hopper showed an early curiosity for how things worked — as a child she famously took apart alarm clocks to see their mechanisms. She earned a B.A. in mathematics and physics from Vassar College in 1928, then a Ph.D. in mathematics from Yale University in 1934, one of relatively few women to hold a math doctorate from Yale at the time. She taught mathematics at Vassar through the 1930s.
In 1943, during World War II, Hopper joined the U.S. Naval Reserve — after initially being told she was too old and underweight to enlist, she obtained a waiver. She was assigned to the Bureau of Ships Computation Project at Harvard, working under Howard Aiken on the Harvard Mark I, one of the earliest large-scale electromechanical computers. After the war she continued in computing, working on the UNIVAC I — one of the first commercial computers — at the Eckert-Mauchly Computer Corporation.
In 1952, Hopper developed A-0, the first compiler: a program that translated symbolic mathematical code into machine code that a computer could run. She championed the then-doubted idea that programs should be written in English-like words rather than pure numeric machine code, and her team's work led directly to COBOL (Common Business-Oriented Language), first specified in 1959 — one of the earliest high-level programming languages designed for business use, and still running in legacy systems today. She is also closely associated with popularizing the term "debugging," after a real moth was found causing a relay failure in the Harvard Mark II in 1947, which her team taped into their logbook.
Hopper retired from the Navy and was recalled to active duty multiple times over her career. She retired for the final time in 1986 at age 79 as a rear admiral, at the time the oldest serving officer in the U.S. Navy. She was awarded the National Medal of Technology in 1991 and died on January 1, 1992, at age 85. In 2016 she was posthumously awarded the Presidential Medal of Freedom.
A Life in Computing
- 1906 Born Grace Brewster Murray in New York City.
- 1928 Earns a B.A. in mathematics and physics from Vassar College.
- 1934 Earns a Ph.D. in mathematics from Yale University.
- 1943 Joins the U.S. Naval Reserve during World War II after obtaining a waiver.
- 1944 Assigned to the Harvard Mark I project under Howard Aiken.
- 1947 Team traces a Harvard Mark II relay failure to a real moth, popularizing "debugging."
- 1952 Develops A-0, the first compiler, while working on UNIVAC I.
- 1959 Her team's work leads directly to the first specification of COBOL.
- 1986 Retires from the Navy for the final time as a rear admiral at age 79.
- 1991 Awarded the National Medal of Technology.
- 1992 Dies on January 1 at age 85.
- 2016 Posthumously awarded the Presidential Medal of Freedom.
What a Compiler Actually Does
In the early 1950s, most programmers wrote instructions in raw machine code or assembly — long strings of numbers and cryptic mnemonics addressed directly to the hardware, painstaking to write and nearly impossible to reuse across different machines. A compiler is a program that translates human-readable source code into the binary machine instructions a computer's processor actually executes, so a programmer can describe what they want in something closer to ordinary language or notation, and let software handle the translation to hardware.
Hopper's A-0, completed in 1952, was the first program to do this: it took symbolic, English-like instructions and translated them into the machine code a computer could run directly. At the time, many of her colleagues doubted computers could be made to understand anything resembling English at all — computers were assumed to be number-crunchers, not language processors. Hopper's insight — that the computer, not the human, should absorb the burden of translation — became the foundational idea behind every high-level programming language that followed.
The programmer never has to write the binary by hand — the compiler does the translating, every time the code runs.
From Compiler to COBOL
Once a compiler could translate symbolic instructions into machine code, the next step was designing a language that read even more like ordinary English, so people without a mathematics background — accountants, clerks, business managers — could write and understand programs. Hopper's advocacy and her team's compiler work fed directly into COBOL, specified in 1959, which used plain English-style statements for business computing tasks like payroll and inventory.
Did Hopper write COBOL herself?
Did Hopper coin the word "bug"?
Interactive Lab: Inside Hopper's Compiler & Nanosecond Wire
Before Hopper's A-0 compiler (1952) and FLOW-MATIC / COBOL (1959), programmers had to look up octal or binary machine instructions by hand and wire every memory address themselves. Pick an English-like COBOL statement below to watch how a compiler translates human words into assembly mnemonics and raw binary machine code—and compare how many manual errors a human programmer avoids.
Step 2 · Compiler Subroutine Lookup (Symbolic Assembly)
MUL R1, [0x0108] ; RATE
STORE [0x010C], R1 ; PAY
00101100 00000001 00000001 00001000
00011011 00000001 00000001 00001100
Hold a Nanosecond: Signal Latency Calculator
Why did Hopper hand out 11.8-inch (30 cm) pieces of wire to admirals and engineers? Because electricity and light travel at most ~30 cm in one nanosecond (10−9 s). Slide or pick a time unit below to see how far a signal can travel—and why faster computers must be physically smaller.
Archival Photo Gallery
Click any photograph to open it full-screen in the classroom lightbox and inspect the historical artifacts with your class.
Hopper's Key Contributions
Translated symbolic mathematical code into machine code, proving programs could be written above the level of raw hardware instructions.
Her compiler research and advocacy directly shaped COBOL, one of the first high-level languages built for business computing.
Pushed the then-doubted idea that programs should read like language, not numeric code — now standard across nearly every language.
Programmed and documented two of the earliest large-scale computers, laying groundwork for how computing projects were run.
Her team's 1947 moth-in-the-logbook incident became the most famous story tying "bug" and "debugging" to computer science.
Served and trained generations of Navy programmers across a career that stretched from World War II to her final retirement in 1986.
Hopper Hands Out Nanoseconds
Hopper was famous for making invisible things concrete. In this 1982 lecture at the National Security Agency she explains a nanosecond, a billionth of a second, by handing out pieces of wire cut to the farthest distance electricity can travel in that time. The video stops twice to ask you to predict.
Hopper's Legacy Today
Nearly every modern programming language relies on a compiler or interpreter that traces conceptually back to Hopper's founding insight: that a computer, not a human, should do the work of translating readable instructions into machine code. That single idea unlocked the entire field of software development as it exists today.
COBOL, the language her work made possible, is still running in banking, government, and insurance systems worldwide more than sixty years after its first specification — a testament to how durable her English-like design philosophy proved to be. Her legacy is also honored each year at the Grace Hopper Celebration, one of the world's largest gatherings of women technologists, named for her in recognition of a career spent proving that computers could be made to speak — and that anyone could learn to speak to them.
Practice Problems
Think about compilers, the Navy, and Hopper's life.
Easy1. In what year did Hopper complete A-0, the first compiler?
Easy2. What does a compiler do?
Medium3. COBOL was first specified in 1959. How many years passed between Hopper's A-0 compiler in 1952 and COBOL's first specification in 1959?
Medium4. What incident in 1947 is most closely associated with Hopper's team and the term "debugging"?
Challenge5. Why was Hopper's push for English-like programming languages considered radical among her colleagues in the early 1950s?
Medium6. Hopper retired from the Navy for the final time in 1986 at age 79. She was born in 1906. In what year would she have turned 80?
Easy7. What rank did Hopper hold at her final Navy retirement in 1986?
Challenge8. Which language is most directly traced back to Hopper's compiler work and her advocacy for English-like programming?