Attic › Computer science › Ada Lovelace

Charles Babbage's Analytical Engine had the main parts of a modern computer

Babbage's first machine, the Difference Engine, could do only one mathematical task: repeated addition. In 1834, he began to design the Analytical Engine, a machine that a user could program to do any calculation. Although it used steam power and mechanical gears instead of electricity, its design had the basic structure of a modern computer.

Babbage divided the Analytical Engine into two main hardware systems, which he named after the parts of a 19th-century cotton mill:

1. The Store: This was the machine's memory. It held numbers on vertical columns of gears. Each gear had ten teeth representing the digits 0 to 9. Babbage planned for the Store to hold 1,000 numbers of 50 digits each.

2. The Mill: This was the machine's central processor. It took numbers from the Store, did arithmetic operations (addition, subtraction, multiplication, and division) on them, and sent the results back to the Store.

To tell the machine what to do, Babbage borrowed an invention from the textile industry: the Jacquard machine. This device controlled a loom by reading patterns of holes punched into stiff paper cards. In the Analytical Engine, punched cards gave the machine its instructions and data. One set of cards told the Mill which operation to do, and another set told the Store which numbers to send to the Mill and where to save the answer.

Because the machine's instructions came from cards rather than from fixed gears, a person could change what the machine did simply by feeding it a different chain of cards. The Analytical Engine could also make decisions based on its own results: it could test whether a number in the Mill was positive or negative, and then skip forward or backward in the chain of cards. In modern computer science, this ability to branch and repeat instructions makes a machine Turing-complete, meaning it can do any computation that any modern computer can do.

In 1840, Babbage was invited to give a seminar at the University of Turin about the Analytical Engine. An Italian engineer and future prime minister, Luigi Federico Menabrea, wrote a description of the machine in French based on Babbage's lectures. Babbage never built a full Analytical Engine because its thousands of precision metal parts were too expensive and difficult to make, so the machine existed only on paper. To explain how it would work to an English audience, Lovelace translated Menabrea's paper in 1842–43 and added seven notes, A to G, on how to program the machine.

Fact-checked against Ada Lovelace on Wikipedia

Part of the Computer science syllabus: Turing and the Theory of Computation

See it on the timeline of Computer science