Ten years ago, in July of 2016, I ran into a story in an engineering magazine on the computer hardware and software used to help Apollo 11 become the first time people from Earth laid foot on the moon. Buried in that post is an introduction to someone who appears to have been the software creator behind the Apollo Guidance Computer, and much of the Apollo software, a young woman named Margaret Hamilton.
Margaret Hamilton passed away last week at the age of 90. Ars Technica runs a biography of Hamilton today. Much of it resonated with me.
Margaret Hamilton, who coined the term “software engineering” and led the development of onboard flight software for NASA’s Apollo program in the 1960s, died last week at the age of 90. A recipient of the Presidential Medal of Freedom in 2016, Hamilton was also immortalized as a LEGO minifig the following year—part of the “Women of NASA” set that also included astronauts Mae Jemison and Sally Ride.
“To say Margaret Hamilton was a pioneer—to say she was ahead of her time—would be a dramatic understatement. She was a software engineer at a time when that field was in its infancy, and she not only developed advanced code herself but also led a team in using that nascent technology to develop one of the most complex systems humanity had ever achieved,” said Olivier de Weck, interim head of the MIT Department of Aeronautics and Astronautics. “The Apollo program still stands as one of our greatest testaments to the power of collaboration, ingenuity, and engineering, and Hamilton was a fundamental contributor to that program’s success.”
After graduating from Earlham College in 1958 with a degree in mathematics and a minor in philosophy. She married for the first time to James Hamilton, also in 1958. The plan was for her to work until he finished his law degree, after which he would support her through graduate school to earn a PhD in mathematics.
At this point, she ended up working for MIT Mathematician Edward Lorenz. If you've ever been around fluid mechanics, you're probably familiar with the term "Lorenz Equations" - he was trying to construct a mathematical model of the weather using a set of differential equations representing changes in temperature, pressure, wind velocity, and the like. You'll know that he discovered a problem with sensitivity, now widely referred to as "sensitive dependence on initial conditions," and considered a major impact of chaos theory.
You’ve probably heard the famous story of how Lorenz kept a continuous simulation running on his LGP-30 computer, and of that fateful 1961 day when he realized that even small differences in starting values could lead to very different outcomes—a sensitivity to initial conditions that is a hallmark of chaos theory, along with strange attractors. You might not have known that it was Hamilton who was responsible for programming the LGP-30.
Computers were still pretty unusual things for scientists to work on. To borrow from that linked article:
(About the Royal McBee LGP-30.) This “desk” computer — it was the size of a desk — weighed some 800 pounds and sounded like a passing propeller plane. It was so loud that it even got its own office on the fifth floor in Building 24, a drab structure near the center of the Massachusetts Institute of Technology.
There really weren't things like compilers they could have bought to take typed input and compile it into computer code. They had to invent that.
Computers were still a novelty at the time, and neither Lorenz nor Hamilton had any programming knowledge; they taught themselves. Per a 2019 Quanta article, Lorenz was amused by her unusual methods: For instance, she once bypassed the “clunky debugging process” by rolling the paper tape down the hallway and editing the binary code by hand with a pencil. “I’d poke holes for ones, and I’d cover up with Scotch tape the others,” she recalled. Hamilton moved to another project in 1961, but not before training her replacement: a recent math graduate from Mount Holyoke named Ellen Fetter. Lorenz acknowledged the contributions of both women in his papers.
...
By 1965, Hamilton was all set to go to graduate school as planned when her husband spotted a newspaper ad saying that MIT’s Instrumentation Lab needed people to develop onboard guidance computer software for NASA’s Apollo program. She was the first programmer hired, and the first woman, working on six lunar landing missions from 1969 to 1972. At the time, binary code was stored using copper wires wound around cores. A “1” was a wire passing through a core, and a “0” was a wire bypassing the core. New England textile workers were hired to weave them together into long ropes, earning Hamilton the moniker “rope mother,” since she was responsible for those ropes.
Can you envision editing your code for a critical piece of software like that? A wire through or bypassing a toroid core?
There's more to the story just in that Ars Article, and I'm sure more if I looked around a bit more. For example, at one point, Hamilton would routinely bring her daughter Lauren to the lab on nights and weekends. One time, the kid was playing around at a computer that was running software and entered something on a keyboard that crashed the system. While nobody was advocating for putting this sort of "idiot proofing" into the software for the Apollo missions, she could see it as a possibility with astronauts floating around in zero G with little control of their position. She asked NASA higher-ups if she could add a safeguard to prevent this from happening on an actual mission, but those higher-ups didn’t take it seriously.
Until astronaut Jim Lovell actually made an error like that during the Apollo 8 mission, the first to orbit the Moon, causing all the navigational data to vanish. Hamilton was called in to retrieve the data, jokingly referring to this as the “Lauren bug.”
Hamilton in 1969, standing next to listings of the Apollo guidance software
she and her MIT team produced. Image credit: NASA
By 1968 Hamilton was "assistant director in charge" of the Command and Service module software. She thought it would be a good addition to incorporate a failsafe into the system software’s “priority display” interface routines, should the onboard guidance computer become overloaded with more tasks than it could handle in real time.
That’s exactly what happened on the historic Apollo 11 mission in 1969. As the Eagle lunar module approached the Moon, Buzz Aldrin entered the codes to display altitude and other relevant data on the screen. The onboard computer started flashing alarms, forcing Mission Control to consider aborting the landing. Hamilton’s fail-safe meant that the computer was prioritizing essential tasks and canceling nonessential ones, and the alarm was to let astronauts know that this was happening. Thanks to Hamilton’s foresight, Eagle still safely landed on the Sea of Tranquility.
After the Apollo program, Margaret Hamilton worked in the same basic place, then called Draper Lab, until 1976. She went on to found two companies, Higher Order Software in 1976 and Hamilton Technologies in 1985. Its main product is the Universal Systems Language (USL) for developing complex software systems that prioritized error prevention and defensive programming.
RIP Margaret Hamilton. Not everyone gets to say they left the world a better place than they found it. Many try. You achieved it.

Very interesting! I was about 10 years behind her in my own career. As a systems programmer in the early 70's for a special access program that I still can't tell you about, I worked on the largest computer that IBM had made at that point and it had 3MB of core memory. Later, in the early 80's I worked at the Charles Stark Draper lab at MIT. Doc Draper was still alive at the time and welcomed the group of incoming employees of arguing I was one. She was a legend there.
ReplyDelete"of which I was one"
Delete"As a systems programmer in the early 70's for a special access program that I still can't tell you about,"
DeleteHeh. I have some of those, too, except as a receiver designer.
The Computer Museum of America (they may have changed their name) in Atlanta had a corner display of MH, describing her extensive computer chops. There is also a larger version of the photo of her standing next to the huge stack of programs in the same display. In a different spot, the museum also has some of the Mission Control equipment I saw so many times on TV as a high school student. Seeing real cool history up close. Historic equipment that is slightly more massive than my iPhone . . .
ReplyDeleteMs. Jemison earned a reputation during her time in the Astronaut Office...
ReplyDeleteEvery election season I hear the same complaint from frustrated conservatives. The Republican Party’s leaders cave at the first sign of a bad headline. They campaign like lions and govern like they are just as they campaign ! That’s what I like about them, they know what’s best for America and they won’t accept anything less.
ReplyDeleteAll true. I have written plenty of angry posts about Republicans who I thpught would be Pussy Cats, but they turned out to be lions.
You are not choosing a spouse. You are choosing which direction the country moves for the next two, four, or six years. When the other option is a party that has drifted further left every cycle, sitting on their hands. And you are throughly disgusted at seeing just what our country is becoming!
Elections are binary. One side wins, and the other loses. Your protest vote for a third party, or your decision to skip the ballot entirely, does not send a message to anyone in Washington or Sacramento. It just lowers the bar for the candidate you like least to win! If you vote for today’s Progressive, Socialist, Democrats, or let them win by default, you will get exactly what you didn’t want. You should expect to see more and more of these Anti-Americans like Abdul El-Sayed sitting in our Senate, and voting to destroy our Country! You shoud see and accept less Cops throughout the country. And Mr. El-Sayed’s fellow Muslims wiping their ditry hands on the American Flag. You shoud see no more Prisons, and instead the Dangerious Criminals walking our streets alon with your Wives, and Daughters.
Immigration Policies with almost no meaningful limits, where enforcement is treated as cruelty and border security is an afterthought.
You should see a Resistance to basic election safeguards like voter ID and clean voter rolls, which most Americans support and most democracies treat as normal.
Even Van Jones Called El-sayed “Insane”. Is this the kind of Seantor you want?
And Staying home is a Vote for people like that. Every Republican, or Conservative who skips an election because the Republican candidate is imperfect is doing the Progressive, a big favor. They count on your disgust. They campaign on it. Low turnout among frustrated Conservatives is part of their strategy, whether they say so out loud or not. Also, It's ridiculous to call him a “Doctor”, he's not a Doctor.
You can fight to fix the Republican Party if you have a problem with it, in the primaries. Back better candidates. Show up at local party meetings. Call your representatives and make them nervous. But in November, Your Vote Is Crucial .
I Can't believe this is the best that the Democrats have to offer. It’s no wonder that our Country is falling apart! And it doesn’t stop with people like El-Sayed’. The New Democrats are filled with these people.
One of the purposes of voting is to get you to wait for your entire adult lifetime for voting to change things. This commitment to operating the system they way they teach you displaces you from instead doing activities that work, like Gandhi and MLK did, and surgerycenterok.com and joincrowdhealth.com. You can't do both MLK and voting at the same time, because to even begin to win a vote you have to sell voting-and-waiting to your friends and neighbors. To sell it you have to be seen doing it. If you vote, you have taken yourself out of the game; most importantly you have shifted out of gear mentally. Conservatives are just liberals on a competing team.
DeleteWhen I first saw Steve's post this morning, I almost deleted it instantly. It's not that I disagree and think he's massively wrong, it's just that I hardly ever talk about anything political and this post was most assuredly not intended to start a discussion. The comment is completely irrelevant to a story about Margaret Hamilton.
DeletePolitics as it relates to who's paying for NASA, the JPL, and so on inevitably touches the space news I report on. I routinely delete comments like this if a post more than a couple of weeks old gets one.
It's not that politics is the elephant in the room while we talk about space. It's that every room contains as many elephants as can fit, we can't see each other for the elephants, and we're shouting to be heard over the trumpeting. Some exceptional engineers hired today designed a pedestrian overpass bridge that collapsed during construction. Nobody said an exception has to be positive.
DeleteSteve@902: So, it's Margaret Hamilton's fault?
ReplyDelete"A “1” was a wire passing through a core, and a “0” was a wire bypassing the core. " Presumably not re-writeable.
"I still can't tell you about" Heh. I briefly worked on some Navy gear that wasn't classified. Wire wrap connections! The prints were an absolute nightmare. The fact that it worked was classified.
ETA The New York Times has a free-access obituary on MH with a link to a short video showing the Tonopah Solar Energy facility using 107,000 mirrors reflecting moon light to create a portrait honoring her. Kinda neat.
Delete"ETA The New York Times has a free-access obituary on MH" Thanks for that info, Robert. The only thing I linked to at the Times was a story that I couldn't read without signing in for. Is it that link?
Deletehttps://www.nytimes.com/2026/10/07/obituaries/margaret-hamilton-dead.html
I might actually sign in for that. (I consider the Times general reputation for news as accurate as a 7 year old kid doing calculus).
Yes, you create a free account first, then you can read the free stuff. Some of the free articles were paying-subscriber-only a day or three ago. Like getting day-old donuts :-) only with fewer calories.
Delete@ SiGraybeard
ReplyDeletey' wanna meet my 7 y-o grandson who's been intrigued with calculus since he turned 6; been pestering me when we babysit him almost every Sat
Hey Pops! Kin y' show me ...
My dad was at MIT from 54-62. He worked every other semester at Avco to pay the bills and spent quite a bit of time on Kwajalein, Enewetak and Ascenscion, or more rather, spent his time riding shotgun in the C-135's providing support for the camera equipment scanning for re-entering missle shots. He worked down the hall from Ben Bova at Avco, and studied under Edgerton at MIT... they don't make them like that any more.
ReplyDelete