Machines, Built in the Open
A virtual machine is not a black box but a sequence of small, deliberate
choices. These repositories make the choices one at a time, where they can
be seen: each step is the whole machine again, with one idea more, so that
the difference between two steps is the lesson. From a loop in C to
compilers, garbage collection, native code and a circuit.
The book: Growing a Machine →
-
grow
The code of Growing a Machine
C • WebAssembly • a circuit • Unlicense
A chapter a folder, each runnable, the last one plus an idea
Repository
The book
-
Book
& code
vm
Virtual Machines: one machine, built up chapter by chapter
C • Python • Unlicense
From forty lines of C to compilers, garbage collection and native code
Repository
The book (PDF)
-
6502
e6502
A 6502 emulator, an assembler, and a tiny BASIC
C • Python • 6502 assembly
From machine cycles to a language; one program on three memory architectures
Repository
The Language Stack, chapter 1
Reconstructions
Systems from around 1980, rebuilt from what was published about them
rather than copied, so that they can be run again and read all the way
down. Their constraints explain their solutions: often it is the
architecture, more than the code, that has something to teach. Most of
them run in a browser tab.
-
Smalltalk-80
& Star
Balloon
Smalltalk-80 and a Star-like desktop, after the Blue Book
C • WebAssembly • Smalltalk • MIT
Xerox PARC, 1980–81: the Smalltalk-80 environment, and an office desktop written in it
Repository
Try it
The Star
-
Lisp
Machine
Lantern
A Lisp Machine of your own, in a browser tab
C • WebAssembly • Common Lisp • MIT
In the spirit of the MIT CADR and the Symbolics machines: windows, editor, debugger
Repository
Try it
-
Desktop
publishing
Galley
Early desktop publishing, in one page of the browser
JavaScript • PostScript • PDF
After the first PageMaker: a page on a pasteboard, columns, and text poured into them
Repository
Try it
-
VisiCalc
Kalkylark
A VisiCalc-style spreadsheet for VT100 terminals
Portable C
Written from scratch, to see the architecture of the first spreadsheet
Repository
-
ABC80
Material on the Swedish home computer ABC80
Luxor, 1978 • emulators, tools, essays
The game AIR-FIGHT of 1981, and the material of the book ABC80 inifrån
Repository
Try it
The books
The Code Behind the Books
Where a book points to a program, the program is here, and runs: the
examples too long to print, exercises, errata and updates, and the
working systems the arguments rest on.
-
cc
From Code to Computation
Code Crafting • examples, exercises, updates
With the whole book as a free PDF
Repository
The book
-
stack
The Language Stack
Code Crafting • from the 6502 and RISC-V to type systems
Programs that end as native code on a Raspberry Pi Pico 2
Repository
The book
-
Working
paper
precize
An audit record where agents stop and people decide
JavaScript • MCP server • MIT
The server, its trials and findings, for the paper Who saw what
Repository
The paper