AI History Profile Profile Profiles: Founders & Theorists

Ada Lovelace

The first programmer, a century before computers existed. How a 19th-century mathematician envisioned machines that could do more than calculate.

Published

Ada Lovelace

The Poet of Mathematics

Born: 10 December 1815, London, England Died: 27 November 1852, London, England Age at death: 36


There is a particular kind of genius that sees what a thing could become rather than what it is. Most people, handed a rough prototype and a stack of technical notes, would describe the machine in front of them. Ada Lovelace, handed Charles Babbage’s plans for his Analytical Engine in 1842, described the entire future of computing.

She was twenty-seven years old. The machine she was writing about had never been built. It would not be built in her lifetime, nor for nearly a century after her death. And yet in a set of notes appended to a translated academic paper — notes longer than the paper itself — she laid out concepts that would not be independently rediscovered until Alan Turing sat down with a blank sheet of paper in 1936. The idea that a machine could manipulate symbols according to rules. That it could be programmed to perform any operation, not just arithmetic. That it could, in principle, compose music.

That last one tends to make people pause. Music. From a machine built of brass gears and punched cards, in 1842, imagined by a woman who had been taught mathematics partly as a therapeutic intervention to suppress what her mother feared were dangerous poetic tendencies inherited from her father, Lord Byron.

The story of Ada Lovelace is not simply the story of the first computer programmer. It is the story of what happens when a mind trained in formal rigour refuses to be constrained by it — when someone looks at a calculating engine and asks, with genuine curiosity and no apparent anxiety, what else?


A Childhood Engineered Against Poetry

Augusta Ada Byron was born on 10 December 1815, the only legitimate child of the poet George Gordon, Lord Byron, and his wife Anne Isabella Milbanke. The marriage lasted barely a year. Byron left England in disgrace when Ada was five weeks old, pursued by scandal — rumours of an affair with his half-sister among other things — and never returned. He died in Greece when Ada was eight, a Romantic hero to the world and an absent stranger to his daughter.

Her mother, Annabella, was a woman of considerable intelligence and considerable anxiety. She was mathematically gifted — Byron had called her his “Princess of Parallelograms,” affectionately, before the affection curdled — and she was determined that her daughter would not inherit the dangerous volatility she associated with Byron’s poetic temperament. Her solution was mathematics. Ada would be taught logic, reason, and discipline. The imagination would be managed.

This plan had some ironic consequences. Ada did become an excellent mathematician. But she also became something Annabella had not anticipated: someone who saw mathematics itself as imaginative, as creative, as a form of poetry conducted in the language of symbols. The suppression of one kind of thinking had not eliminated imagination — it had redirected it.

Ada was frequently ill as a child. She suffered a prolonged illness at twelve that left her partially paralysed for several years, confined largely to her bed. During this time she studied intensely, corresponded with tutors, and developed the habit of sustained, solitary intellectual work that would define her adult life. By her mid-teens she was well again and moving through London’s scientific circles with her mother, who had connections among the intellectual elite of the day.

At seventeen, she met Charles Babbage.


The Man with the Machine

Charles Babbage was fifty when Ada met him, a mathematician and inventor of considerable brilliance and considerable difficulty. He had already spent years working on his Difference Engine — a mechanical calculator designed to produce mathematical tables automatically, eliminating the human error that plagued the hand-calculated tables used in navigation, artillery, and insurance. The British government had funded it lavishly and received, after a decade and £17,000, nothing but excuses and a partial model. Babbage had abandoned the Difference Engine in favour of a far more ambitious idea: the Analytical Engine.

Where the Difference Engine was a specialised calculator, the Analytical Engine was something categorically different. It was, in the modern sense, a computer. It had a “store” — what we would call memory — and a “mill” — what we would call a processor. It could be programmed using punched cards adapted from the Jacquard loom, which had already demonstrated that complex patterns could be encoded in perforated cards and executed mechanically. It could perform any arithmetic operation. It could branch — take different actions depending on the result of a previous calculation. It could loop.

Babbage understood that he had invented something extraordinary. He spent the rest of his life trying, and failing, to get anyone to fund it. He lectured about it across Europe. He had a standing salon in his London home where the leading minds of the day gathered to see demonstrations and discuss ideas. Ada attended, became fascinated, and began a correspondence with Babbage that would last until her death.

The nature of their relationship has been debated ever since. They were clearly close — their letters are warm, sometimes playful, occasionally tense. Babbage called her the “Enchantress of Numbers.” She called him, at one point, her “dear and much admired Interpreter.” What is clear is that Ada understood the Analytical Engine not merely as an interesting device, but as a philosophical object. She grasped its implications in ways that Babbage, for all his genius, does not seem to have fully articulated.


The Notes That Changed History

In 1842, the Italian mathematician Luigi Menabrea attended one of Babbage’s lectures in Turin and wrote a summary of the Analytical Engine in French, published in a Swiss academic journal. Ada, whose French was excellent, was asked by Charles Wheatstone — the inventor of the telegraph — to translate it for an English scientific publication.

She did more than translate it. She wrote a set of annotations — notes keyed to sections of the original paper — that totalled nearly three times the length of the paper itself. The notes were signed only “A.A.L.” — Ada Augusta Lovelace, she had married the Earl of Lovelace in 1835 — both because scientific modesty was expected of women and because Babbage seems to have suggested it. They were published in Taylor’s Scientific Memoirs in 1843.

The notes are astonishing documents. They are rigorous, clear, and shot through with exactly the kind of conceptual ambition her mother had tried to educate out of her.

In Note A, Ada tackles the question of what the Analytical Engine actually is — how it differs from the Difference Engine and from all previous calculating devices. Her answer is precise: the Difference Engine can only perform one specific sequence of operations, while the Analytical Engine can perform any operation that can be expressed as a set of instructions. This is the distinction between a fixed-function calculator and a general-purpose computer. She saw it clearly.

In Note D, she works through the analogy with the Jacquard loom — the punched-card system that programs the machine. “We may say most aptly,” she writes, “that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves.” This is not decorative language. It is a precise observation about the relationship between symbolic pattern and physical operation that would underpin the entire theory of computation a century later.

In Note G — the most famous — she describes what we now recognise as the first computer program: a detailed algorithm for computing Bernoulli numbers using the Analytical Engine. It is carefully worked through, with diagrams of the machine’s operations at each step. Whether she or Babbage developed this algorithm has been debated; the evidence suggests she did most of the work and caught at least one significant error in Babbage’s draft. The algorithm itself is sophisticated enough that modern programmers have confirmed it would work.

But the deeper achievement of the notes is not the algorithm. It is the passage that comes just before it, in which Ada considers — and rejects — a claim that would be made about computers for the next century and a half.


The Lovelace Objection

Here is what Ada wrote in 1843, in Note G, about the limits of the Analytical Engine:

“The Analytical Engine has no power of originating anything. It can only do what we know how to order it to perform.”

This sentence has become famous as the “Lovelace objection” — the argument that computers cannot truly think or create because they can only execute instructions given to them by humans. Alan Turing would engage with it directly in his 1950 paper “Computing Machinery and Intelligence,” the paper that introduced the Turing Test. He called it “Lady Lovelace’s Objection” and argued at length against it.

What is striking, reading the full context of the note, is that Ada herself was not making a simple dismissal. She was drawing a precise boundary around what she knew the machine could do, in order to raise the harder question of what that might imply. She was not saying that machines were uninteresting. She was saying that their interest lay precisely in the gap between what they were designed to do and what they might, under the right instructions, be capable of producing.

And then she writes this — the sentence that stops readers cold:

“Supposing, for instance, that the fundamental relations of pitched sounds in the science of harmony and of musical composition were susceptible of such expression and adaptations, the engine might compose elaborate and scientific pieces of music of any degree of complexity or extent.”

She is not claiming the machine would understand music. She is making a structural argument: if you can express the rules of musical composition formally, you can give those rules to the machine, and it will produce music. The question of whether that music is “real” art is separate from the question of whether the machine can produce it. One hundred and seventy years before the first AI-generated symphony, she had identified both the possibility and the philosophical puzzle it raises.


The World She Moved In

It is easy, with hindsight, to cast Ada Lovelace as a lone visionary, heroically ahead of her time. The reality is both more interesting and more complicated. She worked within a dense network of brilliant people, and the question of how much she contributed versus absorbed has been contested ever since.

She studied under Augustus De Morgan, one of the foremost logicians of the era, who found her ability impressive but worried she was taking on questions too advanced for a beginner. She corresponded with Mary Somerville, the Scottish mathematician and scientist who was one of the first women elected to the Royal Astronomical Society. She discussed mesmerism and probability with the statistician Adolphe Quetelet. She was not operating in isolation.

Her relationship with Babbage remained central to her intellectual life, and also deeply complicated. They disagreed about how to present the notes. Ada wanted them published without attribution to either of them; Babbage wanted a preface under his own name included, explaining why the government had been wrong not to fund him. Ada refused. This dispute, conducted in increasingly tense letters in the weeks before publication, reveals something important about her: she had a strong independent sense of what the work was and how it should be received, and she was willing to hold that position against someone she respected and depended on.

She also had significant health problems throughout her adult life. She suffered what appear to have been episodes of severe anxiety, and she took laudanum and other medications whose effects on her work and her wellbeing are impossible to fully untangle. She gambled — apparently seriously and unsuccessfully. She had three children and by most accounts a functional if not passionate marriage to Lord Lovelace. She died of uterine cancer in November 1852, at thirty-six years old. Her last months were painful and medicated. She asked to be buried next to her father, in the Byron family vault in Nottinghamshire — the father she had never known, whose influence she had spent her whole life being warned against, and whose imagination she had perhaps inherited after all.


The Long Silence, and the Recovery

After her death, Ada Lovelace was largely forgotten by the scientific community for nearly a century. The notes were reprinted once, in 1953, in a collection of Babbage’s works, but otherwise they sat unread. The history of computing that began to be written in the mid-twentieth century initially centred on figures like Turing, von Neumann, and the engineers who built the first electronic computers, without particular reference to a Victorian translator’s footnotes.

The rediscovery came through the computer scientist B.V. Bowden, who included her notes in his 1953 book on the history of computing and recognised their significance. Through the 1960s and 70s, as the history of the field was being written more carefully, scholars began to look seriously at what she had actually produced. By the 1980s she had become a symbolic figure, invoked as a pioneering woman in computing, and in 1980 the US Department of Defense named a new programming language — Ada — in her honour.

The hagiography that sometimes surrounds her has attracted pushback. Some historians — most notably Bruce Collier and, more contentiously, the AI researcher Douglas Hofstadter — have argued that her contributions were less original than claimed, that the algorithm in Note G was primarily Babbage’s work, that her reputation has been inflated by a combination of feminist reclamation and the romance of her backstory. These criticisms deserve serious engagement. The historical record is incomplete. Babbage’s role is genuinely difficult to disentangle from hers.

But even taking the most sceptical view of her technical contributions, the intellectual achievement of the Notes remains. The conceptual framework she built — the distinction between the engine and its program, the separation of mechanism from operation, the recognition that symbol manipulation is not inherently limited to arithmetic — these ideas were not in Babbage’s own writings in this form. He built the machine. She thought through what it meant.


Why She Matters Now

The standard narrative about Ada Lovelace emphasises that she was a woman in a field dominated by men, and that her contributions were overlooked because of it. This is true, and it matters. But it risks making her interesting primarily as a symbol rather than as a thinker.

What makes her genuinely fascinating — and genuinely relevant — is the quality of the question she kept asking. Not how does this machine work, but what could this kind of machine, in principle, do? That shift from the descriptive to the speculative, from the mechanical to the conceptual, is the move that turns engineering into computer science. It is also, not coincidentally, the move that turns computer science toward artificial intelligence.

She could not have known what machine learning was. She could not have anticipated the neural network or the transformer model. But she understood — with unusual clarity, in 1843, writing about a machine that did not exist — that the interesting question was never about the hardware. It was about the relationship between formal rules and the things those rules could produce. Whether the outputs of such a system count as thinking, as creativity, as music, or as something else entirely, she correctly identified as a separate question — one she left deliberately open.

That open question is still being argued about. It is, in a real sense, the central question of artificial intelligence. She got there first.


Key Works & Further Reading

Primary source:

  • “Sketch of the Analytical Engine Invented by Charles Babbage, Esq.” by L.F. Menabrea, with notes by the Translator (A.A.L.). Taylor’s Scientific Memoirs, Vol. III, 1843.

Recommended reading:

  • The Innovators — Walter Isaacson (2014). Chapter 1 provides the most readable account of Ada’s life and the notes.
  • Ada, the Enchantress of Numbers — Betty Alexandra Toole (1992). A collection of Ada’s letters with commentary.
  • Charles Babbage and His Calculating Engines — Philip Morrison and Emily Morrison, eds. (1961). Places her work in full context.
  • Computing Machinery and Intelligence — Alan Turing, Mind, 1950. For the direct engagement with “Lady Lovelace’s Objection.”