Skip to main content
12 events
when toggle format what by license comment
Mar 24, 2014 at 4:23 comment added Gankro @user430788 It's worth noting that up until this year, the most modern consoles weren't even single GB systems! Both the 360 and PS3 has 512MB of RAM.
Mar 24, 2014 at 1:01 comment added user430788 In terms of computing performance, Java and C++ are on a par and have been for a long time. You can write pathological code in either to make it look bad if you want to. In terms of memory it is true that Java has more overhead. Hello world is a 4K program in Java. However that overhead is fairly meaningless on modern multi GB machines. Java also has a longer start-up time. Very short run benchmarks will be dominated by that. I would not recommend writing command line utilities, for instance, in java.
Feb 20, 2013 at 22:56 history made wiki Post Made Community Wiki by user82044
Dec 8, 2011 at 21:12 comment added mythicalprogrammer @Anto What's am I suppose to look at? Speed? C++. Memory usage? C++. Look at minecraft and try hosting a server and see how much memory the game is taking up. Java consume much more memory versus C++. Making an online game, I would imagine is pretty hard in Java. Every benchmark I've seen so far Java consume more memory, now having a mmorpg game where the central server is coded in java sounds nice only if you ignore the memory aspect or change the definition of massive in MMORPG.
Nov 28, 2011 at 23:08 comment added user1249 Any modern graphics card is programmed through an API, like OpenGL.
Nov 28, 2011 at 20:41 comment added Konrad Rudolph @Adrian First off, because it’s not silly but an extremely common use-case. Virtually every non-trivial application uses sorting at some point, and it’s a common bottleneck. But it’s not my only example, just a very salient one. I actually know a few other concrete cases, and you can generalise this to any kind of algorithm that requires type parametrisation and some specialisation based on that type (= most algorithms) and that is performed on a lot of data. This is a common problem.
Nov 28, 2011 at 15:19 comment added Adrian Mouat @Konrad As far as I can tell you are only offering a single conunter example based on sort - how is that better than "silly benchmarks"?
Mar 6, 2011 at 17:02 comment added Konrad Rudolph @Anto Forget those silly benchmarks. C++ is orders of magnitude faster than Java where it counts, see programmers.stackexchange.com/questions/29109/29136#29136 and programmers.stackexchange.com/questions/368/13888#13888.
Mar 6, 2011 at 17:00 comment added Konrad Rudolph @Joe The answer is wrong. Java isn’t interpreted.
Mar 6, 2011 at 15:48 comment added Fattie Who the heck voted this answer down? This whole question is becoming incredibly ridiculous! Good grief.
Mar 6, 2011 at 13:52 comment added Anto You should seriously read about JIT compilation, and look at some benchmarks where Java is put against C++
Mar 6, 2011 at 5:08 history answered mythicalprogrammer CC BY-SA 2.5