News for hackers. Stuff that matters.
Re:Napi: Build compiled Node.js add-ons in Rust by SushiHippie on Friday September 08, 2023 @09:34AM (#37433290)
Related submission currently on the front page:

https://news.ycombinator.com/item?id=37415812

Re:Napi: Build compiled Node.js add-ons in Rust by softirq on Friday September 08, 2023 @10:59AM (#37434379)
Might want to think of a different name, napi is an API in the Linux kernel, a space that Rust is targeting. It's going to be super confusing searching for napi driver implementations with this node thing out there.
Re:Napi: Build compiled Node.js add-ons in Rust by amaranth on Friday September 08, 2023 @12:19PM (#37435665)
The name comes from Node so that ship has sailed, I think.

https://nodejs.org/api/n-api.html#node-api

Re:Napi: Build compiled Node.js add-ons in Rust by softirq on Friday September 08, 2023 @01:32PM (#37436678)
It could be named nodejs-api then.
Re:Napi: Build compiled Node.js add-ons in Rust by gsilvestrin on Friday September 08, 2023 @05:27PM (#37439659)
Another option to use rust from Node.js is Neon: https://neon-bindings.com/. It is a little older than napi-rs.

Overall using rust with node is not as seamless as Python with PyO3, but things are improving quickly.