3 ms·
The new FFM API looks really cool. Still incubating but having better native interop I think could really be a big win. Most developers will never touch that st
by thinkharderdev 5y ago
The new FFM API looks really cool. Still incubating but having better native interop I think could really be a big win. Most developers will never touch that stuff but having the ability to manage native, off-heap memory and safely(ish) make native calls will be great.
- twic 5y agoI wrote an app which used JNI to call into C++ code. I ended up refactoring it to spawn subprocesses written in C++, and communicate with them via RPC. Not because JNI was difficult, but because errors in the C++ can take down the whole app otherwise. All the performance and ergonomics improvements in the world wouldn't persuade me to give up that safety barrier. Unless i rewrite the native parts in Rust, of course :).