Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 13th, 2006, 11:47 AM   #11
nnxion
Programming Guru
 
nnxion's Avatar
 
Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5 nnxion is on a distinguished road
Quote:
Originally Posted by Ooble
Same here. I use C++ for fast, console-only programs, or programs that don't need to output stuff. For GUI-based apps, I use C#. So much easier with the .NET framework. And yes, C++ .NET is a joke.
Me three, or two or too.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for."
-- Socrates
nnxion is offline   Reply With Quote
Old Jan 13th, 2006, 12:56 PM   #12
clsk
Newbie
 
Join Date: Jan 2006
Posts: 13
Rep Power: 0 clsk is on a distinguished road
No need for c# anymore.

I felt the same way before .NET 2.0 came out with visual studio 2005.
The new C++/CLI (that's what they call it now instead of managed c++) is way better than its predecesor. Check MSDN for more info. The interface to the language is way more attractive. Also you can take advantage of templates AND generics among other stuff.

Something I've always loved about c++ is the standard library specially its containers. Microsoft developers are supposed to be working on a STL.NET that was supposed come out with visual studio 2005 but it didn't make it. I'm not sure of STL.NET's release date if there is one set yet. Check MSDN's blogs.

I currently feel no PERSONAL need for c# anymore.
clsk is offline   Reply With Quote
Old Jan 13th, 2006, 3:10 PM   #13
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
But... that's not the point. C++ .NET is basically C# with a few extra retarded keywords thrown in. It's not like it runs any faster.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jan 13th, 2006, 3:49 PM   #14
clsk
Newbie
 
Join Date: Jan 2006
Posts: 13
Rep Power: 0 clsk is on a distinguished road
You're 100% correct on that and I never said that c++ was any faster/slower than c#. All I said was that c++/cli is no near as ugly as the old managed c++. No language is faster than the other. A programming language is not a factor when it comes deciding what language is faster than the other.
It depends more on what exactly you're measuring (production speed, execution speed, compiling speed, etc...).
In this case though, we're talking about programs running under the .NET runtime framework so a specific language does not really contribute much to speed (IMO that is).
Pretty much all I was saying is that if you're a c++ programmer and are used to c++ (as I am) there is no need to use c# now when using .NET.
clsk is offline   Reply With Quote
Old Jan 13th, 2006, 4:21 PM   #15
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Makes sense to me. I can think of one disadvantage though: no Linux support.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jan 13th, 2006, 4:56 PM   #16
jayme
Professional Programmer
 
jayme's Avatar
 
Join Date: Nov 2005
Location: Canada
Posts: 495
Rep Power: 0 jayme is an unknown quantity at this point
Send a message via MSN to jayme
C++ is faster than C# actually. Unless you're talking about .NET languages of course, that i know nothing about.
__________________

Quote:
Originally Posted by Mohamed Jihad
Durka durka!
Due to incorrect calculations during the middle ages, our calendar actually begins a few years after Jesus' birth. Thus the real 6/6/6 happened a few years back. The world already ended and you missed it.

Download Code::Blocks now!
jayme is offline   Reply With Quote
Old Jan 13th, 2006, 5:21 PM   #17
clsk
Newbie
 
Join Date: Jan 2006
Posts: 13
Rep Power: 0 clsk is on a distinguished road
I did come to that conlusion too. I've seen two attempts to port c++/cli linux.
http://www.math.leidenuniv.nl/~kris/whirl2il/
and
http://developer.novell.com/wiki/index.php/Gcc-cil
clsk is offline   Reply With Quote
Old Jan 13th, 2006, 5:45 PM   #18
clsk
Newbie
 
Join Date: Jan 2006
Posts: 13
Rep Power: 0 clsk is on a distinguished road
Quote:
Originally Posted by jayme
C++ is faster than C# actually. Unless you're talking about .NET languages of course, that i know nothing about.
Once again, the language has nothing to do with how fast the resulting program is going to be.
What you are talking about is the implementation.
clsk is offline   Reply With Quote
Old Jan 13th, 2006, 9:29 PM   #19
Darkhack
Hobbyist Programmer
 
Darkhack's Avatar
 
Join Date: Dec 2005
Location: Kansas City
Posts: 105
Rep Power: 3 Darkhack is on a distinguished road
Send a message via AIM to Darkhack
Actually C# is slower clsk. The reason being is because it is interprited by the .NET Framework or Mono, where as C++ is already in binary format. Also the Runtime Environment causes it to eat up more RAM than it's C++ equivalent. Here is a good way to think of it. Say you are a native English speaker who is learning Spanish and already speaks French. C++ is like having a paragraph in spanish that has already been translated into English right beneath it. Where as C# is translated into an intermediate language (MSIL) and it is like having a paragraph in spanish with a french translation beneath it and you need to translate to english in your head while you read it.

Although C# is a little bit slower and takes up a wee bit more RAM, most developers would agree that it is worth it. For common GUI applications that hobbiest programmers would write, it sure makes life a whole lot easier. Besides, if you are new to programming, the garbage collection might actually make your program more compact than if a beginner wrote it in C++. Of course that is something one would want to overcome anyway, but it still helps advanced developers squash bugs with less effort.
Darkhack is offline   Reply With Quote
Old Jan 13th, 2006, 10:23 PM   #20
InfoGeek
Professional Programmer
 
InfoGeek's Avatar
 
Join Date: Jun 2005
Location: India, The great.
Posts: 435
Rep Power: 4 InfoGeek is on a distinguished road
Quote:
Originally Posted by darkhack
Actually C# is slower ...
I think the comparison here is between C# and managed C++.
__________________
PFO - My daily dose of technology.
InfoGeek is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:51 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC