7
tahnik
7y

NodeJS C++ add-on is one of the best and worst thing ever to exist in NodeJS.

Writing a native add-on is such a fucking pain. It's full of inconsistent API. They are trying to fix that by the introduction of N-API. But that shit is still in experimental mode.

I want to use nan but I know that that is also going to be deprecated once the N-API gets stable.

fml

Comments
  • 0
    I just use a small binary wrapper that communicates over UNIX domain sockets or Winsock. A lot easier than writing a native add-on, and future proof. (If inneficient due to memory copying.)
Add Comment