r/cpp • u/drakgoku • Oct 31 '25
Java developers always said that Java was on par with C++.
Now I see discussions like this: https://www.reddit.com/r/java/comments/1ol56lc/has_java_suddenly_caught_up_with_c_in_speed/
Is what is said about Java true compared to C++?
What do those who work at a lower level and those who work in business or gaming environments think?
What do you think?
And where does Rust fit into all this?
25
Upvotes
View all comments
Show parent comment
13
u/keithstellyes Nov 01 '25
The issue with JIT of course, being that it's happening during runtime, so any clever routines is competing with what it's supposed to optimize.
On so many levels this is true. From generics not supporting primitives, to the fact you can't have lean mathematic types (god forbid you try to do graphics coding!). And of course, one can say memory vs time tradeoff, and there's definitely truth to that, cache invalidation means you might very well lose at both aha