r/programming • u/knife_sharpener • 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
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.