Re:Leveraging Rust in our high-performance Java database
by LispSporks22 on Wednesday September 20, 2023 @10:16AM
(#37584420)
I needed to call Rust from Java a few years ago. The approach was build a straightforward .so and call into it via JNA. It seemed way less complicated
[ Parent
| on HN ]
Re:Leveraging Rust in our high-performance Java database
by amunra__ on Wednesday September 20, 2023 @10:34AM
(#37584674)
The rust-maven-plugin we wrote indeed also supports JNA for these simple use cases.
https://github.com/questdb/rust-maven-plugin
Compared with JNA, JNI is indeed more complex, but it's faster and has more features. It also solves the problem of calling Java from Rust.