Skip to content

Leverage "Foreign Function & Memory API" #301

@laeubi

Description

@laeubi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    future ideasImprovements that are currently not planned or can not be implemented with the current architecture

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions