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

140

u/karlhungus Feb 22 '15

I have no love for java.

While it performs pretty well nowadays, it still isn’t competitive with C or C++ and, with a little love, Haskell and OCaml can or will eclipse it in that domain.

I didn't think this was true, i thought it was somewhat close to C (excluding startup).

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

This is really seems like reaching for something to be a problem that isn't.

because it objectively sucks.

If people can't even define OO, it can't objectively suck. If you were making a pun i forgive you.

culture is one of mediocrity and bad taste, with MetaModelVibratorVisitorFactory

These kinds of strawmen make me feel like "I don't have to read another word this person writes."

1

u/Tulip-Stefan Feb 22 '15

I'm not sure why people see C and C++ as different languages in terms of performance. C++ code can be made as fast as C with 2 exceptions: no VLA's, no restrict keyword. I don't see VLA's used much in C, and most C++ compilers provide their own non-standard version of restrict.

If you want java to be as fast as the C family, give me true value-type classes and arrays, explicit simd instructions and relaxed atomics.

Without these features java will never be as fast as the C family for highly optimized programs.

→ More replies (3)