Des joyaux de code natif aux trésors Java avec
jextract
Ana-Maria Mihalceanu
Senior Developer Advocate
Java Platform Group
https://bsky.app/profile/ammbra1508.bsky.social
https://mastodon.social/@ammbra1508
https://github.com/ammbra
https://twitter.com/ammbra1508
“DevOps Tools for Java Developers” autrice invité
https://dev.java
Copyright © 2025, Oracle and/or its affiliates
3
Quel problème cherchons-nous à résoudre ?
API système (Bluetooth, USB)
Apprentissage automatique (ONNX, Tensorflow)
Calcul hors processeur (Cuda, OpenCL)
Traitement graphique (OpenGL, Vulkan, DirectX)
Autres (CRIU, fuse, OpenSSL, V8, ucx)
peut accéder à
Copyright © 2025, Oracle and/or its affiliates
4
Flux de données avec FFM API
* FFM API = Foreign Function and Memory API
Copyright © 2025, Oracle and/or its affiliates
5
Automatisez la génération de liaisons FFM
Copyright © 2025, Oracle and/or its affiliates
6
Voyons jextract en action!
Copyright © 2025, Oracle and/or its affiliates
7
Un substrat pour l'accès natif dans la JVM
Copyright © 2025, Oracle and/or its affiliates
8
Adoption de Foreign Function & Memory API
9
Essayez l'API FFM dans JDK 24 !
• https://jdk.java.net/24/
• Abonnez-vous à panama-dev@openjdk.org et envoyez vos commentaires !
Générer des liaisons FFM avec l'outil jextract
• https://jdk.java.net/jextract/
• guide de jextract: https://github.com/openjdk/jextract/blob/master/doc/GUIDE.md
Regardez des exemples:
• échantillons de jextract: https://github.com/openjdk/jextract/tree/master/samples
• des tutoriels avec FFM API et jextract: https://dev.java/learn/ffm/
• Calling a rust library with the Panama FFI
Créez la dernière version de jextract
• https://github.com/openjdk/jextract
Liens utiles
Copyright © 2025, Oracle and/or its affiliates

Des joyaux de code natif aux trésors Java avec jextract

  • 1.
    Des joyaux decode natif aux trésors Java avec jextract Ana-Maria Mihalceanu Senior Developer Advocate Java Platform Group
  • 2.
  • 3.
    Copyright © 2025,Oracle and/or its affiliates 3 Quel problème cherchons-nous à résoudre ? API système (Bluetooth, USB) Apprentissage automatique (ONNX, Tensorflow) Calcul hors processeur (Cuda, OpenCL) Traitement graphique (OpenGL, Vulkan, DirectX) Autres (CRIU, fuse, OpenSSL, V8, ucx) peut accéder à
  • 4.
    Copyright © 2025,Oracle and/or its affiliates 4 Flux de données avec FFM API * FFM API = Foreign Function and Memory API
  • 5.
    Copyright © 2025,Oracle and/or its affiliates 5 Automatisez la génération de liaisons FFM
  • 6.
    Copyright © 2025,Oracle and/or its affiliates 6 Voyons jextract en action!
  • 7.
    Copyright © 2025,Oracle and/or its affiliates 7 Un substrat pour l'accès natif dans la JVM
  • 8.
    Copyright © 2025,Oracle and/or its affiliates 8 Adoption de Foreign Function & Memory API
  • 9.
    9 Essayez l'API FFMdans JDK 24 ! • https://jdk.java.net/24/ • Abonnez-vous à panama-dev@openjdk.org et envoyez vos commentaires ! Générer des liaisons FFM avec l'outil jextract • https://jdk.java.net/jextract/ • guide de jextract: https://github.com/openjdk/jextract/blob/master/doc/GUIDE.md Regardez des exemples: • échantillons de jextract: https://github.com/openjdk/jextract/tree/master/samples • des tutoriels avec FFM API et jextract: https://dev.java/learn/ffm/ • Calling a rust library with the Panama FFI Créez la dernière version de jextract • https://github.com/openjdk/jextract Liens utiles Copyright © 2025, Oracle and/or its affiliates