Hacker News new | ask | show | jobs
by creato 1669 days ago
> the CLR runtime looks frankly minor league when compared to the JVM.

This is comically backwards from my experience. I often see near-native optimized performance on C#/CLR, where I see similar code (SIMD friendly loops) literally hundreds if not thousands of times slower than it should be in Java.

3 comments

See my longer reply but I think this basically comes down to it being much easier to write fast C#. Generally if you are experienced enough with Java you can make it do what you want and get to the same performance (or higher) with Java but it's definitely not as easy and I do think this is a serious downside to Java.
Very true, Java was late in the game in term of SIMD loop optimizations compared to C#.

Oracle engineers did the first implementation for Java 7, more recently it's mostly contributions from Intel, AMD and ARM [1].

[1] https://cr.openjdk.java.net/~vlivanov/talks/2019_CodeOne_MTE...

Which Java?

OpenJDK, GraalVM, Open J9, Aicas, PTC, microEJ, Azul, Amazon,....