{"id":"N-CPL","url":"https://chrishayuk.com/notebook/a-1966-program-said-it-had-not-been-checked","currentVersion":"1.1","publication":"published","scientificStatus":"OPEN","versions":[{"version":"1.0","title":"A 1966 program said it had not been checked. So I ran it.","abstract":"A note about building an interpreter for CPL, the language BCPL was cut down from, out of its 1966 working papers with a coding agent. The papers contain one program of any size, a preprocessor written in CPL, and someone has written across the top of it that the draft has not been fully checked. Typed in as printed it does not compile. With seven slips put right it runs and gives wrong answers in two ways, and in two more places its informal notes disagree with its own text. Corrected, it reads its own text to the last word. The interpreter and the program run in the browser.","authors":["Chris Hay"],"url":"https://chrishayuk.com/records/N-CPL/1.0","published":"2026-11-22","publication":"published","scientificStatus":"OPEN","supersededBy":[],"hash":"56bc934517daa5056aabc84d63360931e0f421235843df5afebe110f2d06f319","algorithm":"sha256","revision":{"kind":"initial","summary":"First publication: the preprocessor of Appendix 1 of the 1966 CPL Working Papers run on an interpreter built from those papers, the eleven corrections it needed, and the limits of one reading by one agent"},"next":"https://chrishayuk.com/records/N-CPL/1.1","sources":[{"title":"University of London Institute of Computer Science and The Mathematical Laboratory, Cambridge, “CPL Working Papers”, technical report, July 1966","url":"https://www.ancientgeek.org.uk/CPL/CPL_Working_Papers.pdf","note":"Appendix 1, “The Preprocessor”, begins on page 120 of the PDF. The program is Part 2, on pages 2 to 6 of the appendix; the informal definitions are Part 3, on pages 6 and 7."},{"title":"“CPL Elementary Programming Manual”, Edition II, Cambridge, January 1966","url":"https://www.ancientgeek.org.uk/CPL/CPL_Elementary_Programming_Manual.pdf"},{"title":"D. W. Barron, J. N. Buxton, D. F. Hartley, E. Nixon and C. Strachey, “The main features of CPL”, The Computer Journal 6, 1963","url":"https://www.ancientgeek.org.uk/CPL/The_Main_Features_of_CPL.pdf"},{"title":"Martin Richards, “How BCPL evolved from CPL”","url":"https://www.cl.cam.ac.uk/~mr10/cpl2bcpl.pdf"},{"title":"chrishayuk/cpl","url":"https://github.com/chrishayuk/cpl","note":"The interpreter, its tests, 73 example programs, a tutorial, and the preprocessor as printed and corrected with a detail of the page for each slip."},{"title":"Coding-agent session, 22 November 2026","note":"The interpreter, the transcription of Appendix 1 and the functions it leaves informal were written in this session. Every result in this note can be rerun on the interactive study."}],"manuscript":"https://chrishayuk.com/api/record/N-CPL?version=1.0","citations":"https://chrishayuk.com/api/citations/N-CPL?version=1.0"},{"version":"1.1","title":"A 1966 program said it had not been checked. So I ran it.","abstract":"A note about building an interpreter for CPL, the language BCPL was cut down from, out of its 1966 working papers with a coding agent. The papers contain one program of any size, a preprocessor written in CPL, and someone has written across the top of it that the draft has not been fully checked. Typed in as printed it does not compile. With seven slips put right it runs and gives wrong answers in two ways, and in two more places its informal notes disagree with its own text. Corrected, it reads its own text to the last word. The interpreter and the program run in the browser.","authors":["Chris Hay"],"url":"https://chrishayuk.com/records/N-CPL/1.1","published":"2026-11-22","revised":"2026-11-22","publication":"published","scientificStatus":"OPEN","supersededBy":[],"hash":"c2e4680fe1e639761fa9f090dd6e4f7c1be23c785e17f064be96b6533fb9bda7","algorithm":"sha256","revision":{"kind":"correction","summary":"The preprocessor's output for its own text is not wholly canonical; reading Part 3's etc. as including true and false is an interpretation. The eleven corrections are nine slips and two conflicts. An independent review by a second model found the interpreter grouping division the wrong way and skipping operands of and and or; both are corrected.","previous":"1.0"},"previous":"https://chrishayuk.com/records/N-CPL/1.0","sources":[{"title":"University of London Institute of Computer Science and The Mathematical Laboratory, Cambridge, “CPL Working Papers”, technical report, July 1966","url":"https://www.ancientgeek.org.uk/CPL/CPL_Working_Papers.pdf","note":"Appendix 1, “The Preprocessor”, begins on page 120 of the PDF. The program is Part 2, on pages 2 to 6 of the appendix; the informal definitions are Part 3, on pages 6 and 7."},{"title":"“CPL Elementary Programming Manual”, Edition II, Cambridge, January 1966","url":"https://www.ancientgeek.org.uk/CPL/CPL_Elementary_Programming_Manual.pdf"},{"title":"D. W. Barron, J. N. Buxton, D. F. Hartley, E. Nixon and C. Strachey, “The main features of CPL”, The Computer Journal 6, 1963","url":"https://www.ancientgeek.org.uk/CPL/The_Main_Features_of_CPL.pdf"},{"title":"Martin Richards, “How BCPL evolved from CPL”","url":"https://www.cl.cam.ac.uk/~mr10/cpl2bcpl.pdf"},{"title":"chrishayuk/cpl","url":"https://github.com/chrishayuk/cpl","note":"The interpreter, its tests, 73 example programs, a tutorial, and the preprocessor as printed and corrected with a detail of the page for each slip."},{"title":"Coding-agent session, 22 November 2026","note":"The interpreter, the transcription of Appendix 1 and the functions it leaves informal were written in this session. Every result in this note can be rerun on the interactive study."}],"manuscript":"https://chrishayuk.com/api/record/N-CPL?version=1.1","citations":"https://chrishayuk.com/api/citations/N-CPL?version=1.1"}]}