3 ms·
In the repository, I see > By adding support for GraalVM native image, we could build javac binaries with custom configurations Can you elaborate on what's mi
by koito17 3y ago
In the repository, I see
> By adding support for GraalVM native image, we could build javac binaries with custom configurations
Can you elaborate on what's missing for GraalVM native image support? Is there a particular behavior of javac (e.g. reflection, dynamic class loading, keeping threads alive at compile-time, ...) that is a show stopper for native image compatibility?
Overall this project looks cool, and native-image support may allow integration into tools like Babashka to do some crazy things like downloading Java source from somewhere then compiling and loading it into the running image.
- kohlschuetter 3y agoAdding GraalVM native-image support required a little more hand-holding than expected, but is now available with version 1.1.0. The project can now also compile itself. Exciting times.
- koito17 3y agoThanks! I will try experimenting with release 1.1.0 sometime.
- kohlschuetter 3y agoI think native image support is actually trivial to implement, it's just not done yet since it wasn't a priority. There are indeed some reflection calls that need to be configured via META-INF/native-image config files, but nothing out of the ordinary.