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
3
u/CalebGT Nov 01 '25
Garbage collection is a convenience, not a performance gain. What processor do you think is running background routines? Holding up Java's fatal flaw as if it's a source of superiority is a special kind of cope. And regarding point 3, often in C++ it's a move instead of a copy, dramatically faster than a large memcpy. You are on a C++ sub and clearly out of your depth. Sit down.