~/talk

From native code gems to Java treasures with jextract

Talkat Voxxed Days Bucharest 2025 · on Thursday, 2025-03-27· [java, compilers-and-language-design]
slides:none on file

jextract parses C headers and generates Java FFM bindings so Java code uses native libraries directly; it ships separately but works with JDK 22+ and Java 24. Examples include calling localtime_r from libc (generated class time_h), embedding libpython3.11 and running a Python script via pyon bindings, rendering an OpenGL teapot after trimming ~4,000 symbols with dump-includes, and calling a Rust-produced C API (hello world). jextract can trace calls and show memory addresses and sizes for debugging.

AI-written summary · about

  1. 0:00jextract and native Java
  2. 3:18Foreign Function Memory API
  3. 5:34Installing jextract
  4. 9:00Generating C bindings
  5. 15:09Python bindings with jextract
  6. 23:25OpenGL with jextract
  7. 36:28Rust libraries without headers
  8. 40:02Summary and future of FFM
~/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.