234 karma · joined January 12, 2012
The JVM has improved performance by developing more advanced garbage collectors and profiling JIT compilers over the years to the point where it is the JVM is the fastest managed runtime out there. http://shootout.alioth.debian.org/u64q/benchmark.php?test=al...
Short version is that Java tends to take a lot of memory and a fair while to start up, but once it gets going it's very fast. A bit like comparing a Boeing to a small sports car. The sports car will drive you to the shop around the corner very fast. The Boeing will take a long time to prepare for takeoff, but once it gets going will leave the sports car behind in the dust.
IntelliJ provides an excellent free scala plugin. What have you been using?
Hard to believe this one is still getting wheeled out in 2012. Java is MASSIVELY faster than Perl/Ruby/Python: http://shootout.alioth.debian.org/u64q/benchmark.php?test=al...
I've seen over and over how Java code is at the very least an order of magnitude faster than a solution in a scripting language.
BTW the correct spelling is "exaggeration"
"A measurement of length of a piece of writing, particularly when indicating a length excessive for the genre. A Yegge is approximately 4000 words or 25 kilobytes.
Named for well known programmer and technical blogger Steve Yegge, whose blog up to about 2009 was notorious for entries of approximately 1 or 2 Yegges in length, vastly exceeding the typical length of blog entries in the genre."
Twitter and Tumblr using Scala are "Hardcore conservative", while guys writing assembler for IBM mainframes are "Batshit liberal" ?
> "While there are some great JVM GCs, I wouldn't walk away with the impression that the .NET folks are behind by any means. "
Can the .NET GC provide deterministic real-time collection pauses? e.g.:
http://www.oracle.com/us/technologies/java/oracle-jrockit-re...
The link is correct. See the "code" section where Ruby has 2-3x less code. I won't disagree about Ruby being much slower than C# and Java. Ruby slow[er]ness has to do with it being dynamically typed, which also makes it expressive. If you are after something which is more expressive than C# and faster than C# see Scala on the JVM: http://shootout.alioth.debian.org/u64q/benchmark.php?test=al...
>The bytecode language is not standardized, and there is no standard assembler language for it
There is a formal spec here: http://docs.oracle.com/javase/specs/jvms/se7/jvms7.pdf
> New features to the JVM are only added when they are required for Java.
This is another false assumption: http://blog.headius.com/2008/09/first-taste-of-invokedynamic...
>I say it does rival [the expressiveness of] ruby, you say it doesn't, good discussion.
Not really, is more like a generally accepted fact. e.g. Ruby typically uses 2-3x less code than C# to do the same thing: http://shootout.alioth.debian.org/u64q/benchmark.php?test=al...
Since the JVM happily runs Ruby, Groovy, Clojure, Python, Scala the point it moot. Aside from that C# does not rival Ruby in expressiveness.
Concurrent garbage collection. Not that impressive in 2012. Java has had concurrent GC for at least a decade:
JDK 1.2.2 Java had a switch for that in the late 90's already: -Xconcgc Use concurrent garbage collector (1.2.2_07+)
JDK 1.4.2 http://java.sun.com/docs/hotspot/gc1.4.2/#4.3.%20When%20to%2...
also: http://research.sun.com/techrep/2000/abstract-88.html
The world has moved on:
http://www.oracle.com/technetwork/java/javase/tech/g1-intro-...
http://researcher.watson.ibm.com/researcher/view_project_sub...