NASA’s first software engineer: Margaret Hamilton - Matt Porter and Margaret Hamilton
-
0:07 - 0:11At roughly 4pm on July 20, 1969,
-
0:11 - 0:16mankind was just minutes away
from landing on the surface of the moon. -
0:16 - 0:19But before the astronauts
began their final descent, -
0:19 - 0:21an emergency alarm lit up.
-
0:21 - 0:23Something was overloading
the computer, -
0:23 - 0:26and threatened to abort the landing.
-
0:26 - 0:29Back on Earth, Margaret Hamilton
held her breath. -
0:29 - 0:32She'd led the team developing
the pioneering in-flight software, -
0:32 - 0:35so she knew this mission
had no room for error. -
0:35 - 0:38But the nature
of this last-second emergency -
0:38 - 0:43would soon prove her software
was working exactly as planned. -
0:43 - 0:48Born 33 years earlier in Paoli, Indiana,
Hamilton had always been inquisitive. -
0:48 - 0:51In college, she studied mathematics
and philosophy, -
0:51 - 0:56before taking a research position at the
Massachusetts Institute of Technology -
0:56 - 0:57to pay for grad school.
-
0:57 - 1:01Here, she encountered her first computer
while developing software -
1:01 - 1:05to support research
into the new field of chaos theory. -
1:05 - 1:08Next at MIT's Lincoln Laboratory,
-
1:08 - 1:11Hamilton developed software
for America’s first air defense system -
1:11 - 1:13to search for enemy aircraft.
-
1:13 - 1:17But when she heard
that renowned engineer Charles Draper -
1:17 - 1:19was looking for help
sending mankind to the moon, -
1:19 - 1:22she immediately joined his team.
-
1:22 - 1:25NASA looked to Draper and his group
of over 400 engineers -
1:25 - 1:29to invent the first compact
digital flight computer, -
1:29 - 1:31the Apollo Guidance Computer.
-
1:31 - 1:33Using input from astronauts,
-
1:33 - 1:36this device would be responsible
for guiding, navigating -
1:36 - 1:38and controlling the spacecraft.
-
1:38 - 1:42At a time when unreliable computers
filled entire rooms, -
1:42 - 1:45the AGC needed to operate
without any errors, -
1:45 - 1:49and fit in one cubic foot of space.
-
1:49 - 1:52Draper divided the lab into two teams,
-
1:52 - 1:55one for designing hardware
and one for developing software. -
1:55 - 1:59Hamilton led the team that built
the on-board flight software -
1:59 - 2:01for both the Command and Lunar Modules.
-
2:01 - 2:05This work, for which she coined the term
“software engineering," -
2:05 - 2:07was incredibly high stakes.
-
2:07 - 2:12Human lives were on the line,
so every program had to be perfect. -
2:12 - 2:16Margaret’s software needed to quickly
detect unexpected errors -
2:16 - 2:18and recover from them in real time.
-
2:18 - 2:22But this kind of adaptable program
was difficult to build, -
2:22 - 2:26since early software could only process
jobs in a predetermined order. -
2:26 - 2:27To solve this problem,
-
2:27 - 2:30Margaret designed her program
to be “asynchronous,” -
2:30 - 2:36meaning the software's more important
jobs would interrupt less important ones. -
2:36 - 2:39Her team assigned every task
a unique priority -
2:39 - 2:42to ensure that each job
occurred in the correct order -
2:42 - 2:46and at the right time—
regardless of any surprises. -
2:46 - 2:47After this breakthrough,
-
2:47 - 2:51Margaret realized her software
could help the astronauts work -
2:51 - 2:53in an asynchronous environment as well.
-
2:53 - 2:55She designed Priority Displays
-
2:55 - 2:57that would interrupt
astronaut’s regularly scheduled tasks -
2:57 - 2:59to warn them of emergencies.
-
2:59 - 3:02The astronaut could then communicate
with Mission Control -
3:02 - 3:05to determine the best path forward.
-
3:05 - 3:09This marked the first time flight software
communicated directly— -
3:09 - 3:12and asynchronously—
with a pilot. -
3:12 - 3:16It was these fail safes that triggered
the alarms just before the lunar landing. -
3:16 - 3:19Buzz Aldrin quickly realized his mistake—
-
3:19 - 3:23he’d inadvertently flipped
the rendezvous radar switch. -
3:23 - 3:25This radar would be essential
on their journey home, -
3:25 - 3:29but here it was using up
vital computational resources. -
3:29 - 3:34Fortunately, the Apollo Guidance Computer
was well equipped to manage this. -
3:34 - 3:37During the overload,
the software restart programs -
3:37 - 3:40allowed only the highest priority jobs
to be processed— -
3:40 - 3:43including the programs
necessary for landing. -
3:43 - 3:46The Priority Displays
gave the astronauts a choice— -
3:46 - 3:49to land or not to land.
-
3:49 - 3:53With minutes to spare,
Mission Control gave the order. -
3:53 - 3:57The Apollo 11 landing was about
the astronauts, Mission Control, -
3:57 - 4:02software and hardware all working together
as an integrated system of systems. -
4:02 - 4:07Hamilton’s contributions were essential
to the work of engineers and scientists -
4:07 - 4:11inspired by President John F. Kennedy’s
goal to reach the Moon. -
4:11 - 4:14And her life-saving work
went far beyond Apollo 11— -
4:14 - 4:20no bugs were ever found in the in-flight
software for any crewed Apollo missions. -
4:20 - 4:22After her work on Apollo,
-
4:22 - 4:26Hamilton founded a company that uses
its unique universal systems language -
4:26 - 4:29to create breakthroughs
for systems and software. -
4:29 - 4:34In 2003, NASA honored her achievements
with the largest financial award -
4:34 - 4:37they’d ever given to an individual.
-
4:37 - 4:42And 47 years after her software
first guided astronauts to the moon, -
4:42 - 4:45Hamilton was awarded
the Presidential Medal of Freedom -
4:45 - 4:48for changing the way we think
about technology.
- Title:
- NASA’s first software engineer: Margaret Hamilton - Matt Porter and Margaret Hamilton
- Speaker:
- Matt Porter and Margaret Hamilton
- Description:
-
View full lesson: https://ed.ted.com/lessons/the-software-that-sent-humans-to-the-moon-matt-porter-and-margaret-hamilton
The Apollo 11 moon landing was about the astronauts, mission control, software and hardware all working together as a seamless integrated system. None of which would have been possible without the contributions of one engineer: Margaret Hamilton. Who was this pioneer? Matt Porter and Margaret Hamilton detail how a woman and her team launched the software that took mankind to the Moon.
Lesson by Matt Porter and Margaret Hamilton, directed by TOTEM Studio.
- Video Language:
- English
- Team:
closed TED
- Project:
- TED-Ed
- Duration:
- 04:49
![]() |
lauren mcalpine edited English subtitles for NASA's first software engineer: Margaret Hamilton | |
![]() |
lauren mcalpine approved English subtitles for NASA's first software engineer: Margaret Hamilton | |
![]() |
lauren mcalpine accepted English subtitles for NASA's first software engineer: Margaret Hamilton | |
![]() |
lauren mcalpine edited English subtitles for NASA's first software engineer: Margaret Hamilton | |
![]() |
Tara Ahmadinejad edited English subtitles for NASA's first software engineer: Margaret Hamilton | |
![]() |
Tara Ahmadinejad edited English subtitles for NASA's first software engineer: Margaret Hamilton |