NovelRT icon indicating copy to clipboard operation
NovelRT copied to clipboard

Research: JS bindings

Open capnkenny opened this issue 4 years ago • 3 comments

Currently, we've received some feedback for JS/Node support, however this has not been fully looked into.

At the moment, the following research needs to be done:

  • Emscripten viability [ ]
  • V8 Engine viability [ ]
  • Other methods of calling C++ from JS

This will also be driven by community feedback, to help gauge interest and steer research into the right area. However, we still have other milestones to hit, so this will be done in the background.

capnkenny avatar Jan 12 '20 10:01 capnkenny

Assigned to myself as I have already been playing with emscripten support and web api porting

capnkenny avatar Jan 12 '20 10:01 capnkenny

Perhaps consider looking into a binding library like https://github.com/pmed/v8pp which can help bridge the gap between the existing c++ API and V8.

It makes it very easy to define variables and functions within the scope of some JS code, then have them be callable.

Also see https://github.com/charto/nbind (very similar library)

jmazouri avatar Feb 24 '20 04:02 jmazouri

Unassigning as I have too much to do already - if anyone's interested in continuing research during/after C API development it's up for grabs 😄

capnkenny avatar Aug 27 '20 14:08 capnkenny

We have decided that we will not be pursuing JS bindings for the foreseeable future, and as such this is being closed.

When the time is right, we shall be reviewing implementations for exporting projects via WASM (Mono/Rust WASM, Emscripten, etc), but now is not the right time.

capnkenny avatar Oct 03 '22 13:10 capnkenny