🔗 Foreign functions and memory


Native Performance Unleashed: Master Java's Foreign Functions and Memory API

/images/avatar.jpg#right
Transform your team's native integration capabilities with a hands-on workshop led by David Vlijmincx - Oracle ACE, published author, and international conference speaker with 8+ years of enterprise Java development experience.





Why Choose this workshop?

Battle-Tested Enterprise Expertise: Benefit from 8+ years of enterprise Java development experience, distilled into practical, immediately applicable knowledge

Industry-Recognized Authority: Learn from an Oracle ACE who has authored two technical books and influenced 240,000+ developers annually through his technical blog

Tailored to Your Success: Each workshop is customized to your team's codebase and challenges, ensuring immediate ROI

Future-Proof Investment: Lifetime access to updated materials keeps your team ahead of Java's evolution


Curriculum

This comprehensive workshop introduces developers to Java's new foreign function and memory APIs. Through practical exercises and real-world examples, participants will learn how to efficiently integrate native code and manage off-heap memory in their Java applications.

Morning

Introduction to Foreign Functions

  • History and evolution of native interoperability in Java
  • Overview of Project Panama architecture
  • Overview of project Panama
  • Working with Arenas
  • MemorySegment and pointers
  • Hands-on: Working with native memory

Native functions

  • Working with Linker API
  • Calling native function
  • Parameter handling and type conversion
  • Working with Jextract tool
  • Hands-on: Creating and using native function bindings

Afternoon

Advanced Memory Management

  • Understanding memory layouts (value, struct, union)
  • Creating your own arena
  • VarHandle operations
  • Memory mapping techniques
  • Hands-on Lab: Implementing complex memory operations

Real-world Applications

  • Working with Complex Data Structures
  • Integration Patterns
  • Performance Optimization
  • Hands-on Lab: Building a native library integration example

Closing

  • Best practices and common pitfalls
  • Future developments discussion
  • Q&A session