nexusjs icon indicating copy to clipboard operation
nexusjs copied to clipboard

Native add-on ABI

Open voodooattack opened this issue 8 years ago • 6 comments

A native-addon ABI and a build system for the package manager should be proposed.

Please use this issue to discuss this aspect of the project.

voodooattack avatar Jun 28 '16 22:06 voodooattack

How about N-API or something compatible to it?

screeny05 avatar Dec 18 '17 08:12 screeny05

N-API looks perfect. I think it can be adapted to Nexus with some modifications. Thanks for bringing it up!

voodooattack avatar Dec 18 '17 22:12 voodooattack

Facebook's react-native also uses JSCore, and implemented some jschelpers here https://github.com/facebook/react-native/tree/master/ReactCommon/jschelpers which heavily depends on their https://github.com/facebook/folly library. I'm not saying that it is a good option, but maybe they have something in there that might give you some good ideas

mean-ui-thread avatar Mar 15 '18 00:03 mean-ui-thread

found this https://github.com/charto/nbind

mean-ui-thread avatar Mar 26 '18 12:03 mean-ui-thread

this is for emscripten-only, but the api/concept might be worth studying: http://kripken.github.io/emscripten-site/docs/porting/connecting_cpp_and_javascript/embind.html

The emscripten team were toying with the idea of deprecating embind in favor of using nbind: https://github.com/kripken/emscripten/issues/4770 However, due to large feature gap, they decided to not do it.

mean-ui-thread avatar Mar 26 '18 12:03 mean-ui-thread

also found an experimental n-api implementation for emscritpen https://github.com/RReverser/emnapi

mean-ui-thread avatar Mar 26 '18 12:03 mean-ui-thread