Hacker News new | ask | show | jobs
by gergo_barany 720 days ago
You can build GraalVM native images from modularized code, but you can also build them from non-modularized code.
1 comments

Wouldn't the native executable be smaller using modularized code?
I don't see why it would be. The native image static analysis decides on the level of individual classes, methods, and even class fields what to include in the image and what not. It doesn't compile entire packages or modules into the image, only parts it considers reachable. And the module system shouldn't influence this reachability analysis I think.