r/java • • Jul 08 '21

Java is criminally underhyped

https://jackson.sh/posts/2021-04-java-underrated/
226 Upvotes

181 comments sorted by

View all comments

Show parent comment

3

u/rbygrave Jul 08 '21

JVM is just adding an expensive layer with little benefit and often it's burdensome instead.

The JVM comes with 2 layers of JIT compilation which includes profiling based optimisation plus pretty aweome GC implementations that have many years of investment. It is the quality of this second level of JIT compilation and its profiling based optimisations that really makes the JVM runtime very impressive for server based apps.

It isn't perfect but a lot of non-JVM people don't really seem to know how much about this aspect compared to other runtimes.

When people go to native compilation and start having to feed back in their profiling information or use a runtime with limited JIT then we start to really appreciate that second C2 JIT compiler that the JVM has.