
rlox: the Lox language in Rust, as a tree-walker and a bytecode VM
Every developer uses an interpreter or a compiler daily, and for most of us it stays a black box. We know there is a parser, something about a syntax tree, maybe "bytecode". But how does a closure keep a variable alive after its function returned? What does super.method() actually look up? Why is a bytecode VM faster than walking the tree? Robert Nystrom's book Crafting Interpreters answers those questions by building one small language, Lox, twice: first as a tree-walk interpreter in Java ("jlo






















