Attic › Computer science › Ada Lovelace

Ada Lovelace wrote the first published computer program in 1843

Ada Lovelace (1815–1852) was an English mathematician and writer. She worked with the inventor Charles Babbage on his mechanical computer, the Analytical Engine, and wrote the first published computer program.

Lovelace was the only legitimate child of the poet Lord Byron and his wife, Lady Byron. Her parents separated a month after she was born, and her father died when she was eight; she had no relationship with him. Lady Byron did not want her daughter to develop her father's unpredictable temperament. To prevent this, she arranged for Ada to have a strict education in science and mathematics, which was unusual for aristocratic women in the 19th century.

One of Lovelace's tutors was the Scottish scientist Mary Somerville. In 1833, when Lovelace was 17 (she first met him on 5 June 1833), Somerville introduced her to Babbage. At that time, Babbage was building the Difference Engine, a clockwork calculator made of brass gears that calculated mathematical tables automatically. Most guests saw the machine as a clever curiosity, but Lovelace immediately understood the mathematics behind how it worked.

Lovelace and Babbage began a lifelong friendship and working partnership. When Babbage moved on to a much more ambitious design—the Analytical Engine—Lovelace became its main interpreter. In 1842 and 1843, she translated an academic paper about the new machine from French into English, and she added her own long explanatory notes. Her seven notes, A to G, were about three times longer than the original paper and contained the first published algorithm—a step-by-step set of rules to solve a problem—written specifically for a machine to run. Because of this work, historians of science often call her the first computer programmer.

Fact-checked against Ada Lovelace on Wikipedia

Part of the Computer science syllabus: Turing and the Theory of Computation

See it on the timeline of Computer science