4 ms·
I'd comment on the blog if I didn't have to login. Wins prize for most naive rant this week. There are a lot better reasons to hate on java, but speed really i
by littleidea 17y ago
I'd comment on the blog if I didn't have to login.
Wins prize for most naive rant this week. There are a lot better reasons to hate on java, but speed really isn't one in 2010.
I'd love to see the rewrite of one of the apps he's complaining about in C and blog post about that.
--omg-optimized
- scumola 17y agoI'm the author of the original post. Re: login, sorry, it's drupal and I turned off anonymous comments for spam reasons. :) I'm sorry that you think that I'm naive. I'm 41 years old and have a CS degree. I've been a linux programmer and sysadmin since 1993, before linux had a 1.0 kernel (0.99.9.45 or something like that when I installed my first linux machine). My background is in programming and I spent my college career in 1990-1994 writing mostly C code. Java is slow, although most java programmers don't want to admit it. When you take into account resource bloat, java is still a horrible choice for almost any application unless you work for a company with a lot of money that's willing to just throw money at hardware because the software developers say it's needed. If you'd like to compare apples-to-apple, it's going to be hard because people don't usually write the exact same app in more than one language unless they're doing benchmark tests of something simple (usually hello world, or a matrix operation or something), but not real world applications. I realize that I'm sticking my neck out there for criticism, but I'm ok with it. A lot of web programmers are java engineers - young kids coming out of school with a java background and they don't want to even deal with C because they don't want to do the manual memory management or watch for return codes, but instead just wrap the whole function in a try/catch handler. To me, it's laziness. C and C++ are almost the same syntactically to java. You guys can write C or C++, you just choose not to. For me, being a sysadmin for a living now, this is just a lazy and wasteful choice. If you were to write your code in something more "close to the metal" just think how much more awesome your programs could be!
- foldr 17y ago>Java is slow No, it's not. Modern JVMs produce extremely fast code. For numeric calculations, there's essentially no difference in speed between Java and C. (After all, why would there be? The JVM has static type info and is emitting assembly.) This was true even in 2004, so it's really long overdue that you move on from 1995 :) http://www.idiom.com/~zilla/Computer/javaCbenchmark.html http://www.idiom.com/~zilla/Computer/javaCbenchmark.html >If you were to write your code in something more "close to the metal" C is close to the PDP-11; it's not particularly close to modern hardware.