neko
neko copied to clipboard
Targetting Neko VM?
Are there any docs available about the Neko VM Byte Code or compiler services available to target NekoVM or HaxeVM ? Any links to NekoML source could be helpful. Thanks in advance.
Thanks a lot for pointing to the src/ i didnt see that. Also VM is quite fast i am planning to target it with a dialect of scheme that would look like clojure.
Disclaimer: there are people that know more about Neko than I do :) Nonetheless, I was curious about that too and I've put together a Haskell library that can read and write Neko modules. If you are writing something in Haskell you can use it as a bridge.
NekoVM is a stack machine, meaning that in most cases its instructions work with stack slots on top of the stack. The VM and Neko itself are lazily typed.
Bytecode.nml is useful if you want to understand the instruction set. Check out this file as well if you can read Haskell better.