I’d like to add a scripting/extension layer to my existing application. I like Haxe very much and so I thought it would be great to do scripting for my application in Haxe. How do you think is it a good idea? How would you approach this task? I can think of several ways of doing it:
- embed Lua engine inside the application and compile Haxe to Lua;
- embed HashLink without JIT and compile Haxe to HashLink bytecode;
- embed Cppia engine and compile Haxe to Cppia bytecode;
- embed Neko VM and compile Haxe to Neko bytecode.
Is any of these ways better than other one? Seems like the easiest way is to embed Lua, as Lua has not the best, but a nice stack-based embedding API, however Haxe compiles to Lua source code and I’d like to be compiling my extensions to some kind of bytecode. Is it possible right now to embed Neko, HashLink or Cppia as I would embed Lua engine for example? Is there any docs on how to do it the best way?