1200 × 1500
Turing’s 1945 computer, run as written.
The machine of the ACE report, the two programs it prints, and a coding agent that ran them on the computer they were written for.
ABOUT THIS NOTE +
A note about building the computer Alan Turing proposed in his 1945 report for the National Physical Laboratory, which was never built as he specified it, and running the two instruction tables the report prints. A coding agent built the machine at the level of its instructions, an assembler that follows Turing’s own procedure for numbering cards, and the tables the report only describes. Neither printed table runs as printed. INDEXIN needs three corrections and CALPOL five, and three of the thirteen cards Turing drew for INDEXIN do not say what its table says. The machine and the tables run in the browser.
01 / A COMPUTER ON PAPER
In 1945, at the National Physical Laboratory, Alan Turing wrote a report called Proposed Electronic Calculator: a design for a stored-program computer, which the report’s cover calls an Automatic Computing Engine. It describes the memory, the logical control, the arithmetic and the circuits, down to the valves. It was never built as written. The Pilot ACE that ran at NPL in 1950 was a smaller and different design. I asked a coding agent to build the machine the report describes and to run the programs in it.
Turing, Proposed Electronic Calculator, transcribed ↗The report and its figures at the Turing Archive ↗
02 / A MACHINE THAT WAITS FOR ITS MEMORY
The memory is mercury delay lines. Each holds 1,024 pulses, a microsecond apart, going round and round: 32 words, which Turing calls minor cycles, of 32 digits each. A word can only be read as it comes out of the end of the line. So after an ordinary instruction the machine does not go to the next word in the line but the one after: by the time it is ready, the next “would have gone by before we were ready to apply it; we should always just miss the boat”. The simulation keeps time in minor cycles, because where a word sits decides how long the machine waits for it.
03 / PROGRAMS IN POPULAR FORM
Section 13 gives each instruction three forms: machine form, the 32 digits; permanent form, on punched cards kept in a library; and popular form, a short notation for people to read. Programs are tables of instructions in popular form, such as TS 6 - TS 2 or B, BURY, and a table can name another as a subsidiary. Turing describes how a job is assembled: copy the cards it needs, sort them by name, “renumber them consecutively in the binary scale”, and fill those numbers in wherever one instruction names another. The agent wrote that procedure as a program.
04 / THE CARDS AND THE TABLE
The report prints two complete tables. INDEXIN, thirteen instructions, fetches a word whose position is held in a temporary storage. It is printed twice: in popular form, and in Figure 38 as the thirteen cards that would be punched for it, digit by digit. Three of the cards do not say what the table says. Where the table has ADD ‘A’ the card has a different multiplier switched on. Where the table has OR the card has AND. And where the table moves TS 8 the card moves TS 4.
05 / INDEXIN DOES NOT RUN AS PRINTED
Run as printed, INDEXIN fetches nothing, and it does no better from the cards. It needs three corrections. The instruction it builds has the code for storing a word where it needs the code for fetching one, and it ends by burying a return address where it should dig one up. Carpenter and Doran’s 1986 edition of the report points out both. The third we have not found written down. INDEXIN shifts the digits it has built sixteen places to move them into place, and then takes the half of the result they have just left. With all three corrections it works, and leaving out any one of them stops it.
06 / CALPOL NEVER STOPS
The second table, CALPOL, works out a polynomial of degree fifteen. As printed it never stops. With five corrections it gives the right answer, and gives it again the second time it is used. Carpenter and Doran call section 13 “brilliant” and say it “contains numerous coding errors”, and they analysed CALPOL in a paper in 1977. I have not read that paper, so none of the five is claimed as new here. They are listed, with what each one does, in the repository.
07 / THE TABLES HE ONLY DESCRIBED
Both printed tables call others the report describes in a sentence or two and does not print: BURY and UNBURY, which keep return addresses; DISCRIM, which chooses between two ways on; PLUSIND, MULTIP, ADD, TRANS 45 and BINDEC. These were written for the machine from Turing’s descriptions, and they are ours. Writing them turned up two things. BURY cannot be written the obvious way, with logical operations, because DISCRIM is given its question in the storage they write to. And DISCRIM done as its outline says gives the wrong answer for any word whose last digit is a 1, because that digit counts as a sign: it says no such word contains a 1.
The machine, the assembler and every table run in the browser. You can write a table, see it in machine form, watch every instruction the machine obeys, and run INDEXIN and CALPOL as printed or corrected.
WHAT THIS DOES NOT SHOW
- This is the machine at the level of its instructions. The circuits of Figures 12 to 36 are not simulated, and where the text and the figures disagree about what an instruction does, a choice was made. There are nine such choices, and each is listed with both readings.
- Carpenter and Doran’s 1986 notes point out several of the same problems, and their 1977 paper analyses CALPOL, which I have not read. Some of what is reported here as not found before may be in it.
- The machine, the assembler, the tables the report only describes and the corrections all came from one agent in one session. The corrections are readings of what Turing meant.
- The DISCRIM result depends on reading its outline literally. Turing may have meant the sign to be dealt with in a way the outline does not mention.
- I found no earlier program that runs the machine of the 1945 report, as opposed to the Pilot ACE. I searched the web and GitHub, and that is not proof there is none.
- Figures 19 and 38 are redrawn here from a transcription. The originals are at the Turing Archive.
A program printed as an example is still a program. The way to read it is to run it.
OPEN
If a computer was only ever a design, were its example programs ever more than drafts?
Turing wrote INDEXIN and CALPOL for a machine that existed only in the same report, with nothing to run them on. The errors are the ordinary kind: a digit, a register, a name. What running them adds is not cleverness but a way of finding the ones that only show when a word is actually in the wrong place.
PUBLICATION HISTORY
Each version preserves its manuscript, claims and source references. Research status is recorded separately from publication.
- V1.0 · 2026-11-22 ↗
First published: Turing's two printed instruction tables run on a simulation of the machine his 1945 report describes, with the corrections each needed and the three cards of Fig. 38 that disagree with INDEXIN. OPEN
- V1.1 · 2026-11-22 ↗
Corrections are now given by kind: INDEXIN's three are slips; of CALPOL's five changes three are slips, one follows the other side of a conflict in the report, and one is needed only because of the agent's own UNBURY. Adds Turing's caveat that section 13 is 'very incomplete and crude', that Figure 38 was read twice, that CALPOL's endless running is proven, an independent review by a second model which corrected the simulation's timing, and the prior work. The title no longer counts eight corrections. OPEN
SOURCES & PROVENANCE
- A. M. Turing, “Proposed Electronic Calculator”, report to the Executive Committee of the National Physical Laboratory (E.882), 1945; transcribed on Wikisource ↗
INDEXIN is on p. 29 of the report and CALPOL on p. 31. Instruction forms are in section 13, the card layout in section 7, the operation types in section 12. Figures 19, 37 and 38 give the digits of each instruction.
- The report and its original figures, The Turing Archive for the History of Computing ↗
Figures 19 and 38 are redrawn in this note from a transcription; the originals are here.
- B. E. Carpenter and R. W. Doran (eds.), “A. M. Turing’s ACE Report of 1946 and Other Papers”, MIT Press, 1986
The editors’ introduction and notes 11 to 18 on the text, which point out conflicts in sections 11 and 12 and two of the corrections to INDEXIN.
- B. E. Carpenter and R. W. Doran, “The other Turing machine”, The Computer Journal 20(3), 1977, pp. 269–279 ↗
Analyses CALPOL. Not read for this note.
- chrishayuk/turing-ace ↗
The machine, the assembler, the tables as printed and corrected, the tables written from Turing’s descriptions, the corrections and the nine decisions, with tests.
- Coding-agent session, 22 November 2026
The machine, the assembler, the transcription of the tables and the tables the report only describes were written in this session. Every result in this note can be rerun on the interactive study.
AUTHOR / Chris Hay · VERSION / 1.0
PUBLISHED 22 NOV 2026 · VERSION 1.0
CITECITE THIS
Research note · 1.0
Hay, C. (2026). Turing’s 1945 computer, run as written. (Version 1.0). Chris Hay. https://chrishayuk.com/records/N-TURING-ACE/1.0
FOLLOW THE WORK
New notebook entries and recorded work, as they appear. Point a feed reader — or an agent of your own — at an address below. No account, no email address, nothing for this site to keep.
The notebook
New ideas, experiments and essays, as they are recorded. Includes labelled working drafts.
OPEN FEEDhttps://chrishayuk.com/notebook/feed.xmlThe record
Everything published to the Chris Hay record.
OPEN FEEDhttps://chrishayuk.com/record/feed.xml
FOR PROGRAMS · follow.json · JSON Feed