The Quilt cell-fabric runtime in C99. Part of the polyformalism — the same cell model, expressed in 12+ languages, byte-exact compatible.
The C99 port of the Quilt. The C99 port is distinctive because of its position in the language hierarchy — `gcc-compileable, C99-idiomatic, byte-exact with the rest of the polyformalism.
BIND(cell, dials) # set dials, idempotent
LINK(c1, c2) # add an undirected edge
EFFECT(cell) # propagate dial[0] to neighbors
VIEW(cell) # return dials
TICK(fabric) # advance all dials by 1, alternating direction
The canonical serialization is type(1) || id(8 LE) || dials(32 LE) || neighbors(8*N LE). The state hash is FNV-1a 64-bit. The test cell (id=1, dials=[1..16], neighbors=[2,3,4]) produces 0xe435d91d6d92a1d8 byte-exactly.
| Lang | Hash | Tests |
|---|---|---|
| Python 3 | ✓ | 7/7 |
| C99 (C99) | ✓ | manual |
| Rust | ✓ | 6/6 |
| Go | ✓ | 7/7 |
| Zig | ✓ | 7/7 |
| Mojo | ✓ | ref |
| Verilog | ✓ | manual |
| VHDL | ✓ | manual |
| JavaScript | ✓ | live |
| TypeScript | ✓ | 5/5 |
Every port points back to the Quilt Charter — the educational root document.
- The Quilt Charter
- quilt-claude-charts — protocol + 3 charts
- AI-Writings — the canon (230+ papers)
- live-canon.superinstance.dev — the live worker
- quilt-cowboy — the writers' room
Apache-2.0. Free as in freedom.