Skip to main content

Runtime

7 posts

· 8 min read compiler runtime

Generators get a state machine, the cluster learns to gossip, and the wire format flips to CBOR

Two dense days grouped together — generator lowering finally has a state record and cross-yield liveness, the SWIM detector goes phi-accrual, and I delete the 2498-line hand-built wire format in favour of a CBOR envelope with a CDDL schema.

· 11 min read runtime

Wire Types and Distributed Actors

How Hew's wire types, remote spawning, and cluster formation came together across seven implementation phases — and where distributed supervision still falls short.

· 6 min read language-design runtime

State Machines and Duration Literals

Actors keep reinventing state machines badly, so I gave them a real one. Also, duration literals so you can stop counting nanosecond zeroes.

· 6 min read runtime

Running Valgrind on Everything

Systematic memory validation with valgrind — from 1,800 bytes definitely lost to zero, fixing reply channel leaks, supervisor cleanup, and a nested shutdown double-free.

· 5 min read compiler runtime

Closing the Gaps

Walking through the Hew pipeline to fix broken tail calls, unregistered defer, SQL injection in the stdlib, duration literals stuck at the lexer, and 120 new tests.

· 6 min read language-design runtime

Generators and Actor Mailboxes

Spec v0.6.1 added three generator forms to Hew, including one that streams values across actor boundaries through the mailbox.

· 7 min read runtime

Building the Actor Runtime

From one-thread-per-actor to M:N work-stealing — designing Hew's actor runtime, mailboxes, and supervision trees.