r/programming • • Feb 22 '15

Java Makes Programmers Want To Do Absolutely Anything Else With Their Time

http://www.forbes.com/sites/quora/2015/02/21/java-makes-programmers-want-to-do-absolutely-anything-else-with-their-time/
35 Upvotes

636 comments sorted by

View all comments

Show parent comments

15

u/strattonbrazil Feb 22 '15

For real-world production servers, it tends to require a fair amount of JVM tuning.

I've seen stories where massive services will have a bit of JVM tuning done to be more efficient. Good for them. Seriously, what's the alternative? Running a slower language like ruby? The usual workflow I see is write something in ruby (or some other scripting language) just to get it up, switch to java for performance as many companies have done (Twitter, Google, Foursquare, etc.), and then do performance tuning because why use X machines when you could do the same work on half of them?

1

u/[deleted] Feb 22 '15

My rails apps run on the JVM now. Still tuning but much faster. Kind of a pain to roll the servers, but all in all, thanks java!

1

u/segv Feb 22 '15

Out of curiosity, why do you think it's painful?

From my experience all you really have to do is copy over JDK (as in, copy the files, don't even have to 'install' it), copy over the application, update JAVA_HOME and PATH and hit start.sh for the application (if you have special needs the workflow needs to be changed, of course).

Since you can put your application with all of its dependencies in a single package, the ease of (repeatable, predictable) deployment is miles and miles ahead of some systems associated with other languages (looking at you, virtualenv) - no manual updates on each of the boxes, no binary incompatibility with a binary blob you have to dlopen and so on.

2

u/[deleted] Feb 22 '15

Oh no, I'm talking about how long it takes torque box to roll over when I'm doing a code push. Annoying. And the jit takes a while to kick in after that.