CHRIS HAY

IDEAS · SYSTEMS · OBJECTS / LONDON · 2026

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.

N-MOUSEOPENRECORDED 2026-11-22PUBLISHED · V1.0CITE ↓FOLLOW ↓

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.

BYTE, July 1979, pp. 198–220 ↗

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.

BYTE, June 1980, pp. 238 and 240 ↗

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.

  1. 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

    MANUSCRIPT JSON ↗ · BIBTEX ↗ · CSL JSON ↗

  2. 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

    MANUSCRIPT JSON ↗ · BIBTEX ↗ · CSL JSON ↗

MACHINE-READABLE HISTORY ↗

SOURCES & PROVENANCE

AUTHOR / Chris Hay · VERSION / 1.0

PUBLISHED 22 NOV 2026 · VERSION 1.0

CITE

CITE 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