Project Panama’s Foreign API
summary
Project Panama provides a Foreign API that replaces JNI with annotated Java interfaces bound at runtime by a binder, and an extract tool that uses Clang to auto-generate 12,000-line OpenGL bindings from C headers. It models off-heap memory with Pointer/Array/Struct APIs and scope ownership to manage lifetimes, supports callbacks, and demo builds an OpenGL teapot in ~20 minutes. Performance experiments show a Linker-native backend giving ~4–5x getpid throughput versus JNI; an early binary snapshot for Linux and macOS x64 is available.
AI-written summary · about
chapters (4)
- 0:00Introduction to JNI
- 1:28The vision of Project Panama
- 34:08Current status and future
- 36:55Q&A session
related talks
01h 04mProject Panama Unleashing Native Libraries
43mPanama Update
36mA Promising Future for using Native Libraries in the Java World
45mProject Panama - Foreign Function & Memory API
29mEasily Leverage Native Functions with Project Panama from Java
55mJava 19 Project Panama 4 Newbies
46mBare Metal Java
33mFrom native code gems to Java treasures with jextract
