Expanding Swift/Java Interoperability
summary
Jextract gains a new JNI mode that falls back to JNI instead of the new FFM API so generated Java runs on Java 11+ and Android; the project implements enums, protocols, opaque types, existentials and throwing functions, and automatically emits the JNI glue that would otherwise be ~368 lines per Swift enum case. Generated caching of class refs and method IDs yields a measured 35% improvement. The feature is implemented and Android compatible.
AI-written summary · about
chapters (4)
- 0:00Introduction to project
- 0:17Swift-Java interoperability
- 4:52Technical implementation
- 10:45Future work and conclusion
related talks
24mForeign Function and Memory APIs and Swift/Java interoperability
42mFrom native code gems to Java treasures with jextract
33mFrom native code gems to Java treasures with jextract
51mNative Interoperability with JDK 25 and the FFM API
47mInterconnecting Java and Native Code with the FFM API
01h 04mProject Panama Unleashing Native Libraries
29mEasily Leverage Native Functions with Project Panama from Java
36mA Promising Future for using Native Libraries in the Java World
