Page 3 of 3

Re: C c++ c# java i need info

Posted: Thu Aug 15, 2013 2:42 pm
by m0skit0
Well Xian Nox made the points. Just one more thing: C++ (and C) is WAY harder to code properly with than Java.
  • Manual memory management vs garbage collector
  • Pointers vs references
  • No security vs security (class loaders, etc..)
  • No native threads support vs native threads
  • No architecture abstraction vs WORA
We're talking about 1983 vs 1995. And yes, of course C/C++ is faster, but this comes with a price: portability.

Re: C c++ c# java i need info

Posted: Thu Aug 15, 2013 3:32 pm
by hgoel0974
m0skit0 wrote:Well Xian Nox made the points. Just one more thing: C++ (and C) is WAY harder to code properly with than Java.
  • Manual memory management vs garbage collector
  • Pointers vs references
  • No security vs security (class loaders, etc..)
  • No native threads support vs native threads
  • No architecture abstraction vs WORA
We're talking about 1983 vs 1995. And yes, of course C/C++ is faster, but this comes with a price: portability.
I agree but there are some 'solutions' to some of these, I remember finding a library which could take care of memory management, well actually I know nothing about anything else you listed :P
But personally even though I haven't noticed gigantic differences between C and C++ for some reason C feels more comfortable

I guess the best way to take it would be based on what you need, these days the overhead of a vm ish language is negligible, I don't know about java but there are math libraries for C# that are as fast as native C++ libraries.

Re: C c++ c# java i need info

Posted: Thu Aug 15, 2013 8:11 pm
by StaticCodex
m0skit0 wrote:Well Xian Nox made the points. Just one more thing: C++ (and C) is WAY harder to code properly with than Java.
Kind of missed my whole point here. Hard work is justified always. Learning it the hard way makes many other things easier as its more practical. Sometimes one must learn the old fashioned way before they learn the shortcuts like in mathematics, no? (When i say old-fashioned dont take it literal)
Xian Nox wrote:Uh huh. Then let me just say one thing: neither Java, nor any other interpreted language saves you from writing bad or unoptimized code.
We're kind of jumping the gun. You cant expect a beginner coder to know proper coding ethics such as bad coding structure or unoptimized code.
Xian Nox wrote:Minecraft will run on a potato if you get the tweaks.
Not quite the argument because minecraft is a commercial and very successful game. Of course there will always be tweaks required but even at the commercial level such tweaking, and optimized code can be only practically imaginable.

Thats pointing out the IF possibilities which really isnt the case to diminish the obvious fact that everything in coding needs to be tweaked like mincraft itself.

Re: C c++ c# java i need info

Posted: Thu Aug 15, 2013 10:26 pm
by hgoel0974
@Acid, here is something that says otherwise to Java being slow, realtime raytracing + photon mapping ;)

http://www.cc.gatech.edu/~phlosoft/photon/

Re: C c++ c# java i need info

Posted: Wed Aug 21, 2013 8:50 pm
by m0skit0
@StaticCodex I think you missed your answer. That wasn't an answer to your post ;)