FFM supported in GraalVM Native Image
Glavo
zjx001202 at gmail.com
Thu Jan 4 03:16:47 UTC 2024
See
https://www.graalvm.org/latest/reference-manual/native-image/dynamic-features/foreign-interface/
Glavo
On Thu, Jan 4, 2024 at 9:55 AM tison <wander4096 at gmail.com> wrote:
> Hi,
>
> This can be a bit out of scope, but I wonder if there is a plan to
> support FFM in GraalVM Native Image.
>
> The original issue is that I want to resolve "~username" to the real
> absolute path, and I don't find anything that can achieve this in JDK.
>
> Instead, it's supported in POSIX with getpwnam_r and pw_dir. So, I'd
> like to use FFM to access these functions (instead of JNI and
> distribute multiple classifiers for many platforms).
>
> Then, another object I'd like to achieve is packaging my lib into a
> GraalVM Native Image, so it should be considered if FFM will be
> supported in that technology in a future version.
>
> Alternatively, if JDK provides interfaces to support more POSIX
> manipulations, it would be more than desired.
>
> Looking forward to your feedback.
>
> Best,
> tison.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/panama-dev/attachments/20240104/3b1cab9a/attachment.htm>
More information about the panama-dev
mailing list