How faster is C++ compared to Java ? I tryed asking this at offical java forum but they deleted my thread...
How faster is C++ compared to Java ? I tryed asking this at offical java forum but they deleted my thread...
lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu
Do you realize that what you are saying is inflammitory?
http://72.14.203.104/search?q=cache:...s&ct=clnk&cd=1
http://www.kano.net/javabench/
Probably marginally faster, considering C++ has 3 characters compared to 4 characters for Java.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
> How faster is C++ compared to Java ?
http://www.albionmich.com/inspiratio...licompare.html
How about just picking the right tool for the job?
Your question is about as meaningful as which is better, a hammer or a screw-driver.
Why do you keep asking?
http://cboard.cprogramming.com/showthread.php?t=77811
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
the university im planning on going to next summer only teaches Java. unfortunately.
For what kind of degree? Only Java?
At my university, Java is taught first, then C++; from there its the students job to learn other languages (besides obvious cases).
The point is: a programming language is a tool, nothing more. You simply need to decide which tool best suits the problem at hand(Java, C++, Python....whatever)
"So you're one of those condescending UNIX computer users?"
"Here's a nickel, kid. Get yourself a better computer."
The speed that a language works is not that important, apart from perhaps game code, where as well written C++ programs can be lightning quick
Double Helix STL
One thing I find wierd is that in my computer science course they start with java, then end up doing all the top tier classes in C++ (with the exception of programming languages which teaches several)
I vote to lock or delete this thread. The original question was asinine and now it's totally derailed.
Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.
- Mike McShaffry
It maybe that learning Java would give you a solid foundation for moving on to unserstanding C++. Personally, I had no interst in Java. I am not knocking it, it is a good language with many uses, but C/C++ was more what I needed. When I left school in 1997, I learnt a small C course but then took to learning C++ in my own time.One thing I find wierd is that in my computer science course they start with java, then end up doing all the top tier classes in C++ (with the exception of programming languages which teaches several)
Double Helix STL
> but they deleted my thread...
There's 4 religions out there.
- One considers any question like this inflammatory. Followers of this religion usually are secret believers of one of the next two religions.
- Two other religions have an answer to that question. And they stick to it!
- The forth and last religion know there is no answer. Atheists! But damn me if they aren't the smart ones.
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.
The better question would be "I have the following requirements for foo, what might the pros and cons of a Java or C++ implementation be?".
> I vote to lock or delete this thread.
We'll see what ElastoManiac's first rebuttal to the arguments are....
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
ok, I'll openly admit I'm in one of these two religionsOriginally Posted by Mario F.
in all seriousness, Java is slower in execution for a number of reasons, not the least of which is the jvm.
add that you have to build the framework for your object, every time you want to use it, in java and you have bloated code to start with.
[ essentially, java requires scaffolding around every object in the code to support the code from falling over itself ]
a program in C++ can be badly written, with tons of bloat and perform slowly as well, but C++ does not require such bloat as java does.
the jvm issue isn't that it's needed, it's that there is more than one.
sorry, eclipse framework to support multiple jvms is just more bloat in the language, not a smart choice.
it's a cop-out, and the eclipse team should all be shot for stupidity.
Originally Posted by Jeff Henager
hence the reason why many beginner programmers would choose C++ over Java. Especially for games ( being that was their ideal aim )
Double Helix STL
Now that paragraph didn't really make sense. What has Eclipse to do with the language?Originally Posted by Jaqui
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law