In 1946, just after World War II, the world was introduced to ENIAC (Electronic Numerical Integrator and Computer), built by a team led by J. Presper Eckert and John Mauchly at the University of Pennsylvania. It is widely regarded as the first general-purpose electronic digital computer, and it was an absolute monster. ENIAC filled a room measuring about 30 by 50 feet, weighed 30 tons, and used around 18,000 glowing .
ENIAC consumed so much power, the story goes, that it dimmed the lights of Philadelphia whenever it was switched on.
But how did you “use” a machine like this? Forget about keyboards or mice; they hadn’t been invented yet. Programming ENIAC was a demanding physical task. It looked like a giant telephone switchboard, and operators had to manually set thousands of switches and physically plug and unplug hundreds of thick black cables into different sockets to route the data.
While this could take days for a single new program, once set up, ENIAC’s pure electrical speed was breathtaking. It could perform calculations around a thousand times faster than earlier machines, completing in minutes tasks that used to take teams of human “computers” weeks.
Here are four of ENIAC’s units. A card reader feeds in the numbers, an accumulator adds, a multiplier multiplies, and a card punch records the answers. The cables between them decide where the numbers go next, so on ENIAC the cables are the program.
Program ENIAC with cables
Choose a job. Plug cables from OUT sockets into IN sockets so the numbers pass through the right units in the right order, then press Run ENIAC. When it works, choose another job and rewire.
The jobAdd up 3, 4, 5, 6, 7 and 8. Expected result: 33 The cards hold 3, 4, 5, 6, 7, 8.
Press a socket marked OUT, then a socket marked IN, to plug in a cable. Press a plugged socket to pull its cable out.
The real ENIAC had about forty panels, and a program could need hundreds of cables and thousands of switch settings. Its operators planned each one on paper first, then spent days at the panels.
A much simplified ENIAC. Run times use its real speed: about 5,000 additions or 360 multiplications a second.
Now imagine hundreds of cables instead of a handful, and thousands of switches, all to be checked again for every new problem.
ENIAC was incredibly fast, but manually plugging in cables to change its instructions took days. Even before it was finished, its designers were already working on a better way. Brilliant mathematician John von Neumann joined their discussions, and in 1945 he wrote up a master blueprint for a new kind of machine where the instructions — the program itself — were stored electronically in the computer’s memory right alongside the data.
This “” concept meant you could change what the computer did simply by loading a new program. Known today as the von Neumann architecture (although it grew out of teamwork with Eckert and Mauchly), this elegant design — a central processor, memory, and input/output — remains the basic blueprint of most computers, smartphones, and smartwatches in the world today.
A stored-program computer repeats three steps, over and over. Fetch: read the next instruction from memory; a small counter, the program counter, remembers where that is. Decode: work out what the instruction means. Execute: do it, then move on to the next one. Numbers and instructions travel between the processor and memory along a shared path called the bus.
Watch a stored program run
Press Step to go through fetch, decode and execute one stage at a time, or press Run. Then load a different program: nothing is rewired, only what is stored in memory changes.
- 0LOAD 5instr.
- 1ADD 6instr.
- 2STORE 7instr.
- 3OUTinstr.
- 4HALTinstr.
- 57data
- 65data
- 70result
- Fetch
- Decode
- Execute
The program and its data are already in memory, side by side. The program counter starts at address 0.
After J. von Neumann, “First Draft of a Report on the EDVAC”, 1945. A simplified machine with one accumulator and eight memory cells.
The program now lived inside the machine. The machines themselves were still hot, fragile giants, and making them small would take a new kind of switch.
Sources for this part
ENIAC
- ENIAC Accumulator #2 – Smithsonian
- ENIAC – Engineering and Technology History Wiki (IEEE)
- The Brief History of the ENIAC Computer – Smithsonian Magazine
- Meet the “Refrigerator Ladies” Who Programmed the ENIAC – Mental Floss
John von Neumann and the stored program