Enter the forest
Ada Lovelace
Lost and forgotten inventors

Ada Lovelace

The first program for a machine that no one built

✦ Confirmed

The daughter of the poet Lord Byron wrote about "poetical science." A hundred years before the first computer, she foresaw that a machine would compose music.

Who: Ada Lovelace · When: 1843 · Where: London

See the illustrated storyphotos, animations and experiments to do yourself

The tale

Ada was born in 1815. She never knew her father, Lord Byron, because he left England when she was a few weeks old. Her mother taught her mathematics to draw her away from poetry. Ada combined the one with the other.

As a young woman she met Charles Babbage, who was designing the Analytical Engine: a mechanical computer with memory, controlled by punched cards like the Jacquard loom.

In 1843 she translated an article by the Italian engineer Luigi Menabrea about this machine and added seven extensive notes, longer than the article itself. In Note G she set out step by step how the machine would calculate Bernoulli numbers. This is called the first published computer program.

She also wrote that the machine could process not only numbers but any symbols, even musical notes, and compose music. She died in 1852, at the age of 36. The Analytical Engine was never completed.

How it works

  1. Punched cards: Successive operations are recorded as holes in cards. The machine reads them one after another, like a loom reading a fabric pattern.
  2. The loop: In Ada's program the same steps repeat for successive numbers. This is a loop, the foundation of every program.
  3. Symbols: If numbers can stand for anything, a machine can process letters, notes and images. This is a thought that was ahead of its time.

Check for yourself

  1. A tea program: Write down every step of making tea on slips of paper, one step per slip. Give them to someone and have them do exactly what is written. You will see how many steps you left out.
  2. The loop: Write a program: add 2 to a number, write it down, repeat 10 times. Start from zero and carry it out yourself. Ada described a loop like this.
  3. Music from numbers: Assign numbers to notes: do 1, re 2, mi 3. Play the sequence 1, 2, 3, 1 on a glockenspiel or in a piano app. The numbers have become a melody.

What is known for certain

Lovelace's notes were published in 1843. Historians argue about how much she devised herself and how much she owes to Babbage, who had earlier written his own example programs. Her vision of a machine processing arbitrary symbols is regarded as original.

Sources