~/talk

From native code gems to Java treasures with jextract

Talkat Devoxx Belgium 2024 · 2024-10-07..10-11· [java, compilers-and-language-design]
slides:none on file

Project Panama’s Foreign Function and Memory API is final in JDK 22 and jextract automates bindings: it parses C .h files and emits Java FFM code that calls native libs. Demos show a C time function returning correct time, a Python image generator producing a file, an OpenGL teapot rendering after adding Mac compile flags, and a Rust hello_world exposed via cbindgen and callable from Java. Warnings appear for unresolved types but jextract parses .h and generates Java bindings and offers trace downcalls to debug native calls.

AI-written summary · about

  1. 0:00Introduction to jextract
  2. 4:44Time translator demo
  3. 12:24Python image maker demo
  4. 16:59OpenGL teapot demo
  5. 26:25Rust hello world demo
  6. 29:48FFM API and jextract summary
  7. 31:56Resources and next steps
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.