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 posts
How Hew's wire types, remote spawning, and cluster formation came together across seven implementation phases — and where distributed supervision still falls short.
Actors keep reinventing state machines badly, so I gave them a real one. Also, duration literals so you can stop counting nanosecond zeroes.
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.
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.
Spec v0.6.1 added three generator forms to Hew, including one that streams values across actor boundaries through the mailbox.
From one-thread-per-actor to M:N work-stealing — designing Hew's actor runtime, mailboxes, and supervision trees.