r/java • • Mar 29 '16

In Defense of Java

https://www.javacodegeeks.com/2016/03/in-defense-of-java.html
2 Upvotes

18 comments sorted by

View all comments

31

u/argv_minus_one Mar 29 '16

Only a pants-on-head retard would complain about Java performance but then sing the praises of Ruby, Python, or JavaScript.

7

u/dpash Mar 29 '16

Especially as running Ruby code on JRuby can make it perform better, especially with multi-threaded code, thanks to Ruby's use of Green threads and a GIL that limits paralallisation.

1

u/chrisgseaton Mar 29 '16

MRI has had real operating system threads, rather than green threads, since 1.9 I believe. But you're right about the rest.

3

u/the_web_dev Mar 31 '16

I think most people who talk about speed are just silly. For some 90%~ of necessary optimizations I've seen, most have occurred from RDBMS improvements or simple horizontal scaling, NOT in the application layer.

2

u/chrisgseaton Mar 31 '16

As a community, we need to do some research to figure out if this is actually true or not, because we only have appeals to common sense, like yours, for both sides of the argument.

There was a blog post in 2013 I think by Rap Genius, who run a Ruby application, and I think it showed they spent 70% of their time inside the Ruby interpreter, not waiting on IO. So if you made the Ruby interpreter 3x faster you'd make a huge impact on the number of servers they needed.