napajs
napajs copied to clipboard
Support of nodejs C/C++ addons
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 I have come across the same situation, any idea how to fix it?
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.