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 don't agree. It's true that at the hardware level the improvement over plain atomic is limited to a few architectures (ARMv7, consoles, itanium). Using relaxed atomics also allows the compiler to optimize a bit more in some situations, even on hardware with a strong memory model.
I wouldn't advice anyone to actually use them, because often it isn't important. But it is these things that give C/C++ an edge over other programming languages when it actually matters.
Saying that there's undefined behavior is kind of a bad argument. The entire C++ standard is littered with undefined behavior. Even multiplying 2 uint32_t can result in undefined behavior, but that doesn't mean we should avoid them.