● A free public tool  ·  Built by Poptani Labs  ·  No sign-up  ·  Your data never leaves your browser
Big Thinkers · 5-minute read

Ada Lovelace: the woman who wrote the first program for a computer that didn't exist

A blue plaque commemorating Ada Lovelace
Image: 'Ada Lovelace blue plaque, Mallory Park 02.jpg' by SMacB, CC BY-SA 4.0, via Wikimedia Commons

In the summer of 1843, a 27-year-old woman in London published a set of notes that contained what is often called the first computer program. The machine it was written for did not exist — and would not exist for another century. Her name was Ada Lovelace, and the notes did something stranger still: they imagined what computers might one day do, long before anyone had built one.

The poet's daughter who loved numbers

Augusta Ada King, Countess of Lovelace, was born Augusta Ada Byron on 10 December 1815 — the only legitimate child of the poet Lord Byron. He left England when she was a baby and died when she was eight; she never really knew him. Her mother, Annabella, feared the “poetic madness” in the family and steered Ada firmly toward mathematics. It worked. Tutored by the scientist Mary Somerville, Ada became a formidable mathematician in her own right, and at 17 she met Charles Babbage, who showed her his Difference Engine — a machine designed to calculate tables of numbers automatically. Babbage was already dreaming of something bigger: the Analytical Engine, a general-purpose machine that could be programmed, using punched cards borrowed from the Jacquard loom, to perform any calculation its operator could specify. Ada understood it immediately — and, crucially, understood it better than its inventor did.

The translation that became a manifesto

In 1842 and 1843, Lovelace translated a paper about the Analytical Engine by the Italian mathematician Luigi Menabrea. But she did not simply translate it. She added seven long explanatory notes, labelled A to G, which grew to nearly three times the length of the original paper. The most consequential was Note G, in which she laid out, in complete detail, a method for using the Engine to calculate Bernoulli numbers — a complex sequence with deep applications across mathematics. The algorithm used loops and conditional branching, the same fundamentals programmers use today, and it is recognised as the first published computer program. The notes were published in Taylor's Scientific Memoirs in 1843, signed with her initials, A.A.L. The Engine was never built, so the program was never tested — but it would have run correctly, had the machine existed.

The vision nobody else had

What made Lovelace remarkable was not just the algorithm. It was the vision. Babbage saw a machine for numbers; Lovelace saw a machine for anything that could be expressed in symbols. She wrote that the Engine could weave “algebraical patterns just as the Jacquard loom weaves flowers and leaves,” and she was the first to point out the possibility of encoding information besides mere arithmetical figures — such as music — and manipulating it with a machine. At the same time, she set a limit that still frames the debate about artificial intelligence: the Engine “has no pretensions whatever to originate anything. It can do whatever we know how to order it to perform.” The National Institute of Standards and Technology has noted that her observations about the limits of machine intelligence anticipated debates about AI by more than a century.

The argument that never ended

Here is the fun part — the argument about who really wrote the program has been running for 180 years. Babbage had written small programs for the Engine in 1836 and 1837, mostly unpublished, and in his 1864 autobiography he claimed credit for the formulas in Note G. In 1985, the biographer Dorothy Stein argued that Lovelace was not a capable enough mathematician to have written the Bernoulli program herself. Other scholars, including the biographer Betty Alexandra Toole, concluded that including the program was Lovelace's own idea — and found a bug in it, too: in Operation 21, the third factor of the denominator should be 4, not 3. Historians still argue over how much of Note G is hers. What is not argued is that the published program, the vision around it, and the writing itself were hers — and that the first program ever published was written by a woman who never saw a computer.

The short life

Lovelace died of uterine cancer on 27 November 1852, at the age of 36 — the same age at which her father had died. At her request, she was buried beside him. She never saw the Analytical Engine built, never saw a computer of any kind, and never knew that her notes would one day be republished as a founding document of computing. The machine she programmed existed only on paper. The idea she had about it — that a machine could do more than calculate — is the one the whole industry is still chasing.

The Idea to Remember

Ada Lovelace's idea was simple and radical: a machine is not defined by what it calculates, but by what it can be told to do. She wrote the first program for a computer that did not exist, and she drew the line around what machines can never do — originate — that we are still arguing about today. The program was never run. The idea has never stopped running.

Related on Poptani Labs: Ramanujan: the clerk from Kumbakonam who rewrote mathematics, Alan Turing: the man who taught machines to think — and paid for being himself, Carl Sagan and the Pale Blue Dot: the photo nobody wanted to take. More in this category: Big Thinkers.

Sources: Wikipedia, Ada Lovelace, History Collection, Ada Lovelace Wrote the First Computer Program for a Machine Never Built, Rework, Ada Lovelace and the First Computer Program

← All posts