Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Targetting Neko VM? #183

Open
metacritical opened this issue Jun 29, 2018 · 2 comments
Open

Targetting Neko VM? #183

metacritical opened this issue Jun 29, 2018 · 2 comments

Comments

@metacritical
Copy link

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.

@metacritical
Copy link
Author

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.

@ppenzin
Copy link
Collaborator

ppenzin commented Jul 10, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants