Eventually I'd like to write my own language like Lua (but stack-based), mostly for fun and partly for practice. But I don't fully understand a lot of aspects of how a virtual machine like that works. Can you recommend a good tutorial on it? Thanks!
There used to be one as part of the ANTLR Advanced Tutorial. I used that to bootstrap a fairly complex expert systems shell used as the core of a few things.