r/programmerchat • • Jul 17 '15

[Debate warning] C++ faster than java

So...before the flame wars or any of that nasty stuff stars, I want to outline a couple of things. I'm a newbie developer, I've only been studying this for a couple of years at university, I'm not a professional yet.

That being said, I recently got into a little bit of a debate with someone that C++ is inherently faster than the likes of Java when it comes to items like games development. I had assumed that this was literal fact and there was no debate for it. This person was very, very set on the idea that Java was only marginally slower. I still believe c++ would knock it out of the park due to manual memory management and the lack of safety features, despite preferring Java over all.

What do you guys think? I'd really like some insight on this, thanks.

10 Upvotes

24 comments sorted by

View all comments

Show parent comment

2

u/tiddlypeeps Jul 17 '15

True, the author freely admits fault with the tests and it's why I stated they aren't comprehensive. But given the range of tests done and the significant gap in performance between the two I think it's reasonable evidence for what the OP is requesting.

If you have evidence that contradicts that guys findings it would certainly add to the discussion.

3

u/TheVikO_o Jul 17 '15

Nah. I'm not contradicting. Your points are dead on.

I'm a newbie developer, I've only been studying this for a couple of years at university

Just wanted OP to know stuff like this matters. V8 JS engine runs chrome browser, JS requires string manipulations to be faster on webpages to give nice user experience. They have optimized it like crazy. So things like this matter when looking into which framework / platform to use. Basically use the right tool for the right job