By the Bye: JNI
summary
Compares JNI with the new Foreign Function & Memory API (final since Java 22) by wiring a real Sudoku solver C library into Java: JNI requires generating headers, writing a C wrapper, packing a shared library and manually managing native memory; FFM uses arenas, memory segments and layouts plus method handles to call the library directly from Java with deterministic deallocation. Adds Jextract to auto-generate helper bindings so the same solver runs with far less boilerplate and fewer memory-safety risks.
AI-written summary · about
