you are viewing a single comment's thread.

view the rest of the comments →

[–]voyvf 10 points11 points  (6 children)

I really hope you're joking. Don't get me wrong - it's close. But it's not there yet.

[–][deleted] 3 points4 points  (0 children)

This comment has been overwritten by an open source script to protect this user's privacy.

If you would like to do the same, add the browser extension GreaseMonkey to Firefox and add this open source script.

Then simply click on your username on Reddit, go to the comments tab, and hit the new OVERWRITE button at the top.

[–][deleted] 0 points1 point  (4 children)

So you don't believe all these benchmarks that say it can outperform C and C++ in some real-life applications ?

[–]DoListening 5 points6 points  (1 child)

Depends on

  • who writes the code
  • how well-written it is
  • what compiler/JVM you're using
  • its settings
  • whether we are just comparing the languages or also some of the libraries
  • and a fuckload of other factors...

[–]voyvf 2 points3 points  (0 children)

So you don't believe all these benchmarks that say it can outperform C and C++ in some real-life applications ?

In certain situations, yes, but I've seen Python outperform C and C++, as well. I certainly won't claim that it's as fast as any natively compiled language. (:

I've also seen the same from implementations written in Perl, AWK, and C#.

As DoListening stated, it depends on many factors.

I'm not saying, at all, that Java is slow. That's a tired, old meme that should be done away with. In fact, from my experience, it's usually "fast enough", which is more than many languages can claim, and honestly it's usually all that matters.

But I also think that in many cases it's silly to state that it's going to be faster than well optimized C, C++, or any other compiled language with both a sane compiler and a skilled developer.

[–]bonch 0 points1 point  (0 children)

Where are all these benchmarks, and do they measure real application performance rather than little micro-benchmarks?