Header Ads Widget

Responsive Advertisement

She Wrote the First Computer Program — a Century Before the First Computer: The Ada Lovelace Story

Ada Lovelace, Lord Byron's only legitimate daughter, saw what Charles Babbage's Analytical Engine could really do — and in 1843 she published the first algorithm ever written for a machine.

In September 1843, a London journal published a paper about a machine that had never been built. It carried seven long notes by the translator — notes three times longer than the article itself. In the last note, she described step by step how the unbuilt machine could calculate a sequence called Bernoulli numbers. It was the first computer program ever published, written a century before the first electronic computer. The translator signed herself only A.A.L. Her name was Ada Lovelace, Lord Byron's daughter. She had seen what nobody else had: a machine built to crunch numbers could one day make music and think in symbols. This is her story.

Ada Lovelace in a recreation of the famous 1835 Chalon portrait as a young woman, with long dark hair, wearing a dark 1830s gown with a white lace collar



The Poet's Daughter: A Childhood Designed Against Poetry

Augusta Ada Byron was born on 10 December 1815 in London, the only legitimate child of Lord Byron and Annabella Milbanke. Her parents separated a month after she was born, and in April 1816 Byron left England for good. He never saw her again, and died in Greece in 1824, aged thirty-six — the same age Ada would reach. Ada was raised by her mother, who was determined her daughter would not inherit her father's wild, poetic temperament. Annabella's answer was mathematics: tutors, arithmetic, geometry and science, while poetry was kept out of the schoolroom. Her tutors included William Frend, who had taught her mother, and Mary Somerville, the great populariser of science, who sent Ada books and set her problems. As a child her favourite subject was geography, but the numbers stayed with her.

The Flying Machine: A Twelve-Year-Old's Dream of Wings

At twelve, Ada set herself a project that showed exactly how her mind worked. She decided to design a flying machine. She studied birds' anatomy, measured their wings, and worked out what materials could carry a person through the air. She wrote up her research carefully and considered powering the machine with steam. She even called her study "Flyology". The machine was never built, and it could never have flown, but the episode shows the pattern of her whole life: a wild, imaginative idea attacked with patient, systematic mathematics. That combination — a poet's imagination disciplined by a mathematician's rigour — was exactly what she would later bring to Babbage's engines. Ada grew up beautiful and quick-witted, and at seventeen she was presented at court. In London society she met the scientists she most wanted to know: Babbage, John Herschel, Michael Faraday and Charles Wheatstone.

The Evening She Met Babbage: The Difference Engine

On 5 June 1833, Ada went with her mother to one of Charles Babbage's Saturday evening soirées, where Babbage, twenty-four years her senior, showed guests his Difference Engine, a mechanical calculator of brass gears designed to compute tables without error. Two weeks later they visited Babbage's studio to see the machine properly. Sophia Frend, the daughter of Ada's tutor, later wrote that Ada, "young as she was, understood its working, and saw the great beauty of the invention". She was seventeen, and she had just met the machine that would define her life. Babbage was already planning something far more ambitious: the Analytical Engine, with a store for numbers, a mill to work on them, and punched cards to tell it what to do — the design of a modern computer, drawn up in the 1830s. In November 1834 he shared the idea with her, and her mother's diaries say Ada was touched by "the universality of his ideas". She understood, before almost anyone else, that Babbage was building a machine that followed instructions.

A Countess and a Mathematician: Marriage, Motherhood and De Morgan

On 8 July 1835 Ada married William King, who encouraged her studies. They had three children — Byron (1836), Annabella (1837) and Ralph (1839) — and in 1838 William was created Earl of Lovelace, making Ada a countess. In 1841 she began advanced study with Augustus De Morgan, the great logician, who quickly discovered that his pupil's mathematical imagination was extraordinary. De Morgan set her problems and taught her the discipline of proof. She wrote long letters to De Morgan and Babbage, including an attempt at a "calculus of the nervous system", a mathematical model of the brain. She was a working mathematician with a family and a title — and she was about to do the most important work of her life, almost by accident. In 1840 Babbage lectured about his Analytical Engine at Turin, and a young Italian engineer, Luigi Federico Menabrea — later Prime Minister of Italy — transcribed the lectures into French, published in October 1842. Babbage's friend Charles Wheatstone asked Ada to translate it into English.

The Translation That Became a Revolution: Menabrea and the Notes

Ada spent most of a year on the translation, with Babbage's help. But she did far more than translate, adding seven notes, labelled A to G, three times longer than Menabrea's paper. The notes were published in September 1843 in Taylor's Scientific Memoirs, signed only with the initials A.A.L. In those notes she explained what a general-purpose machine really was: a machine that could follow a sequence of instructions — a program — and change what it did according to the results. She described how the engine's punched cards, borrowed from the Jacquard loom, could carry instructions as well as numbers. Where Babbage saw a machine for calculation, Ada saw one that could work with symbols of any kind. The Analytical Engine, she wrote, "weaves algebraical patterns just as the Jacquard loom weaves flowers and leaves". She suggested it might one day compose music and manipulate any symbols expressible in numbers — a vision the world would not catch up with for a hundred years.

Ada Lovelace at a writing desk with papers, a quill and an inkwell, in a recreation of the c.1843 Claudet daguerreotype, dark high-necked dress with a white lace collar



Note G and the First Program: Bernoulli Numbers and the Jacquard Loom

The most famous is Note G, in which Ada described a method for the Analytical Engine to calculate Bernoulli numbers, a sequence of fractions found throughout mathematics. She laid out the operations in order: the machine would move numbers between its store and mill, repeat operations and change course according to intermediate results. It is often called the first published computer program: an algorithm for a machine, published in 1843 for a machine that would never be built in her lifetime. The engine existed only on paper and her program could never be run, but the logic was complete and correct, and historians still study it today. In the same notes Ada set down a famous limit, later called "Lady Lovelace's Objection" by the computer pioneer Alan Turing. The Analytical Engine, she wrote, "has no pretensions whatever to originate anything. It can do whatever we know how to order it to perform." A machine, she insisted, could only do what it was told; it could not truly create. Turing spent much of his career arguing against her — a measure of how seriously her thinking was taken. But her larger point — that machines could be told to do far more than arithmetic — has been proved right every time a computer plays a song or shows a photograph.

The Objection and the Legacy: Dying at 36, Remembered Forever

Her last years were unhappy: debts from gambling on horse racing, a quarrel with her mother, and years of ill health. In her mid-thirties she learned she had uterine cancer. She died on 27 November 1852, aged thirty-six — the same age as her father. At her request she was buried beside him at St Mary Magdalene, Hucknall, the father she had never known. For a century she was remembered mostly as Byron's daughter, a footnote in a poet's biography. Then the computer age arrived, and the world went back to her notes. What it found was astonishing: a woman in 1843 who had understood, more clearly than the inventor, that a computer is a universal machine for symbols, not a calculator. Today she is honoured everywhere computing is honoured: the programming language Ada was named for her, and the second Tuesday of every October is Ada Lovelace Day, celebrating women in science, technology, engineering and mathematics. Her notes are recognised as the first computer program, and she is called the first computer programmer. The machine she wrote for was never built. The future she described was built instead, one program at a time — and it began with a seventeen-year-old girl at a London soirée, looking at a brass machine full of gears, and seeing the beauty of the invention.

Sources: Encyclopaedia Britannica, Wikipedia, MacTutor History of Mathematics (University of St Andrews), Oxford Dictionary of National Biography.

Post a Comment

0 Comments