Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

One of the things Electron gives you with Node on the backend is the ability to break out into C FFI if you find you need a specific API on your target platform.

I've done this for things like serial device control and the like. You still get the productivity of web apis on the frontend and flexibility on the backend with the caveat that you're going to be building a platform specific version of your native code for each release.



While discussing the Node C binding architecture, I think it's also worth noting The Neon Project* which is extending that lower level binding system into the Rust ecosystem. I'm not personally involved in the project, but I think it has a lot of potential.

* https://www.neon-bindings.com/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: