jnr / jnr-ffi

Java Abstracted Foreign Function Layer
Other
1.26k stars 157 forks source link

Why use JNR over JNA #331

Closed walksanatora closed 1 year ago

walksanatora commented 1 year ago

They seem nearly identical

enebo commented 1 year 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