Originally posted by bug77
View Post
Announcement
Collapse
No announcement yet.
Oracle Releases GraalVM 22.0 With New Features
Collapse
X
-
Originally posted by RahulSundaram View PostI would highly recommend using a real world application instead of hello world. Noone is realistically distributing hello world as a native image, so optimizing for that would be pointless. It would be much more interesting to test it with a more complex application.
I'll look if this increase is due to some additional classes being compiled-in by default and just exclude them, however, I was hoping that
Native Image updates to reduce the image size
- Likes 1
Comment
-
Originally posted by RahulSundaram View Post
I would highly recommend using a real world application instead of hello world. Noone is realistically distributing hello world as a native image, so optimizing for that would be pointless. It would be much more interesting to test it with a more complex application.
And yes, I have tried it recently on a more realistic, but still simple, web service. I still ended up with something over 200MB in size
- Likes 2
Comment
-
Originally posted by bug77 View Post
No one distributes hello world, but how much confidence should I invest in something that fails to handle the most basic task properly? Which optimization can be applied to a large project, but not to hello world?
And yes, I have tried it recently on a more realistic, but still simple, web service. I still ended up with something over 200MB in size
The question is not whether it would increase size, it obviously would, the question is whether for a realistic web service, the latest version does better ie) the size reduces compared to the versions before.
- Likes 1
Comment
-
Gating optimizations behind the enterprise edition is understandable, but leaves a bad taste in the mouth.
It’s a very neat project, but I am more into Rust for low level, high performance code. I just wrote a small thing with it and I am super impressed with the language. The compiler is lovely and helpful! Maybe if I were part of a team using multiple languages, I think GraalVM would be more intriguing.
Or maybe if I just really wanted to write Clojure for a microservice…
- Likes 1
Comment
-
Originally posted by RahulSundaram View Post
It's actually not realistic to extrapolate from hello world because otherwise tiny programs is sort of the worst case for anything that bundles a runtime. Plenty of optimizations can apply to large programs but be neutral or negatively affect smaller programs.
The question is not whether it would increase size, it obviously would, the question is whether for a realistic web service, the latest version does better ie) the size reduces compared to the versions before.
Comment
-
Originally posted by krzyzowiec View PostGating optimizations behind the enterprise edition is understandable, but leaves a bad taste in the mouth.
It’s a very neat project, but I am more into Rust for low level, high performance code. I just wrote a small thing with it and I am super impressed with the language. The compiler is lovely and helpful! Maybe if I were part of a team using multiple languages, I think GraalVM would be more intriguing.
Or maybe if I just really wanted to write Clojure for a microservice…
As for GraalVM, I follow it because it's intriguing from an engineering standpoint. But it's really a solution looking for a problem - not once have I seen a client hindered because they couldn't run Java, R and Ruby on the same VM. The only real world problem it could solve is taking something compiled to IR code and with a big runtime and translate it to proper code. But it can't do that, that feature is experimental with no clear (or approximate) roadmap.
- Likes 1
Comment
Comment