3 ms·
What's your experience with GraalVM? In mine, the need to painstakingly track every single reflection use by getting the stack traces at runtime (and never be q
by doliveira 5y ago
What's your experience with GraalVM? In mine, the need to painstakingly track every single reflection use by getting the stack traces at runtime (and never be quite sure if you got all of them) pretty much killed it for me
- deleted 5y ago[deleted]
- smasher164 5y agoHave you tried the Tracing Agent? https://www.graalvm.org/22.0/reference-manual/native-image/Agent/ https://www.graalvm.org/22.0/reference-manual/native-image/A... It will track all uses of reflection during a program's execution. You can then use the resultant config as the starting point for the reflect-config.json.
- doliveira 5y agoOh, that's nice. I was using it through Quarkus a while ago, not sure if I missed it or it wasn't available yet. That seems like a good starting point, although I assume it can't assure no runtime errors in production Edit: it seems to me that GraalVM would benefit from a repository of classes and corresponding reflection configs. Like DefinitelyTyped from the Typescript world