You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The addon was started way before alternatives existed. It uses NaN.
NaN is hard to use, it changes too much ⇒ frequently an update is an uphill battle because something has changed and now C++ complains or produces endless warnings from the bowels of NaN for no apparent reasons.
Why update NaN? New versions of Node require new versions of NaN. Users demand supporting new Node versions.
The current packaging doesn't support Deno and Bun.
Alternatives:
WASM — I tried the existing clone and it is not ready for the prime time: slow and unstable.
Node-API — apparently it is better maintained and some versions of it are supported by Bun.
So the idea is to rewrite everything for Node-API abandoning the existing codebase.
BTW, it was proposed based on the fact of "rewrite everything" to consider more alternatives:
Use a different build system (applies to Node-API too, may require no rewriting if keeping the status quo):
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Some time ago I started Notes on building alternatives in the wiki where I shared my thoughts on the topic.
I suggest to skim it, but for the TL;DR crowd:
NaN
.NaN
is hard to use, it changes too much ⇒ frequently an update is an uphill battle because something has changed and now C++ complains or produces endless warnings from the bowels ofNaN
for no apparent reasons.NaN
? New versions of Node require new versions ofNaN
. Users demand supporting new Node versions.So the idea is to rewrite everything for Node-API abandoning the existing codebase.
BTW, it was proposed based on the fact of "rewrite everything" to consider more alternatives:
node-gyp
like CMake.jsThoughts?
Beta Was this translation helpful? Give feedback.
All reactions