Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leverage "Foreign Function & Memory API" #301

Open
laeubi opened this issue Dec 19, 2022 · 0 comments
Open

Leverage "Foreign Function & Memory API" #301

laeubi opened this issue Dec 19, 2022 · 0 comments
Labels
future ideas Improvements that are currently not planned or can not be implemented with the current architecture

Comments

@laeubi
Copy link
Contributor

laeubi commented Dec 19, 2022

Currently especially the resource-api uses some specialized smaller JNI access e.g. for setting file-access (linux/mac) or watch directories (windows).

The upcoming Project Panama aims at a close integration of java and native code as an alternative for hand-crafted JNI code.

One very interesting part is the jextract tool as part of JDK19.

This is based on the JEP 412: Foreign Function & Memory API already part of Java-17.

Even though I don't know if Java 17 is yet an option (@akurtakov ?) and java 19 even a bit far away I'd like to bring the topic to platform right now so we can investigate and maybe improve and give feedback (e.g. can all relevant native APIs be parsed by jextract?), so hopefully in a glory future we no longer need to build native libraries and can use a pure java interface what will greatly improve the circle of people that could work in that area.

@laeubi laeubi added the future ideas Improvements that are currently not planned or can not be implemented with the current architecture label Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
future ideas Improvements that are currently not planned or can not be implemented with the current architecture
Projects
None yet
Development

No branches or pull requests

1 participant