Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Which is completely amazing considering how much dynamic and reflective code there is floating around in the Java ecosystem. I've never been able to compile anything beyond a trivial app with native-image because there is always something dynamic being used somewhere. I'm really looking forward to seeing where espresso goes.


I think reflection works with GraalVM native compile - the only catch is that the set of classes to be inspected by it should be known beforehand.


Yes but it's extremely difficult to know them before hand. Trust me I've tried. It's not a trivial thing to do. The only success I've had is with quarkus [0] and thats only if you don't go outside of what the framework provides.

[0] https://quarkus.io/


This means you can't load JARs at runtime with ClassLoader in GraalVM natively compiled image...


Yes. But for longer running apps you are probably better off with a JVM since it will have better peak performance.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: