1200 × 1500
The port matched. The reference was wrong.
A 1979 language, a coding agent, and a misprint a reader had already caught in 1980.
ABOUT THIS NOTE +
A note about finishing a Rust port of Mouse, the language Peter Grogono published in BYTE in July 1979, with a coding agent. The port matched the C interpreter it was checked against. The C carried a misprint from the printed listing and three bugs that a reader, Tom Lane, had described in BYTE in June 1980. The agent guessed the misprint and said it had not checked; it inherited the other three without comment. The corrected interpreter runs in the browser.
01 / WHAT I ASKED
Mouse is a programming language that fits on a magazine page. Peter Grogono published it in BYTE in July 1979, with the interpreter printed as 198 lines of Pascal. I had a C version of it and an unfinished Rust port of my own. I asked a coding agent to finish the port, using the C as the reference.
02 / IT MATCHED
The agent finished the port and compared it with the C on every example I had. The output was identical, byte for byte. Every example I had only printed text.
03 / BELIEVE, BUT DID NOT CHECK
The agent’s report listed the places where it had chosen not to copy the C. One was the code that finds a macro’s parameter: “I used an increment, which I believe matches Grogono’s original listing but did not check against a source.” So I asked it to check against the magazine, not against the C.
04 / LINE 176
The printed listing has the same subtraction as the C. Lines 175 and 176 both take one away, and the article’s own explanation only works if one of them adds. The agent had guessed right, and the C carries the same minus as the misprint.
05 / A READER, TWO EVENINGS
Somebody had already noticed. In June 1980 BYTE printed a letter from a reader, Tom Lane: line 176 should have a plus sign, not a minus (one of several misprints), and there were three further bugs in the logic. He found them “during two evenings of studying the interpreter listing, with no machine use whatever.” Grogono replied that they were “all genuine bugs”, and that the misprint came from a poor photocopy of the proof. The correction was in print within a year. It did not reach the C.
06 / THIRTY-THREE OR ONE
The agent had guessed the misprint. This bug it copied from the C without knowing it was there. With Lane’s corrections in, the port prints 1, and the article’s example listings run as expected: listing 2, which runs for ever, prints primes until it is stopped.
The corrected interpreter runs in the browser, compiled from the same Rust source as the command-line version. Lane’s test is one of the examples.
WHAT THIS DOES NOT SHOW
- The agent did not discover these bugs. Tom Lane did, and they were in print by 1980.
- This is one port in one session. It says nothing general about how often an agent copies a reference’s mistakes.
- I have not established where the C version came from, only that it has the same subtraction as the printed listing.
Matching a reference is evidence about the port. It is not evidence about the reference.
OPEN
When a port matches its reference, who checks the reference?
Two habits came out of this: asking the agent what it did not check, and asking what the reference was copied from. Whether either would have been enough without a reader’s letter from 1980 is not something this note can answer.
PUBLICATION HISTORY
Each version preserves its manuscript, claims and source references. Research status is recorded separately from publication.
- V1.0 · 2026-11-22 ↗
Initial publication of the note on porting Mouse and the misprint Tom Lane caught in 1980, after a fact check against the BYTE scans. OPEN
- V1.1 · 2026-11-22 ↗
Two slips in the article's own programs, which an independent review by a second model found: listing 5 fails when given fewer than two numbers, and the array program on page 204 reads one full stop too many and accepts a twenty-sixth number. The examples now keep the printed prompts. OPEN
SOURCES & PROVENANCE
- Peter Grogono, “Mouse: A Language for Microcomputers”, BYTE, July 1979, pp. 198–220 ↗
Listing 6 is on pp. 209, 210 and 212; line 176 on p. 212; Figure 1 on p. 216.
- Tom Lane, “Comment and Correction for Mouse”, with Peter Grogono’s reply, BYTE, June 1980, pp. 238 and 240 ↗
- chrishayuk/mouse-interpreter ↗
The interpreter, its tests, 42 example programs, and reduced scans of both sources.
- Coding-agent session, 21 November 2026
The agent’s report is quoted as written. The first completed port was rebuilt unchanged from the session transcript to confirm that it prints 33 on Lane’s test.
AUTHOR / Chris Hay · VERSION / 1.0
PUBLISHED 22 NOV 2026 · VERSION 1.0
CITECITE THIS
Research note · 1.0
Hay, C. (2026). The port matched. The reference was wrong. (Version 1.0). Chris Hay. https://chrishayuk.com/records/N-MOUSE/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