Hacker News new | ask | show | jobs
by gbuk2013 3836 days ago
Does anyone know what is the difference between using this neon vs using node-ffi[1]?

[1]https://github.com/node-ffi/node-ffi

1 comments

Neon is for creating native Node modules in rust, which are libraries that use the Node addon API [1].

node-ffi seems to be for adding a bridge between an existing non-Node module dynamic library and node, which at the very least seems to incur some non-negligible overhead; see the "Call Overhead" section of your link.

[1]: https://nodejs.org/api/addons.html