Re:Choosing Java instead of C++ for low-latency systems
by jimbob45 on Monday February 22, 2021 @10:41AM
(#26225748)
Why would I ever use Java for high-performance anything when C# is a better feeling language with native memory management support?
Edit: the author’s entire point is his claim (never backed up) that Java is better at optimizing away less-used branches in code. OpenMP lets the programmer do exactly that with C++, if the C++ compiler isn’t already superior.
Re:Choosing Java instead of C++ for low-latency systems
by dchapp on Monday February 22, 2021 @11:41AM
(#26226546)
What does OpenMP (the shared memory parallel runtime) have to do with optimizing away less-used branches? Am I missing something here or did you mean something else instead of OpenMP?
Edit: the author’s entire point is his claim (never backed up) that Java is better at optimizing away less-used branches in code. OpenMP lets the programmer do exactly that with C++, if the C++ compiler isn’t already superior.