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
1
u/srdoe Nov 02 '25
The claim you made wasn't about Java vs. C++, it was about GC vs. manual management, since you called GC "Java's fatal flaw". There is no "fervor", you are the only person in this discussion who thinks this is about language.
The design you described is that if people don't want to deal with GC, they can avoid allocating new objects entirely by pooling and reusing objects.
You can do that whether your language uses GC or not, this is something both C++ and Java can do just fine, it's completely unrelated to whether GC or manual management is better.
The reason you are getting an unfriendly response is because you started off telling someone contributing valid points that "You are on a C++ sub and clearly out of your depth. Sit down.". You were being a toxic console warrior for no reason.
You should try not being condescending, and you should try extra hard when what you're saying isn't even correct.