Tuesday Feb 22, 2022

Margaret Hamilton: Sending astronauts to the moon and back

“There was no choice but to be a pioneer.”

Margaret Hamilton

Mother of software engineering

 

margarethamilton.jpg

Artwork:

Hamilton’s portrait in the Fearless Portrait project is based on an iconic photograph of her standing next to a stack of binders about as tall as she is. These binders contained the computer code she and her team wrote for the Apollo Mission. I’ve drawn her with black ink on a 1966 US Air Force map of the moon.

 

The Story:

On July 20, 1969, astronauts Neil Armstrong and Buzz Aldrin were three minutes away from making their historic landing on the moon when the lunar lander’s onboard computer began spitting out emergency alarms. 

Faced with the critical choice of aborting the mission or not, flight controllers in Houston chose to trust the computer’s software that Margaret Hamilton, director of Apollo flight computer programming and her team at MIT’s Draper Laboratory developed. 

“It quickly became clear the software was not only informing everyone that there was a hardware-related problem but was compensating for it,” said Hamilton. 

It turned out that the astronaut’s checklist was at fault, telling them to set the rendezvous radar switch in the wrong position. The radar began bombarding the onboard computer with irrelevant information and overloading the computer. In a situation like this, Hamilton’s code dictated the computer should reboot. The restarting process allowed the computer to reprioritize tasks—ignoring the incoming radar information and focusing on the critical landing calculations. 

“If the computer hadn't recognized this problem and taken recovery action, I doubt if Apollo 11 would have been the successful Moon landing it was,” Hamilton would later write. 

In an era before screens, Hamilton and her team manually typed 11,000 pages of code writing the Apollo Project software. Stacked up, the software was the same height as Hamilton. The monumental achievement of putting a man on the moon was all the more impressive as the astronauts had access to a mere 72 kilobytes of memory. A standard smartphone today has more than million times more storage space. 

Six and half hours after the fraught landing, Armstrong made his historic first step on the moon, saying, “That’s one small step for man, one giant leap for mankind.”

 

Background on Hamilton:

Hamilton was born on August 17, 1936 in Paoli, Indiana. After graduating in 1958 with a bachelor’s degree in mathematics, she took a job at MIT. It was supposed to be a temporary step, supporting her husband while he was in law school. It was here that she first learned what a computer was and how to write software. Her early experiences at MIT paved the way for her passion for building ultra-reliable software. 

Initially planning to leave her job and pursue a master’s in abstract mathematics, she caught the programming bug and continued working at MIT when the university was asked to work on the Apollo space program. 

“I was the first programmer to join and the first woman they hired,” she said. “Male engineers were already working on the project, but they were hardware engineers and it wasn’t their thing.”

Within a few years, she was leading a whole team of programmers at MIT in what would later be known as Draper Laboratory. 

Her work as a computer scientist and a mother often collided and Hamilton would bring her daughter, Lauren, to the lab at night and on weekends. One day, Hamilton was running a simulation of a moon mission and Lauren began punching buttons like her mom.

Lauren began running a pre-launch program while the system was already “on the way” to the moon and the system crashed and erased the navigational data taking her to the moon. 

“This could inadvertently happen in a real mission,” thought Hamilton and she pushed for software changes to address the issue. The higher-ups at NASA said the astronauts were too well trained to make such a mistake. On the very next mission—Apollo 8—astronaut Jim Lovell made the exact same error. NASA let Hamilton make the software fix after that.  

Still in their infancy when Hamilton began her career, computer science and software engineering were not yet disciplines. Programmers often came from math backgrounds and learned on the job. As Hamilton put it, “there was no choice but to be pioneers.” 

Ever the innovator, Hamilton coined the term “software engineering” while working on the Apollo project. 

“I fought to bring the software legitimacy so that it—and those building it—would be given due respect. 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. Software eventually and necessarily gained the same respect as any other discipline,” she explained. 

Building on her Apollo work, Hamilton founded two companies—Higher Order Software (HOS) in 1976 and Hamilton Technologies in 1986. 

Barack Obama awarded her the Presidential Medal of Freedom in 2016, saying, “Her example speaks of the American spirit of discovery that exists in every little girl and little boy who know that somehow, to look beyond the heavens is to look deep within ourselves—and to figure out just what is possible.”

 

Music:

This episode contains music by Geovane Bruno, Toma Mutiu, and Alex Chernykh.

 

Sources:

 

Comments (0)

To leave or reply to comments, please download free Podbean or

No Comments

Copyright 2021 All rights reserved.

Podcast Powered By Podbean

Version: 20240731