1200 × 1500
A handwritten program from 1958 runs again, to the last binary digit.
Charles Hamblin’s GEORGE, a stack language for the English Electric DEUCE: rebuilt from its manual with a coding agent, then his own translator transcribed from 22 coding sheets and run on a simulated DEUCE, until the two agreed word for word.
ABOUT THIS NOTE +
A working note about rebuilding GEORGE, the General Order Generator that Charles Hamblin wrote for the English Electric DEUCE in 1957–58, from the three documents that survive: the programming manual, 52 pages of flow diagrams and 22 coding sheets. GEORGE programs are reverse Polish, with no addresses, run on a running accumulator of twelve cells. An interpreter built from the manual runs the manual’s programs, and Example 3 punches a quarter of what Simpson’s rule gives, because its coefficients are for the wrong step. Then the coding sheets, transcribed, were run as a deck of cards on a simulated DEUCE. Hamblin’s own translator runs the manual’s programs, and tracing his routines one instruction at a time brought the interpreter to the same 32-digit words as his code: of 5,000 random programs, 4,993 run the same both ways in every respect, and the other 7 differ on purpose, where the manual says something his code does not do. On the way it found four places where a sheet contradicts its flow diagram, and arithmetic in this version that is not what the manual says: an addition that drops a binary digit, and a multiplication that can lose the sign.
01 / THREE DOCUMENTS
GEORGE was written by Charles Hamblin at the New South Wales University of Technology in 1957 and 1958, for its English Electric DEUCE. The manual opens: “GEORGE, or the General Order Generator, is a program for DEUCE permitting mathematical problems to be presented to the machine in a simple “addressless” instruction language, here called “G-code”.” Three documents survive, all on David Green’s DEUCE archive, scanned from the originals and supplied by Robin Vowels: the programming and operation manual, 23 typed pages; the flow diagrams, 52 handwritten pages; and the coding sheets, 22 handwritten pages of DEUCE instructions. The archive says the last two are “the only extant copy” and “correspond to the penultimate version of GEORGE IA”. I asked a coding agent to build the language from the manual, and then to read the other two against it.
02 / TWELVE CELLS
A G-program is written in reverse Polish and names no addresses. The manual asks the reader to picture a pseudo-machine with a “running accumulator”: “a set of storage locations (known as “cells”) arranged in a linear order and operated on the “last-in-first-out” principle.” A number or a variable goes into the first empty cell; an operator works on the last cell or the last two. So a b + leaves the sum where a was. “The accumulator is limited to 12 cells. This is more than enough for all normal calculations”. Beside it are a link list of six for subroutines and repetitions, and a store of 32 plain variables, 1,024 with one suffix and 4,096 with two. Numbers are floating point with a 22-digit binary mantissa. The interpreter obeys a program a symbol at a time, as GEORGE II did, and the playground shows the twelve cells after every symbol.
03 / EXAMPLE 3 IS OUT BY A FACTOR OF FOUR
Example 3 of the manual integrates exp(−x²/2) / (1 + exp(−ax)) from 1 to 5 by Simpson’s rule with 16 intervals, for five values of a read from cards. The argument is worked out as j 4 ÷ 1 +, so the step is a quarter. Simpson’s rule then weights the ordinates by a twelfth: 1/12, 4/12, 2/12 and so on. The manual’s Simpson vector holds 1/48, 4/48, 2/48, and its program for preparing the vector begins 1, 48 ÷. Run as printed, every result is a quarter of what Simpson’s rule gives: 0.0497078 for a = 0, where Simpson’s rule worked in double precision gives 0.198831. Everything else in the program is right. 1/48 would be the weight for a step of a sixteenth, which suggests the example was changed from another range at some point. That is a guess.
04 / NUMERALS RUN TOGETHER
A number is written one digit to a symbol, and two numerals side by side are one number. The manual says so: “When two numbers must be written consecutively they should be separated by a comma (special symbol, omitted in translation)”. It is easy to forget when writing. 3, 4 14 ↓ looks like a call of subroutine 14 with 3 and 4 in the accumulator. It calls subroutine 414, taken modulo 32, which is 30. The interpreter does what the machine would, and its language server warns when numerals run together.
05 / WHAT THE FLOW DIAGRAMS SETTLED
The manual leaves open how a repetition counts and what truth is. The flow diagrams are DEUCE instruction listings, not boxes and arrows, and they answer both. On page 26, a b rep (x) sets x to a and stores the count b − a in the link list with no test on the way in; the count is first looked at by ], on pages 23 and 27. So the body of a repetition is always obeyed at least once. When a is greater than b, the 16-digit count wraps round, to about 65,536 − (a − b) passes. On page 22, = and > leave a word with only the sign digit set for truth, which reads as −1, and zero for falsehood, and a conditional skip tests only the sign digit. ~ complements every digit of the word, exponent and all, so ~ of truth is just under a half. It still acts correctly in a skip. All of this was later confirmed by running Hamblin’s own code (07).
06 / WHAT THE CODING SHEETS HOLD
The flow diagram for sin and cos, page 38, shows a polynomial taken from a track but not its coefficients. The coding sheets were transcribed minor cycle by minor cycle, about 1,830 written rows, with the 20 doubtful cells marked. Sheet 21, DL8, track 15/13, holds five constants written as base-32 digits at minor cycles 1, 3, 5, 7 and 13. At 30 binary places they are −1.2337005, +0.2536693, −0.0208627, +0.00091768 and −0.0000238. They are close to the Taylor coefficients of cos(πx/2), but not equal to them, in the way of a polynomial fitted to the whole interval; with them, 1 plus the polynomial in x² is within 3.0·10⁻⁸ of cos(πx/2) from 0 to 1. Beside them, on track 15/12, is 2/π, which turns the argument into quarter periods. Tracing the routine on the simulator (07) confirmed the order in which they are used.
07 / HAMBLIN’S OWN TRANSLATOR, RUNNING
A DEUCE was simulated from English Electric’s programming manual and course notes, and the 22 transcribed coding sheets were fed to it as a deck of 193 cards, as an operator would have, followed by each G-program and its data. This version took its program as 8-bit codes, four to a card row, not the decimal pairs the manual describes; the read routine says so. Four places on the sheets, each clear on the scan, contradict their flow diagrams: divide falls into the multiply routine, R| and P| do nothing, any number below about a quarter punches zeros without end, and wait reads the wrong track. For the last, the flow diagram carries Hamblin’s own correction, written over the old value; the sheet still has the old one. With the flow diagrams’ versions, applied at run time, Hamblin’s translator runs all 16 of the manual’s programs. sin and cos needed the DEUCE Logical Design Manual as well: his routine reads the multiplier’s store while it is still multiplying.
08 / TO THE LAST BINARY DIGIT
At first the interpreter and Hamblin’s code disagreed in the sixth figure of Example 3. Tracing his addition register by register showed why: when it shifts the smaller number into line, it drops that number’s lowest binary digit and doubles another, and then rounds half up. The DEUCE Logical Design Manual describes that shift (p. 58). The same method was used on multiplication, division, the punch’s decimal conversion, every function, the reading of numerals and data cards, the step of a repetition and the single shot after an overflow, and each was written into the interpreter as his code does it, then checked word for word on random inputs: 200,324 sums and differences, 122,576 products, 112,819 quotients, 160,056 punched cards, 60,000 arguments for each function, 200,145 numerals, 180,105 data cards. Random programs with arithmetic, functions, suffixes, repetitions, skips, logic and subroutines are compared on everything they punch and on the stop they end with: of 5,000, 4,993 are the same both ways, and the other 7 are 0 ÷ 0, which the manual’s stop table says stops and Hamblin’s code passes as 0. It also brought out what the manual does not say. Indexing numbers go through the same fetch-integer routine as rem’s divisor, right only within the range the manual allows. Copying from an empty accumulator gives 0. 0 sin is −2⁻²⁵. The punch nearly always takes an exact half down. A repetition variable set to a small fraction in the loop sends the machine astray. And some of it is plainly wrong: 0.609211 times −0.820734, which is −0.50000018, is punched as +0.5, the sign lost in standardising; 2, 5 max is −5.
The interpreter runs in the browser, compiled from the same Rust source as the command-line version, with the manual’s programs as examples. Every run is traced, so the twelve cells can be stepped through a symbol at a time.
FOLLOW THIS IDEA — Run Example 3 as printed — interactive study →FOLLOW THIS IDEA — Run Example 3 with 1/12 →FOLLOW THIS IDEA — Write a G-program and step through its accumulator →FOLLOW THIS IDEA — Source, transcription, simulator and tutorial →FOLLOW THIS IDEA — The manual, flow diagrams and coding sheets, on David Green’s DEUCE archive →
WHAT THIS DOES NOT SHOW
- Word for word means agreement with the sheets as simulated, with four corrections and one reconstructed cell. Much of what the arithmetic rests on is documented in English Electric’s manuals; the divider’s working, the reader’s timing and one class of P31 digits are chosen or inferred. The two routes share the program reader and the symbol codes. Their agreement cannot check those. The interpreter now copies Hamblin’s arithmetic, so the agreement of the two is no longer independent evidence about the arithmetic: it says the model is faithful to his code, not that his code was right. An independent model, OpenAI’s Codex, reviewed the repository and checked samples of the transcription against the scans; its findings and what was done about them are in the repository.
- Running Hamblin’s code needed choices the sheets cannot show. A binary digit, P31, has no column on the form, and for one class of words its value rests only on the program running. One doubtful cell is filled from the flow diagram. The three corrections are applied at run time, not written into the transcription.
- All of the reading, of the manual, the flow diagrams and the coding sheets, was done by coding agents. No person has yet checked it against the pages. The transcription of the coding sheets marks 20 lines as doubtful.
- The flow diagrams and coding sheets are the penultimate version of GEORGE IA. Nothing describes GEORGE II, and margin notes mention variants 1B and 1C.
- Where the manual says something specific, the interpreter follows it and not Hamblin’s code: max, the single shot after the square root of a negative number, 0 ÷ 0, rem by a whole divisor of 2¹⁵ or more, and > on a zero word with an exponent. Everywhere the manual is silent, it follows his code.
- The simulator is built from manuals, not from a DEUCE. Where they do not say, for instance the reader’s timing between its minimum and maximum, it chooses, and the choices are written down.
- That Example 3 changed its range at some point is a guess. The documents do not say how the 1/48 came about, or whether anyone ran the example as printed.
A manual describes a language. Only the program says what the machine did, and the program has to be run to say it.
OPEN
When a run of handwritten code disagrees with its manual, which one was GEORGE?
A disagreement has four places to look: the transcription, the simulator, the reading of DEUCE, and the 1958 program itself. Most of the disagreements found so far were traced to one of the first three and put right. A few, max and the lost sign in multiplication among them, are the program as written, the version before the last, which Hamblin may well have corrected himself.
PUBLICATION HISTORY
Each version preserves its manuscript, claims and source references. Research status is recorded separately from publication.
- V1.0 · 2026-11-23 ↗
First publication: GEORGE rebuilt from Hamblin's 1958 manual, Example 3's factor-of-four erratum, and his own GEORGE IA transcribed from 22 coding sheets and run on a simulated DEUCE, agreeing with the interpreter word for word, with the four sheet/flow-diagram contradictions and the limits of a reading by coding agents OPEN
- V1.1 · 2026-11-23 ↗
After a second independent review: the random-program comparison now checks the stop each run ends on, and gives 4,993 of 5,000 the same, not 5,000 of 5,000; 0 ÷ 0 now stops as the manual says; the cases where the interpreter follows the manual over Hamblin's code are five, not two; and 'word for word' is said to mean agreement with the simulated, corrected sheets OPEN
SOURCES & PROVENANCE
- C. L. Hamblin, “GEORGE IA and II: A semi-translation programming scheme for DEUCE. Programming and Operation Manual”, University of New South Wales, c. 1958 ↗
23 pages, typed. The running accumulator is on printed p. 2 (PDF p. 5); the comma on p. 4 (PDF p. 7); Example 3 on pp. 7-8 (PDF pp. 10-11); the twelve cells on p. 10 (PDF p. 13); the coding table, Appendix I, on p. 18 (PDF p. 21).
- “GEORGE flow diagrams”, c. 1958 ↗
52 pages, handwritten DEUCE instruction listings. Relations and logic on p. 22; ] on p. 23; skips on p. 25; rep on pp. 26-27; sin and cos on p. 38.
- “UTECOM Programme GEORGE”, coding sheets, c. 1958 ↗
22 pages, handwritten DEUCE instructions. The sin and cos coefficients are on sheet 21, DL8, track 15/13.
- David Green’s DEUCE archive, section GEORGE ↗
Scanned from the UTECOM originals and supplied by Robin Vowels. Downloaded on 22 November 2026.
- English Electric, “DEUCE Programming Manual”, May 1956; “DEUCE Logical Design Manual, Part I”, NS-y-37/11-57 ↗
The simulator’s sources. The multiplier is chapter 10 of the Logical Design Manual.
- chrishayuk/george ↗
The interpreter, the DEUCE simulator, the transcription of the coding sheets, the word-for-word tests against Hamblin’s code, 16 example programs, a tutorial, a language server, the errata, the decisions, the reading notes and an independent review.
- Coding-agent sessions, November 2026
The interpreter, the simulator, the reading of the flow diagrams and the transcription of the coding sheets were made in these sessions. The interpreter’s results can be rerun on the interactive study; those of Hamblin’s code with george deuce george.
AUTHOR / Chris Hay · VERSION / 1.1
PUBLISHED 23 NOV 2026 · REVISED 23 NOV 2026 · VERSION 1.1
CITECITE THIS
Research note · 1.1
Hay, C. (2026). A handwritten program from 1958 runs again, to the last binary digit. (Version 1.1). Chris Hay. https://chrishayuk.com/records/N-GEORGE/1.1
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