Re:GraalVM 22.3: JDK 19 builds, jlink support, new monitorin...
by Scarbutt on Tuesday October 25, 2022 @02:09PM
(#33334159)
My experience has involved zero headaches
How? most libs use reflection.
Re:GraalVM 22.3: JDK 19 builds, jlink support, new monitorin...
by kasperni on Tuesday October 25, 2022 @02:24PM
(#33334336)
GraalVM comes with its own JIT the Graal Compiler [1] which I believe was what metadat was talking about. You are probably thinking about the native image generation which can cause issues with reflection and other dynamic constructs.
[1] https://www.graalvm.org/22.3/reference-manual/java/compiler/
Re:GraalVM 22.3: JDK 19 builds, jlink support, new monitorin...
by cogman10 on Tuesday October 25, 2022 @02:29PM
(#33334400)
Reflection only matters if you are using graal for AOT. It's still a full JVM.
Re:GraalVM 22.3: JDK 19 builds, jlink support, new monitorin...
by fniephaus on Tuesday October 25, 2022 @04:28PM
(#33335709)
Also, reflection is supported in AOT mode. The analysis, however, does require reachability metadata in some cases. In the best case, libraries provide and maintain appropriate configuration for this. Reachability metadata can also be shared via https://github.com/oracle/graalvm-reachability-metadata.
Re:GraalVM 22.3: JDK 19 builds, jlink support, new monitorin...
by the-alchemist on Tuesday October 25, 2022 @05:24PM
(#33336362)
There's two pieces to GraalVM:
1. The new JIT
2. The Native Image, AOT
Reflection is an issue for (2), not (1).
My experience has involved zero headaches or serious problems due to Graal, and it comes with appreciable performance improvements.
One of the more impressive and badass hardcore programming language engineering efforts, and still under active development right now. It's remarkable technology.
Amazing that it comes from within Oracle, I was surprised.