Re: About VS C++



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
.



Relevant Pages

  • Re: ANSI C compliance
    ... One of the world's most used C compilers, gcc, has a command line ... But it has nothing to do with the C language, ... > platform might not work on another platform. ... Chars have 8 bits and plain char is signed. ...
    (comp.lang.c)
  • Re: portable C, posix C and windows C
    ... compilers implement faithfully, as opposed to languages that vary ... depending on the platform and vendor (there were multiple, ... Windows libraries. ... There is no POSIX-specific version of the C language; ...
    (comp.lang.c)
  • Re: Is there a cross platform language ? PC - Mac - Unix/Linux
    ... > these platforms with featurs and support as outlined above? ... There are plenty of cross platform languages provided you code ... language, and there are cross platform UI toolkits. ... are any cross compilers though, you will probably need to generate ...
    (comp.programming)
  • Re: VC++ Compiler idioms manifest
    ... I am referring to the PC platform. ... They had compliant compilers, but they ... > different compliant ADA compilers by 1984. ... > The language has changed since then, but it never took 10 years. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: There has to be a better way to develop web applications.
    ... one manager still feels VB is not a programmers language, ... learn every tom dick and harry language, standard, and platform so you can ... > the context being discussed all of the arguements are on technology and not ... > on how to use the technology to increase productivity and to provide value to ...
    (microsoft.public.dotnet.framework.aspnet)