HTTP server
377 lines. Sockets, routing, request parsing.
More
Not snippets. 44 whole programs, 15,536 lines, each one checked on three engines for identical output, exit code and diagnostics.
377 lines. Sockets, routing, request parsing.
583 lines. Parser, planner, execution.
A bytecode machine.
Written in a language with no garbage collector.
Wire format, UDP.
Because the tests needed one.
375 lines, and a package.
A package too.
Bit operations, byte handling.
Files, patterns, streams.
Grasm, lexing Grasm.
Parse, evaluate, loop.
Parallel fetches, joined.
Many connections, one process.
Where the performance numbers come from.
10 programs compiled to wasm and run in a tab with no server: a fullstack counter, user registration, a voting app, a blog dashboard, a markdown editor, an upload gallery, a chat router, a collaborative todo list, a SPA router and realtime analytics. Both the count and the list come from the tree — a program runs in a tab when there is a page beside it — because this sentence said twelve while naming three that have none.
All of them live under ProjectGold/ in the repository, with the
expected output recorded beside each.