Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
C/C++ or Java
#21
*ahem*

At the Gentoo Linux Forum: A REAL RETAIL game written in Java...OMG!
Reply
#22
Also check out Java 1.5s new features: http://java.sun.com/developer/technicalA...es/j2se15/.

A lot of things the Java community has been hanging out for such as generics, auto-boxing and enumerated types have been added.
esus saves.... Passes to Moses, shoots, he scores!
Reply
#23
If someone wrote a fast basic compiler than it would be the fastest language. But you're comparing bytecode interpreted by a virtual machine that runs in browsers to a series of compilers that have been studied and built upon for years. Languages are not "fast". That's like saying English is faster than Spanish. "Fast" only depends on how fast you speak it, and program speed depends only on your own ingenuity and the efficiency of its compiler/interpreter.

Now certainly Borland or Intel's C/C++ compiler is faster than Sun's Java VM, but hell, what does it matter? They're used for different things.
i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
Reply
#24
Nath: Sorry, but...I can't really understand that example. Remember, I said I coded with Java to a small extent. That really just means learning about the language, and how it works. But thanks for the effort of that long post. Smile
Okay, I'm also one to push that a language can't be slow, but right now we can talk about the standard PC Java VM - Sun's VM. Which one will undoubtable end up using most. Compared to the leading C and C++ compilers (Borland, Microsoft), you have to admit, C greatly outstrips Java.
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Reply
#25
What are some good C programming books?
Reply
#26
The one I used is Mastering C...but it's full of typos and mistakes. Although I does teach things like pointers pretty well.
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Reply
#27
Hmmm, i've been missing around in Java, and when you compile projects it does go quite slower then C or C++. I'm guessing the reason why is because it has to transform into bytecode first.
Reply
#28
Bytecode is executed through an interpreter, and it's difficult to make such a thing run as fast as native binary code. That would explain the speed difference of interpreted Java compared to compiled C/C++ on a PC. However, as na_th_an stated, on a cellphone, things change dramatically. It's all dependant upon the environment and the compiler, as I already pointed out.
I'd knock on wood, but my desk is particle board.
Reply
#29
This is a lost battle, Nek... Nobody seems to understand that simple fact.

I give up Tongue :roll:
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#30
C++ has references Smile

And on the using vb + c++ for winsock over java is garbage. Java has an excellent, and easy to use internet, and lan api. You can make lan/net games with java easily enough.

But i personally dont like java, so :p

Ill make a game in it and post it up on the boards here though. Since ive got nothing better to do. But youll have to wait a few months.

(BTW i believe there are java COMPILERS available, that create executables and not bytecode.)


Last thing, for all you java lovers:
Quote:Java IS faster than C!!! In 3/5 categories anyway...
The article:
http://www.osnews.com/story.php?news_id=5602&page=3
b]Hard Rock[/b]
[The Stars Dev Company] [Metal Qb flopped] [The Terror]
Stop Double Posts!
Whats better? HTML or Variables?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)