Some time back I coded a Lua interpreter using the limited environment we have on the HC2 (no parser libraries etc). It compiled to a "nested Lua functions" representation that is a relatively simple way to create a backend for a runtime. However, because it uses Lua's own stack for its nested calls it's very difficult to "pause " the execution to implement something like coroutines. So I have enjoyed myself to recode the backend for a home-made VM with a classic "flat" code + stack structure. T
    • Thanks
    2