Hacker News new | past | comments | ask | show | jobs | submit login

Are you guys looking at using the new Foreign Function and Memory API once complete?



All the library does is facilitate the build process.

I think there's possibly some automation that can be added once that whole stuff stabilizes properly. From Rust it's already possibile to automate exposing a C header via cbindgen, so it wouldn't be too hard.

JNI ultimately still provides the most complete set of capabilities (e.g. calling back into Java).

For the rust-maven-plugin, we've accepted a PR to build binaries and we'll continue accepting PRs for any future enhancements such as the one you're mentioning.


I am excited for what Memory API brings. The biggest pain with native memory management for us are "struct" or lack of those. Extremely bug prone memory arithmetic I personally am very motivated to see the back of.

FFI - we need to wait and see how this actually evolves.

We are not looking at any of this just yet. While it is undoubtedly fun, there are few other things we're busy with.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: