Re: Java outperforms C++?
- From: "Vyacheslav Lanovets" <xentrax_umail.ru>
- Date: Wed, 20 Apr 2005 23:35:56 +0400
Hello, benben!
You wrote in conference microsoft.public.vc.language on Tue, 12 Apr 2005
22:05:41 +1000:
b> on page 601 of Code Complete 2nd Edition by Steve McConnell. It seems,
b> as shown in the table, that Java outperforms C++ in every criteria, if
b> not merely matches the latter.
I am really surprised that there still are people eager to argue about C++
vs Java. If programmers spent all the time they spent on this arguing on
smth more useful, the world could be better now :)
Anyway, there is one and only one place where Java can be faster than C++
compilers - it's memory management - GC:
1. GC allocations are usually faster than tree-like heap allocatins.
2. During peak CPU usage time is not spent on deallocations - response is
_theoretically_ faster.
GC can be used in C++ too but it's not used, at least by typical C++
programers ;)
Modern optimizing compilers, profile-guided optimization, modern AI-enabled
CPUs with branch prediction provide C++ code with all benefits of
JIT-compiled code.
Best regards, Vyacheslav Lanovets
.
- Follow-Ups:
- Re: Java outperforms C++?
- From: Kehuei Huang
- Re: Java outperforms C++?
- References:
- Java outperforms C++?
- From: benben
- Java outperforms C++?
- Prev by Date: Error: missing export MFC70.DLL:6045
- Next by Date: Re: Error: missing export MFC70.DLL:6045
- Previous by thread: Re: Java outperforms C++?
- Next by thread: Re: Java outperforms C++?
- Index(es):
Relevant Pages
|