My latest anti-java rant
badcheese.com
My latest anti-java rant
1–10 of 48 posts
Re: My latest anti-java rant
#2While everyone likes to have efficiency, being readable and/or easy to use sometimes trumps it. Would you really write a program like in assembly, just because it would be faster?
Re: My latest anti-java rant
#3Re: My latest anti-java rant
#4And assembly? Seriously? All but the tiniest processors are superscalar now, and the performance of code depends on obscure details about how instruction scheduling fits into pipelines. The way I hear it, there are only a handful of people in the world who can actually do that better than their compiler, and I'm not going to become one of them. There are too many other things to learn that I can keep using over more time.
Re: My latest anti-java rant
#5Re: My latest anti-java rant
#6Here is a decent reddit thread discussing why people don't like Java: http://www.reddit.com/r/programming/comments/9dzpu/ask_reddi.... The most succint answer just links this: http://ws.apache.org/xmlrpc/apidocs/org/apache/xmlrpc/server...
Re: My latest anti-java rant
#7The anti-GC part of this rant is especially hard to take. I've had the misfortune of having to debug various memory allocation problems in C. That's something I don't miss at all. To bag GC for performance without mentioning reliability is just wrong.
Re: My latest anti-java rant
#8Re: My latest anti-java rant
#9Anyway, what I find interesting is that Java really is very slow in one thing: startup time. My completely unscientific test concluded that a hello world -program in written in Java takes about 0.110 seconds to run, while the C version took about 0.003 seconds. What's interesting, Python version takes about 0.015 seconds, which includes parsing, compiling to bytecode and interpreting it, while the Java version has already been parsed and compiled. I would like to know what explains this almost tenfold difference between Java and Python startup times. I suspect it might have to do with the security features of Java?
Re: My latest anti-java rant
#10The anti-GC part of this rant is especially hard to take. I've had the misfortune of having to debug various memory allocation problems in C. That's something I don't miss at all. To bag GC for performance without mentioning reliability is just wrong.
The weird thing is how many projects resort to reference counting, which is just like GC only far more expensive (now every single p1=p2 requires two checks for null, an atomic increment and decrement, and a conditional branch around a dtor call!) and less reliable.