Original link: A new way to call C from Java: how fast is it? / Daniel Lemire blog.
A function call is expensive. It is claimed that is is less expensive than the old JNI.
For more examples see JNI and Foreign Function .
FFM is not great. But anything is better than JNI!