upvote
> C# (already has it but is terrible to write native/VM code for?)

What do you mean here? Do you mean hand-writing MSIL or native interop (pinvoke) or something else?

reply
No I meant this but for C# is a whole lot more complex:

http://move.rupy.se/file/jvm.txt

reply
> some sort of magic to me.

Your stack is on the heap and it contains an instruction pointer to jump to for resume.

reply