Re: C# and C++ Past, Present, Future :: Software Engineer

From: Adam W Root (adam_at_canright.com)
Date: 04/05/04


Date: Mon, 5 Apr 2004 15:50:39 -0700

What you need to recognize about C# over C++ is that it is managed. Managed
means overhead. C# is not derived from C++, no matter what anybody says. The
syntax has similarities, that is about it.

Performance is much slower than a C++ app, the footprint is much larger (in
terms of RAM and executable size). The benefit is that many of the complex
problems of software programming have been solved for you. That means higher
productivity. You can write games in C# and get decent results, but you
won't see any C# in Doom 3 or Half Life 2.

Yes, .NET apps can be run on Unix, etc. (http://www.go-mono.org/ or
http://www.go-mono.com/) I also saw an article awhile back about Microsoft
releasing a version of the framework for Unix-flavor OSes (don't quote me,
but someone has to be able to verfiy that).

.NET has many of the IPC problems solved as well. It is extremely (relative,
i know) easy to write client/server apps, n-tier apps, etc.

As far as OO, it is all in there. You mentioned templates... C# does not
support something like C++ templates, but (at a high level) this is supposed
to be addressed with generics in version 2 of the language.

So once again, you are trading productivity and mantainability for
performance when switching to C# from C++ (there are other tradeoffs, too,
you can explore those later).

Disclaimer: this is not a comprehensive list of features/pros/cons of the
language. Just wanted to give you an idea.

Adam

"kuphryn" <anonymous@discussions.microsoft.com> wrote in message
news:0441E3AF-727A-4795-BE4F-BB58CD212429@microsoft.com...
> Hello.
>
> I am a C++ programmer with limited experience (design) using C#. From my
experience, C#, like Java, is a derivative of C++. However, Microsoft is
able to blend C# and C++, getting the best out of the Java design.
>
> With the recent settlement between MS and SUN, I think that MS will remain
the top desktop software company. Bottomline: C# should surpass Java given
that it is in fact platform-independent.
>
> I have some basic questions on the C# language.
>
> Currently, does a C# application run on a non-Win32/Win64 platform (UNIX,
Mac, wireless)?
>
> How does C# compare to C++ in terms of object-oriental design
(inheritance, template, etc) on a large-scale project?
>
> How does C# compare to C++ for client/server applications including
various IPC concepts, multithreading, multiple processes, etc?
>
> How does C# compare to C++ for processor-intensive applications including
games, 3D-render, multimedia, etc?
>
> I read some reviews on two books on C# by Jeff Prosise and Charles
Petzold. In general, readers find the books GUI-oriented. How good is C# for
performance-imperative applications?
>
> Thanks,
>
> Kuphryn



Relevant Pages

  • Re: Operator overloading in Java ?
    ... > time on their hands will try to force that stuff into Java because ... > But if I see the many attempts to use them like templates ... language, and is one aspect of C++ that I've grown to dislike. ... programming language that has *removed* features as part of its evolution. ...
    (comp.lang.java.programmer)
  • Re: JavaFX: dead on start?
    ... I can basically write AJAX apps that run ... different language, ... Java libs from it. ... Microsoft's new marketing slogan for Windows is "Life Without Walls." ...
    (comp.lang.java.programmer)
  • Re: Should CodeGear adding Ruby support soon?
    ... I have built many c/s apps in delphi and have been very satisfied with the solution. ... The problem with ruby is that while it's a powerful dynamic language, it lacks a strong all encompassing library. ... The thing I like about .net and java is they come with a built in library that will do 95% of what I want to do out of the box and it has been battle tested by millions of people. ... WPF is revolutionary though and you can create some beautiful desktop apps with it. ...
    (borland.public.delphi.non-technical)
  • Re: data structures and algorithm
    ... I'd like to get used to a programming language ... I consider Java or .Net with an object-oriented approach. ... for "buisness" programming, VB or Python may be more relevant. ... Java is mostly used in a lot of niches, to some extent for apps, to some extent for web, ... ...
    (comp.programming)
  • Re: Privilege-escalation attacks on NT-based Windows are unfixable
    ... >>>design new languages and libraries with security in mind. ... >> Remember when Java was supposed to be that language? ... a good case that Java is more suitable for writing secure apps (not ...
    (comp.os.ms-windows.nt.admin.security)