Project Panama: Java Foreign Function & Memory (FFM) API Workshop
Replace fragile, error-prone JNI with safe, C-speed native bindings in pure Java. Train your team to master Project Panama's Foreign Function & Memory APIβfrom deterministic off-heap memory and jextract to hardware memory ordering and zero-copy native performance.
io_uring bindings using Project Panama's FFM API.
Instructor Open-Source Project Β· Devoxx Belgium Session
davidtos/panama-fuse β Userspace File System in Java
A complete FUSE file system written in pure Java using Foreign Function & Memory downcalls, upcalls, and native C struct layouts.Why Engineering Teams Book This Project Panama Workshop
86%+ Faster Native Operations in Pure Java
Generating bindings with jextract is only step oneβnaive FFM code often suffers from hidden memory zeroing, byte-array copying, and non-static MethodHandle overhead. Your team will learn the exact mechanical-sympathy techniques I used to build pure-Java Linux io_uring and FUSE bindings that match C performance.
Deterministic Lifetimes & Hardware Memory Models
Avoid segmentation faults, memory leaks, and subtle ARM vs. x86 concurrency bugs. We cover confined, shared, and custom Arenas, complex C struct/union layouts, and thread-safe off-heap memory access using VarHandle memory fences.
Full-Day Hands-On Curriculum (09:00 β 17:00)
Participants build, profile, and optimize real C library bindings in Java without writing a single line of JNI glue code.
1. Deterministic Off-Heap Memory Management
- From JNI &
ByteBufferto Project Panama's FFM architecture - Choosing the right
Arena: Confined, Shared, Auto, and Global lifetimes - Working with
MemorySegmentbounds, slicing, and pointer arithmetic - Hands-On Lab: Allocating, slicing, and safely managing off-heap memory segments
2. Calling Native C Functions (Downcalls & Upcalls)
- Using
Linker,SymbolLookup, andFunctionDescriptor - Generating bindings automatically with
jextract(and when to write your own) - Passing Java callbacks into C libraries using Upcall stubs
- Hands-On Lab: Building safe downcall and upcall bindings to native system libraries
3. Complex Memory Layouts & Thread-Safe Access
- Modeling C structs, nested arrays, and unions with
MemoryLayout - Building custom
Arenaallocators to bypass zeroing overhead - Thread-safe shared native memory:
VarHandlePlain, Opaque, Acquire/Release & Volatile modes across x86 and ARM - Hands-On Lab: Manipulating complex C structs and verifying thread safety
4. Extreme Performance Optimization & Profiling
- Eliminating Java-to-C copy overhead and batching native transitions
- Using
static finalMethodHandles and critical downcall linker options - Benchmarking and profiling native bindings with
JMHandasync-profiler - Hands-On Lab: Optimizing a slow native binding to achieve C-level throughput
What Conference Workshop Attendees Say
"The workshop was incredibly detailed and packed with practical content. Every minute was valuable."
β Senior Java Developer Β· Conference Hands-On Workshop (JFokus / JNation)"One of the most content-rich workshops I've attended at a conference. Great attention to technical details while keeping the content accessible."
β Staff Software Engineer Β· Sold-Out Conference Lab (JPrime / J-Fall)Calculate Your Team's Workshop Investment & Book a Discovery Call
Full-day workshops start at β¬2,500 (excl. VAT) for up to 5 developers, plus β¬300 per additional developer (up to 15 per session). Includes pre-workshop codebase alignment, full-day hands-on training, lifetime lab repository access, and a 2-week follow-up Q&A session.
1-Click "Convince Your Engineering Manager" Template
Copy and paste this message into Slack or email to get fast training budget approval from your Engineering Manager, Tech Lead, or CTO:
Frequently Asked Questions
What is the ideal team size for a workshop? Optimal group size is 5β15 developers to ensure personal attention and effective hands-on practice. The sweet spot is 8β10 developers for pair programming and architectural discussions. Larger engineering organizations can book multiple sessions.
Where are the workshops conducted? Workshops are delivered live and in-person at your company's office across Europe and worldwide.
What is the investment for a workshop? Full-day workshops start at β¬2,500 (excl. VAT) for teams of up to 5 developers, plus β¬300 per additional developer (up to 15 participants per session). Multiple-workshop discounts are available.
Can the workshop be customized to our native C/C++ or Rust libraries? Yes. During our pre-workshop consultation, we can tailor the afternoon binding and benchmarking exercises around the exact native libraries or I/O bottlenecks your team works with.
What happens after the workshop? Participants receive lifetime access to all workshop repositories, JMH benchmark suites, and updated materials, plus a dedicated follow-up Q&A session within 2 weeks after the training.
What is the typical workshop schedule? The full-day workshop runs from 09:00 to 17:00 (with flexible timing to fit your team):
- 09:00 β 12:30: Morning interactive deep dives & hands-on labs
- 12:30 β 13:30: Lunch break
- 13:30 β 17:00: Afternoon advanced production labs, profiling & architectural Q&A