napajs icon indicating copy to clipboard operation
napajs copied to clipboard

Support of nodejs C/C++ addons

Open darky opened this issue 6 years ago • 2 comments

For example I have idea to use https://github.com/allenluce/mmap-object project inside napa worker for efficient memory sharing. But it can't be required, because it not supported.

darky avatar Apr 30 '18 22:04 darky

@darky I have come across the same situation, any idea how to fix it?

connglli avatar May 08 '18 11:05 connglli

To support node native addon is a big topic that can talk about.

In short, to support node native addon in napajs worker, we need to load and initialize node context inside napajs worker. This requires fundamental changes to both node and napa.

The required changes, especially those need to be done in node, will not happen very soon. The good news is, we are going to publish a beta version to support node APIs and addons in napa workers, which may start with a patch to a specific version of node. This is going to be kicked off in couple of days.

fs-eire avatar May 08 '18 22:05 fs-eire