Margaret Hamilton

American mathematician and designer of embedded computer systems (1936–2026)

Biography

Margaret Elaine Hamilton (née Heafield; August 17, 1936 – September 30, 2026) was an American computer scientist. She directed the Software Engineering Division at the MIT Instrumentation Laboratory, where she led the development of the on-board flight software for NASA's Apollo Guidance Computer for the Apollo program. She later founded the software companies Higher Order Software in 1976 and Hamilton Technologies in 1986 — both in Cambridge, Massachusetts.

Hamilton published more than 130 papers, proceedings, and reports, about sixty projects, and six major programs. She coined the term software engineering, stating, "I began to use the term 'software engineering' to distinguish it from hardware and other kinds of engineering, yet treat each type of engineering as part of the overall systems engineering process."

On November 22, 2016, Hamilton received the Presidential Medal of Freedom from President Barack Obama for her work leading to the development of on-board flight software for NASA's Apollo moon missions.

Early life and education

Margaret Heafield was born on August 17, 1936, in Paoli, Indiana, to Kenneth Heafield and Ruth Esther Heafield (née Partington). The family later moved to the Upper Peninsula of Michigan, and Margaret graduated from Hancock High School in 1954.

She studied mathematics at the University of Michigan in 1955 before transferring to Earlham College in Indiana, where her mother had been a student. She earned a Bachelor of Arts (BA) degree in mathematics with a minor in philosophy in 1958. She cited Florence Long, the head of the math department at Earlham, as helping with her desire to pursue abstract mathematics and become a mathematics professor. She said her poet father and headmaster grandfather inspired her to include a minor in philosophy in her studies.

Career

In Boston, Hamilton initially intended to enroll in graduate study in abstract mathematics at Brandeis University. However, in mid-1959, Hamilton began working for Edward Norton Lorenz, in the meteorology department at Massachusetts Institute of Technology (MIT). She developed software for predicting weather, programming on the LGP-30 and the PDP-1 computers at Marvin Minsky's Project MAC. Her work contributed to Lorenz's future publications on chaos theory, as acknowledged by Lorenz himself. At the time, computer science and software engineering were not yet established disciplines; instead, programmers learned on the job with hands-on experience. She moved on to another project in the summer of 1961, and hired and trained Ellen Fetter as her replacement.

SAGE Project

From 1961 to 1963, Hamilton worked on the Semi-Automatic Ground Environment (SAGE) Project at the MIT Lincoln Lab, where she was one of the programmers who wrote software for the prototype AN/FSQ-7 computer (the XD-1), used by the U.S. Air Force to search for possibly unfriendly aircraft. She also wrote software for a satellite tracking project at the Air Force Cambridge Research Laboratories. The SAGE Project was an extension of Project Whirlwind, started by MIT to create a computer system that could be used as a flight simulator. By September 1951, SAGE had been modified to serve military purposes more directly, and Whirlwind computers had been repurposed for use with radar systems in air defense.

Hamilton said of her work on SAGE:

What they used to do when you came into this organization as a beginner, was to assign you this program which nobody was able to ever figure out or get to run. When I was the beginner they gave it to me as well. And what had happened was it was tricky programming, and the person who wrote it took delight in the fact that all of his comments were in Greek and Latin. So I was assigned this program and I actually got it to work. It even printed out its answers in Latin and Greek. I was the first one to get it to work.

Hamilton also recalled that it was while working on SAGE that she began to understand the importance of software quality, particularly software stability. A program crash would trigger an alarm visible to other programmers and SAGE system operators.

MIT Instrumentation Laboratory and the Apollo Guidance Computer

Hamilton learned of the Apollo project in 1965 and wanted to get involved due to it being "very exciting" as a Moon program. She joined the MIT Instrumentation Laboratory, which developed the Apollo Guidance Computer for the Apollo lunar exploration program. Hamilton was initially hired as a programmer for this process but moved on into systems design.

Her first program for the Apollo mission involved lunar landmark tables for an unmanned mission to the Moon. After the mission had already launched, it was discovered that the tables had been entered in reverse order. Nevertheless, the mission was ultimately successful.

Hamilton recalled that during the next mission, she was still treated as a novice programmer. She believed this was why she had been assigned to write a contingency program that was never expected to be executed. She even named the program "Forget It". However, the program proved crucial when the unlikely scenario actually occurred. Hamilton became the mission expert, and control was handed over to "Forget It".

With time she became Director of the new Software Engineering Division. She was responsible for the team writing and testing all onboard in-flight software for the Apollo spacecraft's Command and Lunar Module and for the subsequent Skylab space station. Another part of her team designed and developed the systems software. This included error detection and recovery software such as restarts and the Display Interface Routines (also known as the Priority Displays), which Hamilton designed and developed. She worked to gain hands-on experience during a time when computer science courses were uncommon and software engineering courses did not exist.

Olivier de Weck, the Apollo Program Professor at MIT, later called Hamilton "a pioneer" in the new field of software engineering and "a fundamental contributor" to the Apollo program. He added that she not only was an advanced systems programmer in her own right, but also headed a team that developed "one of the most complex systems humanity had ever achieved".

Apollo 11 landing

In one of the critical moments of the Apollo 11 mission, the lunar module's guidance computer, through the fault-tolerant design in both its hardware and software, helped achieve a successful Moon landing despite encountering significant problems during the final descent. Hamilton had led the development of most the guidance computer's software, building on asynchronous executive software designed by J. Halcombe Laning.

The first indication of a problem came a little over 5 minutes into the lunar module's powered descent from 50,000 feet above the Moon's surface, a process that involved the guidance computer firing the rocket engine to slow the spacecraft. At an altitude of around 30,000–35,000 feet, the computer triggered the first of five "program alarms", which indicated "executive overflows", meaning that the computer was unable to process all tasks in the time available and had to drop some of them. The problem was considered serious enough for NASA to consider aborting the mission. During the next 4.5 minutes these alarms (labeled "1201" and "1202", respectively) kept resurfacing. But each time an overload threatened, the computer reduced its load — by doing a software restart, in which the computer ran only its highest-priority tasks, an early implementation of preemptive multitasking. This lowered the load enough to resume normal operation, but it remained higher than usual, for reasons unclear at the time. And 40 seconds after the first program alarm, another one occurred, followed by another about 30 seconds after that one. However, Steve Bales and Jack Garman, NASA computer engineers in mission control, recognized the program alarms were only warnings and advised Apollo 11 to proceed.

About 12.6 minutes after the start of its powered descent, the lunar module had landed safely on the Moon.

According to Lunar Module Pilot Buzz Aldrin, he had left the rendezvous radar on intentionally during the descent along with the landing radar. While this was not part of the official procedure, it was sound, since in case of an abort, he and Neil Armstrong could lock onto the signal of their mothership Columbia immediately. In their training, the crew of the subsequent mission Apollo 12 had done the same and encountered the errors "1201" and "1202" as well. They were told that these alarms were no reason to abort the mission, but this information had never been passed on to the crew of Apollo 11, so they were in the dark about its consequences.

The computer should have been able to cope with the data of both radars simultaneously, but as it turned out, additional interrupts caused by incorrectly phased power supplied to the lander's rendezvous radar finally had overwhelmed it.

Paul Curto, a senior technologist who nominated Hamilton for a NASA Space Act Award, called Hamilton's work "the foundation for ultra-reliable software design".

Businesses

Hamilton co-founded with Saydean Zeldin a company called Higher Order Software (HOS) to further develop ideas about error prevention and fault tolerance emerging from their experience at MIT working on the Apollo program. They created a product called USE.IT, based on the HOS methodology they developed at MIT. It was successfully used in numerous government programs including a project to formalize and implement C-IDEF, an automated version of IDEF, a modeling language developed by the U.S. Air Force in the Integrated Computer-Aided Manufacturing (ICAM) project. In 1980, British-Israeli computer scientist David Harel published a proposal for a structured programming language derived from HOS from the viewpoint of and/or subgoals. Others have used HOS to formalize the semantics of linguistic quantifiers, and to formalize the design of reliable real-time embedded systems.

Hamilton was the CEO of HOS and left the company later on. In March 1986, she founded Hamilton Technologies, Inc. in Cambridge, Massachusetts. The company was developed around the Universal Systems Language (USL) and its associated automated environment, the 001 Tool Suite, based on her paradigm of development before the fact for systems design and software development.

Legacy

Career and achievements

Occupations
  • computer scientist
  • mathematician
  • engineer
  • businessperson
  • software developer
  • tour guide
  • software engineer
  • systems engineer
Awards
  • Presidential Medal of Freedom
  • Ada Lovelace Award
  • Computer History Museum Fellow
  • Washington Award
  • National Aviation Hall of Fame
  • honorary doctor of the University Polytechnic of Catalonia
  • honorary doctorate from Bard College
  • honorary doctor of the University of Michigan
Notable works
  • Universal Systems Language
  • Apollo Guidance Computer

Sources: Wikipedia (CC BY-SA), Wikidata.