flatmush said:C is simpler, it has lots less complexities. People think that java and C++ are better because of their feature-set but they tend to over-complicate things and encourage in-efficient programming.Shiny said:It's not about performance, it's about ease of use. Java is much more user friendly than C.
Java was created for portability, so you don't use it for performance, you use it to create platform specific byte-code, thats what it was invented for and that is what it should be used for.
If your program isn't going to be 100% platform specific then you should be using c++ or c.
I totally agree with you here; however that doesn't mean java has to be slow. It just means most java apps are slow. A skilled programmer will take the time that would've been coding/debugging into optimizing, and will end up with a java app that runs faster than a C app written in the same amount of time. Didn't one of the Quake ports in Java require less CPU power than the actual written-in-C game?
Now, if you have more time on your hands, then C would probably be better.
And if you're doing some low level hardware stuff, then C will be a necessity.
And if there's no JVM/JIT for your platform, then C will again be better.
But on x86, Java code runs basically the same speed as C code; it's just up to the programmer to not fall into "easy to use code" traps. String objects?...pfft, I use byte[] primitives! :lol: ...and once you're at that point(using more of a C flow than a Java flow), it doesn't really matter which language you use. I prefer java because I have trouble with compiler errors. I find it simpler; I code a small chunk, debug/test it, then move on...
So true. :lol: I just don't like people spreading misinformation. The JVM on x86 is an incredible piece of software! The java language is...hmm...okay.Laurent said:Hum, is that CPU bound? It doesn't look so
Yeah I know, I am a bastard
Anyway this Java stuff is like all religious wars, vi vs emacs vs whatever, Windows vs Linux, and so on. It boils down to "my d.ck is bigger than yours, because I spend my day answering spam to enlarge my penis".
Last edited by a moderator: