oracle / graal

GraalVM compiles Java applications into native executables that start instantly, scale fast, and use fewer compute resources 🚀
https://www.graalvm.org
Other
20.21k stars 1.62k forks source link

Current state of iOS platform is not clear #8776

Closed piiertho closed 5 months ago

piiertho commented 5 months ago

Describe the issue I am working on godot-kotlin, a JVM language binding for godot engine.
Currently we're using graalvm native-image in order to provide iOS support.
This works with graalvm-ce-java17-22.1.0, but we have to rely on gluon's work to get static java libraries and cap cache.
When upgrading to graalvm-23.0.3-jdk-17.0.10+11.1 I got troubles as it now miss a cap cache value:

Missing CAP cache value for: NativeCodeInfo:PosixDirectives:ConstantInfo:CLOCK_REALTIME

So we'll have to wait for gluon to provide cap cache in order to update graalvm.
Also I don't know from where static java libraries gluon provide are built.

This makes me think this is dangerous to use graalvm to provide iOS support as currently we have to rely on gluon's work, and process to get cap cache and jvm static library is pretty opaque.

On another side, we already succeded to build and run games written in JVM languages using native-image.
My questions are pretty simple: Can we expect a support for native-image iOS platform without having to reverse engineer gluon's work ? Is there any documentation to understand how to use native-image for iOS ?

I think iOS support out of the box would be a great game changer, as this would be the best way to provide JVM support with complete features for this platform.

solaanan commented 5 months ago

Hello @piiertho, thanks for reaching out! Unfortunately, we don't support iOS platform and we currently do not have any plans to support it in the near future. As a result, there is no official documentation available about it at this time.

piiertho commented 5 months ago

Hello @solaanan ! That's a bad news for JVM ecosystem :/ Do you at least know from where I can find labs-openjdk static libraries for ios to use with graal ?

solaanan commented 4 months ago

Hello @piiertho, the labs-openjdk static libs that we provide are living here:

piiertho commented 4 months ago

Hello @piiertho, the labs-openjdk static libs that we provide are living here:

Thanks a lot ! Will try with them. May I ask same question for svm static lib ?

EDIT: nevermind, those come from graalvm build.