473,405 Members | 2,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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

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
Nov 16 '05 #1
4 2516
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" <an*******@discussions.microsoft.com> wrote in message
news:04**********************************@microsof t.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

Nov 16 '05 #2
Adam W Root <ad**@canright.com> wrote:
Performance is much slower than a C++ app, the footprint is much larger (in
terms of RAM and executable size).
Could you state what you mean by "much slower" here? For *certain*
tasks C# will indeed be significantly slower than C++. For many other
tasks, it will be about the same speed.

As for the footprint size: there's the hit of the CLR itself and the
libraries it needs, but after that the footprint shouldn't end up being
much larger in terms of data. Of course, garbage collection means it'll
usually be a bit bigger, but I don't *think* .NET types themselves take
up particularly more data than C++ types. The typical overhead in .NET
is 8 bytes per object - any idea what it is in C++? (I don't know, but
I doubt that it's less than 4, and wouldn't be surprised if it's 8
again.)

In terms of the actual executable size itself, I think C# ends up much
the same as C++, really.
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).


Yes, it's called ROTOR. See
http://www.pobox.com/~skeet/csharp/f...rating.systems

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #3
q
C# lacks templates which C++ has.
Also missing is multiple inheritance.
C# supports ONLY single class inheritance,
but supports multiple interface inheritance.
However, you must implement the interface functions
yourself.

So far I found the lack of templates and multiple inheritance
major negatives about the language.

kuphryn wrote:
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


Nov 16 '05 #4
I often read about fully OO feature in languages including Java and C#.

How important is object-oriented paradigm?

Nonetheless, the good things seem to point to platform-independence rather than the OO paradigm.

How would you evaluate fully OO paradigm (C#, Java, etc) to a flexible programming language like C++ that gives the developer unsurpassed control without going to ASM?

Kuphryn
Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: paypal | last post by:
For those of you in the San Francisco Bay Area ... PHP5 & Web Services, The Present and the Future: Andi Gutmans of Zend, will give an overview of the PHP phenomena and how it has come to...
242
by: James Cameron | last post by:
Hi I'm developing a program and the client is worried about future reuse of the code. Say 5, 10, 15 years down the road. This will be a major factor in selecting the development language. Any...
47
by: David Eng | last post by:
> For many years now enterprise business application development has > been the core area for the use of C++. > Today a significant share to this segment has already been lost to > SUN's Java...
5
by: Raj Sharma | last post by:
Hai Guys, I am new to the group well i have one doubt in my mind from a long time, that what will be the Future of VC++, as full framework has been now .NET so will it be easy to shift to C#, or...
2
by: Tom Gugger | last post by:
AIM EXECUTIVE tgugger@aimexec.com 419-255-1900 We have a client that needs an embedded software engineer. This is
5
by: kuphryn | last post by:
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...
1
by: sri | last post by:
Following is the requierement for Our client.Candidates based at USA only need to apply. Location :Pittsburgh State/Province Pennsylvania Lead Software Engineer - Device Side Development Key...
0
by: kamali.pillai | last post by:
...:: Job Update from JobMaguz ::.. Today's Highlighted Job: HCL Technologies:Software Engineer/Senior software Engineer http://www.jobmaguz.com/viewFresherJobs.aspx?jobid=981&cycle=1 26 jobs...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.