jnr / jnr-ffi

Java Abstracted Foreign Function Layer
Other
1.23k stars 154 forks source link

Why use JNR over JNA #331

Closed walksanatora closed 11 months ago

walksanatora commented 11 months ago

They seem nearly identical

enebo commented 11 months ago

Here is one person's attempt at differentiating not only JNA but also JNI and project Panama. There is also a link to someone's microbenchmarking with recent results to back up the performance difference: https://github.com/jnr/jnr-ffi/blob/master/docs/ComparisonToSimilarProjects.md. Here is another talk about why JNR: https://www.oracle.com/technetwork/java/jvmls2013nutter-2013526.pdf