Christian Bielert a écrit :
Hey, I discovered Neko yesterday and I really like it - The VM is tiny, the language looks ok and the C API seems really simple compared to Python&co. If I understood it correctly, it is supposed to separate language feature development from development of the language syntax itself - Which is the best way you can go IMO, there is no need to develop all features a thousand of times for each different syntax.

Hello,

Thanks,

I read that you could embed Neko in your C project easily - But in the example it used precompiled neko modules. Is it also possible to let the Neko VM execute dynamic code?

The VM does not contain the compiler, which is written in NekoML and compiled to Neko bytecode (in the /boot directory on CVS). You can reuse the compiler or part of it and integrate it in order to get this "dynamic" behavior.

An example can be found in the file neko/src/neko/Console.nml (written in NekoML). You can run "nekoc -console" in order to start such a interactive console.

I also noticed that there doesn't seem to be a GUI wrapper so far, I'd be interested in making one. I really fell in love with the Neko/C API, since it looks so clean and simple. Though the GUI toolkit I have in mind(wxWidgets) is written in C++ - Are there any examples of C++ wrappers for Neko? Do they look as clean as the C wrappers? Are they even possible?

It's possible, but there's no facilities for doing so.
I think there's already some UI wrappers on http://lib.haxe.org

By the way, what exactly are haXe and NekoML? I suppose haXe is parsed into Neko, but what about NekoML? Is NekoML actually compatible with the Neko Primitives?

Yes, both haXe and NekoML are languages that run on the NekoVM and are generated to Neko. haXe is an OO language and NekoML is a ML-style language which is currenly only used to write Neko+NekoML compilers.

Best,
Nicolas





--
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to