Margaret Hamilton has died at the age of 90 after a career associated with developing guidance software aboard spacecraft in NASA’s Apollo program and coining the term “software engineering.” Hamilton led teams that developed software used in six lunar landing missions between 1969 and 1972, and she later received the U.S. Presidential Medal of Freedom in 2016.
Code That Handled a Critical Computer Load
Hamilton’s most notable contribution was designing a safety mechanism within the guidance system software. The system was designed to distinguish between primary and secondary tasks when the spacecraft’s computer received more commands than it could process in real time. It would cancel lower-priority tasks and restart the operations needed for the mission, while issuing an alert to notify the astronauts.
The design’s impact became apparent during the landing of the “Eagle” lunar module on the Apollo 11 mission in 1969. When Buzz Aldrin entered commands to display altitude and other data, the computer began issuing alarms because of the increased load. However, the safety mechanism preserved the tasks essential for landing, allowing the spacecraft to reach the Sea of Tranquility safely instead of aborting the landing.
From Weather Simulation to Apollo
Hamilton began her career after graduating in mathematics from Earlham College in 1958. She worked with Massachusetts Institute of Technology mathematician Edward Lorenz and programmed the LGP-30 computer used for weather simulation before moving in 1961 to MIT’s SAGE project to write software that helped the U.S. Air Force search for potential enemy aircraft.
During her work on SAGE and Apollo research, Hamilton focused on software reliability and error prevention. One example was what later became known as the “Lorenz error,” when entering a prelaunch sequence into a mission simulator caused the system to crash. Hamilton requested the addition of protection against this type of error, and a similar input actually occurred during the Apollo 8 mission, requiring the restoration of navigation data.
A Legacy Beyond the Apollo Program
After the Apollo program ended, Hamilton continued working on error prevention and fault tolerance. She founded Higher Order Software in 1976, then left in 1985 to establish Hamilton Technologies, whose main product was the Universal Systems Language for developing complex software systems while prioritizing error prevention and defensive programming.
The Apollo software she helped develop was added to GitHub in 2015, and Google honored her in 2019 with a giant image created from more than 100,000 mirrors at a solar-panel farm in the Mojave Desert.
Why Does This News Matter?
Hamilton’s legacy matters not only because her code was part of a historic achievement, but because it showed that reliability begins with system design before a failure occurs. The software did not prevent the computer from becoming overloaded, but it determined what had to be sacrificed and what had to be preserved, turning a situation that could have threatened the mission into an organized recovery procedure. This idea remains essential in systems whose operating conditions do not easily allow failure or another attempt.