This article accompanies the full documentary film with narration, motion graphics, and original diagrams.

Watch the Full Film on YouTube

Cold open

London, 1843. A woman of twenty-seven sits at a desk covered in papers, finishing a set of notes. They are attached to a short translation of a French article about a machine that has never been built. Her notes are three times longer than the article itself. In them, she describes how the machine would work, step by step. She also writes something odd: that it might one day compose music.

The machine was Charles Babbage's Analytical Engine, a mechanical design for a general-purpose computer, a century before electronic computers existed. The woman was Ada, Countess of Lovelace. Their story is full of promise, frustration and misunderstanding, and it is often told wrong. Get it right, and you find two people who, between them, sketched the basic logic of the device you are watching this on, more than a hundred years before anyone could build it.

The problem of tables

In the early nineteenth century, the world ran on printed tables. Navigators relied on tables of logarithms and angles. Engineers used them for calculations. Insurance companies used them to price risk. These tables were made by teams of human calculators, then typeset by hand. Errors crept in at every step, and a single error could wreck a voyage or a bridge.

Charles Babbage, a mathematician born in London in 1791 and later a professor at Cambridge, was obsessed with the problem. By his own account, in 1821 he was checking tables with his friend the astronomer John Herschel and, frustrated by the errors, exclaimed that he wished the calculations had been executed by steam. The exact wording varies between retellings, but the idea stuck: a machine that could calculate and print tables with no human error.

The machine was the Difference Engine. It used the method of finite differences, which allows polynomial functions to be calculated by repeated addition alone. A column of numbered wheels held values, and by turning a crank, the machine would add one column to the next, producing results that could be stamped into soft material for printing. In 1822, he built a small working model, and in 1823 the British government granted funds, starting with fifteen hundred pounds, to build a full-scale engine. It looked like a sound investment: a machine that never made mistakes, backed by the government and built with a gifted engineer. What could go wrong?

The engine that was not finished

The project was far harder than expected. The tolerances required were beyond what contemporary machine shops could easily make. Babbage worked with the gifted engineer Joseph Clement, and the work advanced, but costs rose, and the two quarreled over money and ownership of tools. By 1833, construction stopped. The government had spent roughly seventeen thousand pounds, and the engine was only partly built.

Babbage did not stop. He was already dreaming of something much grander. A Difference Engine could only do one kind of calculation. What if a machine could be given any sequence of instructions? He called it the Analytical Engine, and he began sketching it in the mid-1830s.

It was a startlingly modern design. It had a Store, where numbers were kept, which we would call memory. It had a Mill, where calculations were performed, which we would call a processor. It was controlled by punched cards, an idea borrowed from the Jacquard loom, which used cards to weave complex patterns into cloth. And it could make decisions: depending on a result, it could jump to a different set of instructions, or repeat a sequence in a loop.

The punched card deserves a moment. Around 1804, Joseph Marie Jacquard, in Lyon, introduced a loom controlled by a chain of cards with holes. A hole meant a hook would lift a thread, no hole meant it would not. By changing the cards, the same loom could weave a different pattern. It separated the machine from the program. Babbage admired it so much that he owned a woven portrait of Jacquard, made with thousands of cards. When Ada later wrote that the Analytical Engine weaves algebraic patterns just as the Jacquard loom weaves flowers and leaves, she was pointing at exactly this idea.

Babbage was more than a calculating-engine man. He wrote on the economics of manufacturing, studied the costs of the postal service, and examined railway questions. He is often credited with the locomotive cowcatcher and an early speedometer, though the details are murky. He was a prolific thinker who struggled to finish things, and the Difference Engine, the Analytical Engine and his reputation all suffered from it.

Babbage now had the design of a general-purpose computer, and almost no one who truly understood it. That was about to change, thanks to a young woman with a famous father she never really knew.

A mathematician's daughter

Augusta Ada Byron was born in December 1815. Her father was the poet Lord Byron. Her mother was Annabella Milbanke, a woman with a passion for mathematics whom Byron nicknamed the Princess of Parallelograms. The marriage collapsed within a year, and Byron left England forever. Ada never really knew him.

Her mother, worried that Ada might inherit her father's wild temperament, saw to it that she studied mathematics and science. Ada received tutors in a subject that few girls were permitted to learn. She was good at it. She was also imaginative, drawn to both poetry and logic. Later she described her approach as poetical science.

At seventeen, in 1833, she was introduced to Babbage, who was in his forties. He showed her a working part of the Difference Engine, and she was captivated. They began a long correspondence. Ada was not merely an admirer. She asked sharp questions, and Babbage recognized her gift. In 1835 she married William King, became a mother, and in 1838, when her husband was made Earl of Lovelace, became the Countess of Lovelace. Her real contribution, though, was still a decade away.

The Notes

In 1840, Babbage gave a seminar in Turin about the Analytical Engine. An Italian engineer and future prime minister, Luigi Menabrea, wrote an account of it in French. In 1842, it was published in a Swiss journal. Ada, who was fluent in French, was asked to translate it into English. She did. And then she kept going.

Over the course of nine months in 1843, working closely with Babbage by letter, she wrote a series of notes, lettered A through G. They were three times as long as the original article. In them, she explained the principle that separated the Analytical Engine from every calculating machine before it. A calculator performs a specific calculation. This engine could be given a set of instructions and follow them.

Then there was Note G. In it, Ada set out, in tabular form, a sequence of operations for the engine to calculate a series of numbers called Bernoulli numbers. It is often called the first published computer program. Historians debate how much of it was her own; the curator Doron Swade, for one, argues that its ideas all had precedent in Babbage's work. But the published version, and the way it was explained, was hers.

What Ada did next is the reason she is still read today. She saw further than the mechanics. She observed that the engine did not have to work only with numbers. Numbers could stand for other things, notes in music, or letters. If the rules of harmony could be expressed in this way, she wrote, the engine could compose elaborate pieces of music.

She also drew a line. She said the engine had no pretensions to originate anything. It could do whatever we knew how to order it to perform. Alan Turing would later call this Lady Lovelace's objection when discussing whether machines could think.

It is worth pausing on how unusual her position was. Women in the 1840s could not attend university or sit in the Royal Society, and women who wrote on science often did so anonymously. Ada's Notes carried only her initials. She moved in circles that included the scientist Mary Somerville, who had tutored and encouraged her, and she counted Charles Dickens and Michael Faraday among her acquaintances. She believed she had a gift for scientific thought and wanted to use it. Her letters reveal both great confidence and real frustration. Her Notes were finished. The question was whether anyone with money and power would listen.

What happened next

The notes were published in 1843 under the initials A.A.L. Babbage tried again to get government funding for the Analytical Engine, but the government declined. He spent the rest of his life revising his designs and pursuing other interests. He never built the Analytical Engine. In the later part of his life he grew bitter, complaining about street musicians and about the establishment's neglect of science.

Ada's life was cut short. She gambled on horse races and ran into debt, though historians differ on how deep it went. She developed cancer, and died in November 1852 at the age of thirty-six, the same age as her father. She asked to be buried beside him.

For almost a century, the story was largely forgotten. But in the twentieth century, as electronic computers appeared, historians rediscovered Babbage's designs and Ada's Notes. In 1953, the computing pioneer B. V. Bowden brought her work back into print in a book on the new machines, and in 1979 the US Department of Defense gave its new programming language the name Ada in her honor.

And Babbage's engine? In 1991, to mark the 200th anniversary of his birth, the Science Museum in London completed a working Difference Engine No. 2 from his plans, to tolerances its builders say were possible in his day. It worked. It calculated correctly. A printer followed in 2002. The machine was not impossible. It was just waiting. Waiting, above all, for the precision engineering that Babbage's own century was still learning to master.

Why it matters

The story of Babbage and Lovelace is easy to mythologize. Some people make Ada the world's first programmer and Babbage a mere inventor of a failed machine. Others dismiss her as a mere translator. The reality is more interesting. Babbage supplied the machine and the mathematical foundation. Ada supplied explanation, vision and a new way of seeing what the machine could be. Neither could have done it alone. That is the honest version of how two minds built the modern world.

It also shows why ideas need more than brilliance. The Analytical Engine failed for lack of precision machining, steady funding, political support and clear communication. Babbage was a famously difficult collaborator. Many of the pieces needed to build it, from reliable metals to interchangeable parts, were still decades away. We saw in our film on the assembly line how that ecosystem grew.

And it shows how much of the digital world rests on a handful of concepts they identified: separation of memory and processing, programs as sequences of instructions, loops and conditionals, and the idea that a general machine can handle any symbols, not just numbers. All of that exists in your pocket.

Every app on your phone is, in a sense, a set of Notes for an engine: a list of instructions for a machine that will do exactly what it is told. A young woman at a desk in 1843 saw that coming, writing about a machine that did not exist, and wondering what it might one day do.

Next Monday, a very different kind of engineering: the tunnels that saved Victorian London from its own waste. Subscribe if you would like to meet them.

Watch the full Lovelace Babbage documentary with all 0 diagrams, 0 archival images, and narration.

Watch on YouTube

Sources & Further Reading

  1. Swade, D., *The Difference Engine: Charles Babbage and the Quest to Build the First Computer* (Viking, 2001)
  2. Hollings, C., Martin, U., Rice, A., *Ada Lovelace: The Making of a Computer Scientist* (Bodleian Library, 2018)
  3. Menabrea, L. F. and Lovelace, A. A. (trans. and notes), "Sketch of the Analytical Engine invented by Charles Babbage," *Scientific Memoirs* vol. 3 (1843) — https://www.fourmilab.ch/babbage/sketch.html (Notes A–G, "A.A.L.", music and Jacquard passages)
  4. Babbage, C., *Passages from the Life of a Philosopher* (1864) — https://standardebooks.org/ebooks/charles-babbage/passages-from-the-life-of-a-philosopher (the 1821 "calculations executed by steam" anecdote; chapter on street nuisances)
  5. Science Museum Group, "Charles Babbage" — https://collection.sciencemuseumgroup.org.uk/people/ap8/babbage-charles (1822 model, 1823 £1,500 grant, 1991 build)
  6. Computer History Museum, Babbage Engine — https://www.computerhistory.org/babbage/history (Difference Engine No. 1 abandoned 1833 after dispute with Clement) and https://www.computerhistory.org/babbage/overview/ (1821 steam anecdote)
  7. Britannica, "Charles Babbage" — https://www.britannica.com/biography/Charles-Babbage (born 1791 London; Lucasian chair 1828–39; cowcatcher/speedometer credited; Difference Engine No. 2 built 1991)
  8. O'Connor & Robertson / Oxford DNB entry on Ada Lovelace — https://mathshistory.st-andrews.ac.uk/DNB/Lovelace.html (birth, 1835 marriage, 1838 earldom, 1833 meeting, gambling, death 27 Nov 1852, burial at Hucknall)
  9. Bodleian Libraries blog, "Ada Lovelace and the Analytical Engine" — https://blogs.bodleian.ox.ac.uk/adalovelace/2018/07/26/ada-lovelace-and-the-analytical-engine/ (Note G, Bernoulli numbers, initials A.A.L.)
  10. Turing, A. M., "Computing Machinery and Intelligence," *Mind* 59 (1950) ("Lady Lovelace's Objection")
  11. Bowden, B. V. (ed.), *Faster Than Thought* (Pitman, 1953) — https://archive.org/details/fasterthanthough00bvbo
  12. Bromley, A. G., "Babbage's Analytical Engine Plans 28 and 28a," *IEEE Annals of the History of Computing* 22(4), 2000
  13. Toole, B. A., *Ada, the Enchantress of Numbers* (Strawberry Press, 1992)
  14. Public Domain Review, Babbage's "Observations on Street Nuisances" (1864) — https://publicdomainreview.org/collection/observations-on-street-nuisances-charles-babbage/
  15. Nature, feature on Lovelace's "Poetical Science" — https://www.nature.com/articles/525030a