Re: About VS C++
- From: Andre Kaufmann <andre.kaufmann_re_move_@xxxxxxxxxxx>
- Date: Fri, 22 Dec 2006 13:57:05 +0100
Graeme Geldenhuys wrote:
Lars Fosdal wrote:To not do .NET now, would be like deciding not to start doing OOP back
in the Turbo Pascal 5.5 days. It is a major paradigm shift.
Lars F.
Rubbish!
You may agree or not agree to one's opinion, but calling one's simply rubbish isn't IMHO appropriate.
Here is why I am sticking with native Delphi / Object Pascal / Free Pascal compared to C# or Delphi for .NET
http://tinyurl.com/y4zh7l
Remembers me of a comparison between Java and C++, where C++ was 5 times slower than the Java program. In the end it was only bad porting of Java code to C++ code.
If you have a look at the pidigits example, where Free Pascal shall be 20 times faster than mono. It's using an >external library< libgmp.so. In which language is this library written, is it optimized ? Is the Mono BigInteger class just a wrapper or a new implementation ? Anyways a wrapper can't be faster.
The Free Pascal version has no single memory allocation only static allocated structures and variables. The Mono version permanently allocates objects and concatenates strings. Besides this can't be faster than static allocated matrices, it's not a good comparison regarding memory usage and not respecting the way a managed application is allocating memory.
I had only a quick look at this single example and I wouldn't call this a serious comparison, beside that the most performant commercial compilers available for Linux aren't in the lists of compared compilers.
And the discussion here was about .NET on the Windows platform, don't know how performant Mono is compared to .NET.
Using a compiler like Free Pascal, I write once and compile everywhere. Native executables on each platform - compared to a huge .NET VM install and slow executables.
Well, platform independence may be an argument for you, but not for all programmers. Though we had this for years with C / C++ and Delphi is still a widely used compiler on Windows.
The spirit of .NET is >not yet< to replace all native applications and to compile faster code, but language interoperability and productivity (for all languages) - .... please let's not start a discussion about competing with Java and binding to a proprietary platform.
If it would be all about speed we still would (sometimes we are) programming in assembly language.
Also I don't like statements like:
Quote from "Advantages of Free Pascal":
"Your programs will be more readable more maintainable than for example in C, and let's even forget about C++".
It isn't the comparison Pascal vs. C that I don't like, it's a common argument and IMHO a question about personal preferences, but I don't like the part "even forget about C++". IMHO you a well written C++ program is also readable and maintainable. Why should C be much better in this regard ?
C++ has templates, next Delphi version (Highlander) will have generics , C# has them already. IMHO generics are a big plus regarding maintainability.
Only my opinion. I'm trying to be not that much religious about languages, each one has it's pros and cons. And IMHO this is a plus of ..NET as platform, it let's you use the language you like and you are still able to use OOP libraries written in other languages.
Andre
.
- Follow-Ups:
- Re: About VS C++
- From: Graeme Geldenhuys
- Re: About VS C++
- References:
- About VS C++
- From: Bear
- Re: About VS C++
- From: Craig
- Re: About VS C++
- From: Lars Fosdal
- Re: About VS C++
- From: Eric Grange
- Re: About VS C++
- From: Lars Fosdal
- Re: About VS C++
- From: Nathaniel L. Walker
- Re: About VS C++
- From: Lars Fosdal
- Re: About VS C++
- From: Graeme Geldenhuys
- About VS C++
- Prev by Date: Re: BDS 2006
- Next by Date: Re: About VS C++
- Previous by thread: Re: About VS C++
- Next by thread: Re: About VS C++
- Index(es):
Relevant Pages
|