{"id":"N-ALGOL-60","url":"https://chrishayuk.com/notebook/the-first-algol-60-system","currentVersion":"1.0","publication":"published","scientificStatus":"OPEN","versions":[{"version":"1.0","title":"The first ALGOL 60 system’s run-time is missing. Its 1964 printout is not.","abstract":"A note about building an ALGOL 60 interpreter from the 1962 Revised Report with a coding agent, and then a second mode that runs programs as the first ALGOL 60 system ran them: the one Dijkstra and Zonneveld wrote for the Electrologica X1 in Amsterdam, which went into operation in 1960. The X1’s compiler survives and has been run again; the run-time routines its programs called were printed by the Mathematical Centre, but no copy has been found. So the second mode was built from what the system’s documents say those routines did, and checked two ways: against the real compiler on a simulator, and against output the X1 printed in 1964. Of the 82 numbers of its first run, it reproduces 80. The other two are last digits that sit just above a decimal tie. Both modes run in the browser, side by side.","authors":["Chris Hay"],"url":"https://chrishayuk.com/records/N-ALGOL-60/1.0","published":"2026-11-23","publication":"published","scientificStatus":"OPEN","supersededBy":[],"hash":"cb951f55c42e2692ab6c64739b5d0c20e027c363e4560489062c78cbd9d39bc7","algorithm":"sha256","revision":{"kind":"initial","summary":"First published: ALGOL 60 from the 1962 Revised Report, and the Dijkstra–Zonneveld system for the Electrologica X1 rebuilt from its documents with a coding agent; 39 probes against the real compiler on Vakulenko's simulator, and 80 of the 82 numbers of the X1's own 1964 output for Zonneveld's outer planets reproduced, the other two last digits just above a decimal tie; with a playground that runs each program both ways."},"sources":[{"title":"P. Naur (ed.), “Revised Report on the Algorithmic Language ALGOL 60”, 1962","url":"https://www.masswerk.at/algol60/report.htm"},{"title":"D. E. Knuth, “Man or boy?”, Algol Bulletin 17.2.4, July 1964, p. 7","url":"https://archive.computerhistory.org/resources/text/algol/algol_bulletin/A17/A17P7.GIF"},{"title":"F. E. J. Kruseman Aretz, “The Dijkstra–Zonneveld ALGOL 60 compiler for the Electrologica X1”, CWI report SEN-N0301, 2003","url":"https://ir.cwi.nl/pub/4155","note":"The full text of a 1964 version of the compiler, with a Pascal equivalent, the 23 special properties of the 1962 user manual (section 1.3) and the outer-planets program (appendix B)."},{"title":"F. E. J. Kruseman Aretz, “A comparison between the ALGOL 60 implementations on the Electrologica X1 and the Electrologica X8”","url":"https://ir.cwi.nl/pub/13677","note":"Its appendix B.1 is an extract of the X1 user manual describing the arithmetic of the run-time routines: real zero, overflow, integer intermediates."},{"title":"E. W. Dijkstra, “Cursus programmeren in ALGOL 60”, 2nd edition, Mathematisch Centrum, February 1962","url":"https://ir.cwi.nl/pub/9591","note":"x := 7/2 is undefined for an integer x."},{"title":"E. W. Dijkstra, “Cursus programmeren in ALGOL 60”, 11th edition, Mathematisch Centrum, undated","url":"https://ir.cwi.nl/pub/9606","note":"Pp. 17–18, shown in the note: the same passage on 7/2. Pp. 68–69 of the scan: numbers beyond the range of variables typed as 0 or ‘inf’."},{"title":"J. A. Zonneveld, “Automatic Numerical Integration”, Mathematical Centre Tracts 8, 1964","url":"https://ir.cwi.nl/pub/13099","note":"Pp. 102–107: the outer-planets program, JAZ164, and what the X1 printed for it. The first run (eps = 10⁻³) is on p. 103, two more tolerances on p. 104, and the run with the mass of Pluto set to zero on p. 106."},{"title":"S. Vakulenko, x1-algol-compiler","url":"https://github.com/sergev/x1-algol-compiler","note":"The 1964 compiler in C, with a simulator of the X1 and a reconstructed run-time."},{"title":"chrishayuk/algol-60, release v0.1.1","url":"https://github.com/chrishayuk/algol-60","note":"The interpreter, --x1 with a source for every rule, the 39 probes run three ways, the 1964 output as a test, and the playground."},{"title":"Coding-agent sessions, 22–23 November 2026","note":"The interpreter, --x1, the probes and the transcription of the 1964 output were made in these sessions. Every result in this note can be rerun on the interactive study or with cargo test in the repository."}],"manuscript":"https://chrishayuk.com/api/record/N-ALGOL-60?version=1.0","citations":"https://chrishayuk.com/api/citations/N-ALGOL-60?version=1.0"}]}