3 ms·
> which is now the recommended way to build native modules, offers a way out On paper. In reality, HELL NO. I maintain node native addons, and the thing is,
by ndesaulniers 11y ago
> which is now the recommended way to build native modules, offers a way out
On paper. In reality, HELL NO. I maintain node native addons, and the thing is, NAN is great, but they simply cannot foresee what will break next in v8.
Once something breaks, they provide a node-version-independent feature-shim, but every time there's a new version of Node, I DREAD the work I'm going to have to do to maintain my add ons.
It's simply less work to cross compile C++ to JS w/ Emscripten or write it in JS (or higher level language and compile to JS) in the first place.