Please don't generalize from the memory use of those programs
Interesting. It is pretty amazing and unfortunate after all these years (18?) Sun/Oracle hasn't made the default JVM memory allocation more adaptive/intelligent. Could the JVM -Xms option be used to try to mitigate this defect?
One note, Scala uses more memory than Java does, so it appears not all of this usage can be blamed on the JVM itself: http://benchmarksgame.alioth.debian.org/u32q/benchmark.php?t...
Perhaps it is intelligent for the kind-of applications the JVM is designed for (rather than for tiny tiny toy programs).
There are lots of useful commandline tools written in Java that would no doubt benefit. P.S. I did not downvote.
That may be -- but are commandline tools the kind-of applications the JVM is designed for?
Maybe once 1.1 is out and the language game switches to it, that will be the case (the benchmark is using the current stable release of Go 1.0.3).
Also, I assume you are talking about execution time, Go destroys Scala in your linked comparison in terms of memory usage.