A Stack-Based Bytecode VM for Lattice: 100 Opcodes, Serialization, and a Self-Hosted Compiler
A deep dive into the Lattice bytecode VM — a stack-based virtual machine with 100 opcodes, computed goto dispatch, pre-compiled concurrency sub-chunks, an ephemeral bump arena for string temporaries, a binary .latc serialization format, and a self-hosted compiler written in Lattice itself. Covers the instruction set architecture, upvalue-based closures, how structured concurrency compiles without AST dependency, and validation across 815 tests under AddressSanitizer.