4 ms·
Java's FFI story is not as good as rust's though. So if you're interacting with the OS / native libs a lot then it might not be a good choice. Although there'
by the8472 10y ago
Java's FFI story is not as good as rust's though. So if you're interacting with the OS / native libs a lot then it might not be a good choice.
Although there's JNR and JNA and it might become a standard feature at some point in the future[0]. But for a good FFI experience you also need arrays-of-structs, which means you need value types in java. So it's a long journey to get there.
[0] http://openjdk.java.net/jeps/191 http://openjdk.java.net/jeps/191