Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

⚙️ quilt-c

The Quilt cell-fabric runtime in C99. Part of the polyformalism — the same cell model, expressed in 12+ languages, byte-exact compatible.

Apache-2.0 C99 byte-exact

✦ Why this port exists

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.

✦ The 5 opcodes

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.

✦ The full polyformalism

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

✦ The educational root

Every port points back to the Quilt Charter — the educational root document.

✦ See also

✦ License

Apache-2.0. Free as in freedom.

About

Polyformalism: Quilt in C (bare metal, the mathematical core)

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages