~/talk

A Promising Future for using Native Libraries in the Java World

Talkat JCON 2020 · 2020-10-27..10-30· [java, compilers-and-language-design]
links:none on file
links:none on file
slides:none on file

Project Panama replaces handwritten JNI glue with a generated Java API that uses the foreign memory access API (safe, bounds-checked segments/addresses/layouts) and the foreign function support API (C‑linker producing native method handles for downcalls and upcalls). The jextract tool auto-generates a ready-to-use JAR (example: five Java sources for the Cairo demo) so Java calls native Cairo without native wrappers, works on Linux/Windows x86 early access, and targets JDK16/17 incubator release. va_list support handles varargs.

AI-written summary · about

  1. 0:00Einleitung
  2. 0:31About the Speakers
  3. 10:44ByteBuffer
  4. 12:00Goal of Project Panama
  5. 12:24Components of Project Panama
  6. 12:52Foreign Memory Access Support API
  7. 13:42Main Abstractions of Foreign Memory Access
  8. 14:37MemorySegment: Example 1
  9. 16:17MemoryAddress: Example
  10. 16:58Memory Layout? Represents the layout of data in the MemorySegment
  11. 17:30Memory Layout: Example Part 2
  12. 19:05Example Accessing data in memory
  13. 19:53Further Reading: Foreign Memory Access
  14. 20:11Foreign Function Support Introduces method handles that targets a native function
  15. 22:12FunctionDescriptor and MethodType
  16. 23:09CLinker Downcalls: Call C from Java
  17. 24:19CLinker Upcalls: Call Java from C
  18. 27:59Panama Workflow
  19. 28:43How to run jextract?
  20. 29:28What is generated by jextract?
  21. 30:23cairo_h.java (inside cairo.jar)
~/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.