Тёмный

Foreign Function & Memory API - A (Quick) Peek Under the Hood 

Java
Подписаться 182 тыс.
Просмотров 7 тыс.
50% 1

JNI is, to date, the only way to access native libraries from Java code, but JNI's brittle and convoluted programming model makes it tedious to use at scale. But no more: JDK's 22 Foreign Function & Memory API provides a safe, modern and efficient way to access foreign memory and code from Java.
Presented by Maurizio Cimadamore (Oracle)
Recorded during FOSDEM 2024
Try the FFM API in JDK 22!
◦ jdk.java.net/22/
◦ openjdk.org/je...
◦ Subscribe to panama-dev@openjdk.org and send feedback! ➱ mail.openjdk.o...
Generate FFM bindings with the jextract tool
◦ jdk.java.net/j...
Build the latest version of the FFM API & jextract
◦ github.com/ope...
◦ github.com/ope...
◦ FOSDEM 2024 Free Java Devroom ➱ fosdem.org/202...
Tags: #Java #OpenJDK #ProjectPanama

Опубликовано:

 

7 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 12   
@Nick-yd3rc
@Nick-yd3rc 4 месяца назад
That’s a much appreciated improvement over JNI no doubt, but that still feels like a lot of syntactic ceremony, especially for such trivial tasks. Any plans on a more implicit DSL?
@ClassXDevelopment
@ClassXDevelopment 6 месяцев назад
using hashtables, String lookup for symbols. Can we say that's efficient ? Mik
@31redorange08
@31redorange08 6 месяцев назад
14:34 Are typographic quotation marks for string literals a new feature of Java 22?
@delabassee
@delabassee 6 месяцев назад
Nope... just an annoying PPT feature 🤫
@PeterVerhas
@PeterVerhas 6 месяцев назад
They are unicode characters, so you can use them in string literals.
@31redorange08
@31redorange08 6 месяцев назад
@@PeterVerhas I know. But that wasn't the question.
@gsestream
@gsestream 6 месяцев назад
do you want java to run as gpu shader/compute binary language, maybe just make a java to shader binary compiler instead
@gsestream
@gsestream 6 месяцев назад
16-bit and 32-bit component color model functionality needs to be easily accessible in Color class, now only 8-bit component colors, even if you represent them in floats. best way to do this without changing any code depending on colors is to force internal representation to be floats without any forcing to 0-255 range in any way. then the components and red/green/blue give out the types fit to the data types, 8-bit or 16-bit or 32-bit, or even 64-bit doubles per component. the main point is that color class itself can be float component representation and sometimes it gets loaded with 0-255 limited color components, not predictable, clamps color in some cases.
@gsestream
@gsestream 6 месяцев назад
one more improvement. Color class should have setComposite(Composite) function also, for a single color value, in same way as Graphics/2D class. yes for single pixel color operations, simply. or just a mixing function with another color when the composite has been set or is an argument in the function.
@Tobiasliese
@Tobiasliese 2 месяца назад
Well, go ahead and draft a draft ;). Anyway this is useful for more than just GPU stuff. I want to use this feature for embedded development.
@gsestream
@gsestream 2 месяца назад
@@Tobiasliese any to gpu shader (java, c/c++, asm etc)
@nempk1817
@nempk1817 6 месяцев назад
🍷🗿
Далее
ПРОСТИ МЕНЯ, АСХАБ ТАМАЕВ
32:44
Просмотров 2,2 млн
Новый хит Люси Чеботиной 😍
00:33
Java's Virtual Threads - Next Steps
37:52
Просмотров 15 тыс.
(Dirty?) Tricks in Java 22 - Inside Java Newscast #64
13:05
Garbage Collection (Mark & Sweep) - Computerphile
16:22
Project Leyden: Capturing Lightning in a Bottle
45:50