by pepper_sauce · 7y ago · 0 comments
But it's not just benchmarks. It's capabilities.
He should please provide references that compare other runtime platforms' capabilities side by side with JVM's capabilities.
How many weeks work do you imagine that would be?
While no language / platform / os / etc is perfect, JVM as a managed runtime platform is hard to beat. More than two decades of research in its JIT compilers, and multiple GC implementations with various knobs and dials for tuning and monitoring. Battle tested.
Someone mentioned SBCL. While I am a fan of Common Lisp, and generally all Lisps, I would cringe to see SBCL with terabytes of heap and hundreds of CPU cores running a serious workload -- and see how well it holds up.
Just an example: You can Google for this, but in 2012 Twitter switched from Ruby on Rails to Java. They have YouTube videos explaining their change over. Basic reasons: performance and scalability. They have to handle BILLIONS of tweets per day and route each one to multiple places with notifications in near real time.
That's nothing SBCL can do, but one can save an executable and start that in a subsecond without the need for a terabyte of RAM.
Generally there is a lot of stuff in the JVM which makes it less attractive as runtime for Lisp: more complex code loading via 'class loaders', lack of support for memory representation of Lisp's data types (like CLOS objects, which are more dynamic than Java classes), lack of TCO, lack of easy AOT compilation, lack of easy image dumps, lack of resumeable exceptions, ...
And in 2019 something like Eclipse still is a bit clunky to run on my 8 core Xeon - part of the reason could be a less than great GUI implementation. In IntelliJ I need to restart my IDE for every simple plugin... probably features like live-updating haven't made it yet into popular apps.
Java outperforms SBCL by a very wide margin -- 1.25-4x faster -- except in the short-running benchmarks (and except the spectral-norm test, where SBCL is 5% faster), as the game does not perform warmup, and includes Java's compilation time (you can see that no Java result is under 2 seconds).
> you can see that no Java result is under 2 seconds
That's because the workloads were chosen to push Java results above a couple of seconds.
> as the game does not perform warmup, and includes Java's compilation time
How many 1/10ths of a second do you imagine that takes?
https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
I have looked at some example programs in the shootout game where different implementations use completely different low-level algorithms, including code that's very unidiomatic, so those benchmarks are of low quality. And yes, Java does have a disadvantage here (I work on OpenJDK, BTW, so I don't need to imagine).
Anyway, I’m not sure which side you’re arguing, because the benchmark game did show a rather drastic win to Java (TBH, I would have been surprised if that were not the case). I simply qualified that win because the shootout game is not a high quality benchmark.
Which programs?
> including code that's very unidiomatic
Which programs? (And don't you expect code written to be fast to be different?)
> I work on OpenJDK, BTW, so I don't need to imagine
So why haven't you told us how few 1/10ths of a second?
> I’m not sure which side you’re arguing
I don't care one way or the other, I'd just like your comment to do better than name-calling.