In September 1843, a London science journal printed what is often called the first published computer program, and the only name attached to it was three letters: AAL.
Behind those initials was Augusta Ada King, Countess of Lovelace, the only legitimate child of the poet Lord Byron. She was 27. The machine her program was written for did not exist, and never would.
A translation that grew three times longer than the original
In 1840, Charles Babbage gave a seminar in Turin about his Analytical Engine, a mechanical general-purpose computer he had designed but never built.
A young Italian engineer named Luigi Menabrea, a future Prime Minister of Italy, wrote the lecture up in French. It appeared in a Geneva journal in October 1842.
Babbage’s friend Charles Wheatstone asked Lovelace to translate it into English. She spent nine months on the job, and added seven notes, labelled A to G. Together, her notes ended up about three times longer than the article she was translating.
The whole thing was published in Taylor’s Scientific Memoirs under her initials alone.
The program hidden in Note G
Note G is the famous one. It lays out, step by step, how the Analytical Engine could calculate a sequence of Bernoulli numbers, a family of numbers that turns up in advanced calculus. Lovelace had studied them with the mathematician Augustus De Morgan.
The method might have run correctly had the machine ever been built. It never was, so the program was never tested. The notes were republished in 1953, in a book on digital computers, more than a century after her death.
So was she really the first programmer?
Probably not, at least not in the strict sense.
Babbage had already written programs for his engine between 1837 and 1840. The historian Allan G. Bromley counted several dozen of them. Most were simply never published. In his autobiography, Babbage even claimed credit for the Note G algorithm.
Bromley went further, writing that all but one of the programs in her notes had been prepared by Babbage, and that the exception was prepared by Babbage for her, “although she did detect a ‘bug’ in it.”
Others push back. Stephen Wolfram argues that nothing Babbage wrote was as sophisticated as her Bernoulli calculation, and that “she was definitely the driver of it.” The Babbage specialist Doron Swade puts it bluntly: she published the first program rather than writing it. But Swade also credits her with something much bigger.
The idea even Babbage missed
In Babbage’s mind, his engines were machines for numbers. Lovelace saw further. If the numbers stood for something else, the machine could work on that something else too.
She wrote that the engine “might act upon other things besides number”, as long as their relationships could be expressed through what she called “the abstract science of operations.” Her example was music. If the rules of harmony could be encoded, she wrote, the engine “might compose elaborate and scientific pieces of music of any degree of complexity or extent.”
That is the leap from a calculator to a computer: a machine that manipulates symbols according to rules, with numbers as just one kind of symbol. It is the same shift that turned logic into the algebra running inside your phone, a story we told here.
Swade’s verdict: “Ada saw something that Babbage in some sense failed to see.” According to him, the transition from calculation to general-purpose computation was “made explicitly by Ada in that 1843 paper.”
The writer Walter Isaacson traces the insight to looms that wove patterns from punched cards, just as Babbage’s engine used punched cards to calculate.
The girl who wanted to fly
None of this came out of nowhere. Her mother, obsessed with rooting out any of the insanity she blamed on Byron, had her taught mathematics from an early age.
At twelve, in February 1828, Ada decided she would fly. She tested materials for wings (paper, oilsilk, wires, feathers), studied bird anatomy to get the proportions right, and planned an illustrated book called Flyology. Her final step was to bring steam power into the “art of flying”.
A warning about artificial intelligence, written in 1843
Note G holds one more surprise. Lovelace also wrote that the engine “has no pretensions whatever to originate anything. It can do whatever we know how to order it to perform.”
A century later, Alan Turing named this idea “Lady Lovelace’s Objection” in his famous paper on whether machines can think, and argued against it. The debate she opened with three initials is still running every time someone asks whether a machine can truly create. Today the Ada programming language, created for the US Department of Defense, carries her name. Its military standard is MIL-STD-1815, the year she was born.

