I need to expose C++ classes (packed as shared libraries) to the magic world of JavaScript.
The most obvious solution is to use Node.js/v8. Problem is that it has to run on PowerPC (please no comments on this...) and - alas! - v8 doesn't run on PowerPC (the v8-powerpc project seems to be dead).
I'm trying to understand if there's any other viable solution, at the moment some possibilities are:
- emscripten, which converts LLVM bitcode into JavaScript;
- WebKit's JavaScriptCore, although I'm not sure it will work (I'll have WebKit on the PowerPC anyway)
I'm not a JavaScript expert and I actually feel quite lost, so these are my questions:
- Is emscripten a valid solution? (have you ever used it?)
- Can anyone point me to any documentation on how to expose C++ to JavaScript using JavaScriptCore?
- Is there any other option, and/or which one would you adopt?
Many thanks,
Rippel