techPowerUp! Forums

Go Back   techPowerUp! Forums > Other > techPowerUp! Club Forum

Reply
 
Thread Tools
Old Dec 6, 2012, 07:50 PM   #1
MrSeanKon
200 Posts
 
MrSeanKon's Avatar
 
Join Date: Nov 2006
Location: Athens in love with Anna :)
Posts: 253 (0.11/day)
Thanks: 28
Thanked 65 Times in 24 Posts

C# fans join here!

Although I am not a professional programmer, I learned about C# in 2005.
Then I loved and I still use it. Nowdays I am trying to extend my knowledge on advanced topics.
BTW I read ANSI C and C++ books sometimes.
Beside of them talk for yourself
I wish to be friend with many TPU C# fans here!

Last edited by MrSeanKon; Dec 6, 2012 at 11:36 PM.
MrSeanKon is offline  
Reply With Quote
Old Dec 6, 2012, 07:53 PM   #2
Frick
Fishfaced Nincompoop
 
Frick's Avatar
 
Join Date: Feb 2006
Location: Sweden
Posts: 8,051 (3.02/day)
Thanks: 1,100
Thanked 1,500 Times in 1,193 Posts

System Specs

I'm kinda learning C (to program Atmel stuff with) but it's slooooooow for various reasons. It is very interesting though and I hope hope I can pick it up sooner or later.
__________________
"The 'gentle biker' look is overdone. I'm going for 'psycho hillbilly.' "
Frick is offline  
Reply With Quote
Old Dec 6, 2012, 08:22 PM   #3
Aleksander
2000 Posts
 
Aleksander's Avatar
 
Join Date: Dec 2009
Posts: 3,038 (2.35/day)
Thanks: 653
Thanked 283 Times in 229 Posts

System Specs

I am fan of C++, but to say the truth, the speed of C# to humans, is great.
C++ needs like 6 years to be expert and whatever people throw to you, you will digest it.
C# needs like 6 months to start creating programs
C is a good language, this is why they invented C++....
Aleksander is offline  
Reply With Quote
Old Dec 10, 2012, 01:36 PM   #4
MrSeanKon
200 Posts
 
MrSeanKon's Avatar
 
Join Date: Nov 2006
Location: Athens in love with Anna :)
Posts: 253 (0.11/day)
Thanks: 28
Thanked 65 Times in 24 Posts

Quote:
Originally Posted by Frick View Post
I'm kinda learning C
You mean ANSI C??
Not C++ (whatever edition MFC or Visual C++ etc)...

Quote:
Originally Posted by Frick View Post
but it's slooooooow for various reasons.
I thought that C# is one of the slowest programming languages.

Aleksander of course C# is easier compared with Visual C++, MFC damn is too difficult!!
MrSeanKon is offline  
Reply With Quote
Old Dec 10, 2012, 01:42 PM   #5
caleb
1000 Posts
 
Join Date: Sep 2004
Location: Poland,Slask
Posts: 1,119 (0.35/day)
Thanks: 204
Thanked 176 Times in 144 Posts

System Specs

Comparing C++ to C# in terms of performance is like comparing a Ferrari to a VW GOLF.
I think what he meant was that learning curve is slow.
__________________
"Let me noobilize you"
caleb is offline  
Reply With Quote
Old Dec 10, 2012, 06:24 PM   #6
Aleksander
2000 Posts
 
Aleksander's Avatar
 
Join Date: Dec 2009
Posts: 3,038 (2.35/day)
Thanks: 653
Thanked 283 Times in 229 Posts

System Specs

Does C# have memory allocation?
Or translated in a more programming way: Dynamic memory?
Aleksander is offline  
Reply With Quote
Old Dec 10, 2012, 10:38 PM   #7
Kreij
Hardcore Monkey Moderator
 
Kreij's Avatar
 
Join Date: Feb 2007
Location: Cheeseland (Wisconsin, USA)
Posts: 12,254 (5.27/day)
Thanks: 591
Thanked 5,510 Times in 2,948 Posts

System Specs

Quote:
Originally Posted by caleb View Post
Comparing C++ to C# in terms of performance is like comparing a Ferrari to a VW GOLF.
I think what he meant was that learning curve is slow.
The performance of a C++ and C# program completely depends upon the implementation.
One could argue that since the de-allocation of resources is completely determinist and the GC in C# is not, that you could tune a C++ program to perform better. The GC algorithms in C# are mighty close, however, and only in a performance critical application will you see a real difference.

There are advantages to both languages which really need to be assessed at design time.
__________________

Cloud (noun, singular): A dynamic arrangement of multiple potential single points of failure, with a user at one end and their data at the other.


Get more tech news on a wide variety of topics at NextPowerUp
Kreij is offline  
Reply With Quote
The Following User Says Thank You to Kreij For This Useful Post:
Old Dec 27, 2012, 10:15 PM   #8
MrSeanKon
200 Posts
 
MrSeanKon's Avatar
 
Join Date: Nov 2006
Location: Athens in love with Anna :)
Posts: 253 (0.11/day)
Thanks: 28
Thanked 65 Times in 24 Posts

Quote:
Originally Posted by Aleksander Dishnica View Post
Does C# have memory allocation?
I think no.
But I am not 100% sure. The first editions did not support unsafe code programming such as pointers. But the latest editions of course support pointers.
On the other hand you can embed C or C++ code inside C# easily. Thus no problem
MrSeanKon is offline  
Reply With Quote
Old Dec 27, 2012, 11:26 PM   #9
FordGT90Concept
"I go fast!1!11!1!"
 
FordGT90Concept's Avatar
 
Join Date: Oct 2008
Location: IA, USA
Posts: 10,654 (6.23/day)
Thanks: 1,788
Thanked 2,633 Times in 1,987 Posts

System Specs

Unsafe existed in at least Visual Studio .NET 2003 (Framework 1.1). The unsafe keyword also existed since at least 2003.


C# handles memory allocation and garbage collection automatically.
__________________
Golden Rule of Programming: Never assume.

try { SteamDownload(); }
catch (Steamception ex) { RageQuit(); }
FordGT90Concept is online now  
Crunching for Team TPU
Reply With Quote
Old Dec 28, 2012, 12:50 AM   #10
Aleksander
2000 Posts
 
Aleksander's Avatar
 
Join Date: Dec 2009
Posts: 3,038 (2.35/day)
Thanks: 653
Thanked 283 Times in 229 Posts

System Specs

This is really bad, because first of all you have no control of what is happening.
Second, that is not optimized with your program of choice.

C# looks more like PHP and C++ mixed
Aleksander is offline  
Reply With Quote
Old Dec 28, 2012, 12:51 AM   #11
FordGT90Concept
"I go fast!1!11!1!"
 
FordGT90Concept's Avatar
 
Join Date: Oct 2008
Location: IA, USA
Posts: 10,654 (6.23/day)
Thanks: 1,788
Thanked 2,633 Times in 1,987 Posts

System Specs

I've never encountered problems with memory management using C#.
__________________
Golden Rule of Programming: Never assume.

try { SteamDownload(); }
catch (Steamception ex) { RageQuit(); }
FordGT90Concept is online now  
Crunching for Team TPU
Reply With Quote
The Following User Says Thank You to FordGT90Concept For This Useful Post:
Old Dec 28, 2012, 12:52 AM   #12
Aleksander
2000 Posts
 
Aleksander's Avatar
 
Join Date: Dec 2009
Posts: 3,038 (2.35/day)
Thanks: 653
Thanked 283 Times in 229 Posts

System Specs

What if you create a 3D program, like Far Cry 3 and than lets have a talk
Aleksander is offline  
Reply With Quote
Old Dec 28, 2012, 12:55 AM   #13
FordGT90Concept
"I go fast!1!11!1!"
 
FordGT90Concept's Avatar
 
Join Date: Oct 2008
Location: IA, USA
Posts: 10,654 (6.23/day)
Thanks: 1,788
Thanked 2,633 Times in 1,987 Posts

System Specs

http://www.google.com/search?q=3D+XN...w=1360&bih=668

XNA uses a Direct3D backbone.


Terraria is probably the most successful XNA title. It isn't 3D though.


This has nothing to do with capabilities but more that big gaming houses have always developed in C/C++ and they aren't inclined to change. C/C++ also makes it easier to port to OpenGL for a Mac/Linux release.
__________________
Golden Rule of Programming: Never assume.

try { SteamDownload(); }
catch (Steamception ex) { RageQuit(); }

Last edited by FordGT90Concept; Dec 28, 2012 at 01:11 AM.
FordGT90Concept is online now  
Crunching for Team TPU
Reply With Quote
Old Dec 28, 2012, 01:02 AM   #14
parelem
200 Posts
 
Join Date: Jun 2009
Location: Chicago
Posts: 215 (0.15/day)
Thanks: 96
Thanked 49 Times in 39 Posts
Send a message via AIM to parelem Send a message via MSN to parelem Send a message via Yahoo to parelem

System Specs

Quote:
Originally Posted by Aleksander Dishnica View Post
This is really bad, because first of all you have no control of what is happening.
Second, that is not optimized with your program of choice.

C# looks more like PHP and C++ mixed
If it was as unstable as you think, it wouldn't be as widely used as it is. C# is very robust, no issues with memory allocation.


I primarily work with C++/CLI and .net 4.0 but moving more towards C#. However, I use C# and the .net MF for smaller embedded devices/applications and absolutely love it.

Thinking about putting something together for a high altitude balloon mission, should be fun.
__________________

Last edited by parelem; Dec 28, 2012 at 01:10 AM.
parelem is offline  
Reply With Quote
The Following User Says Thank You to parelem For This Useful Post:
Old Dec 28, 2012, 06:38 AM   #15
de.das.dude
3500 Posts
 
de.das.dude's Avatar
 
Join Date: Jun 2010
Location: Wild Wild East
Posts: 4,859 (4.41/day)
Thanks: 2,447
Thanked 1,421 Times in 978 Posts
Send a message via Skype™ to de.das.dude

System Specs

big fan of C++

<------------------------------right here
__________________
de.das.dude is offline  
Reply With Quote
Old Dec 28, 2012, 08:19 AM   #16
syeef
Banned
 
Join Date: Jul 2008
Location: Dhaka, Bangladesh
Posts: 280 (0.15/day)
Thanks: 151
Thanked 70 Times in 54 Posts

System Specs

I like C#, better than the rest of the .NET languages, but not enough to be a fan... I am a fan of Java, maybe that is why I like C# as it looks more like Java.
syeef is offline  
Reply With Quote
Old Dec 28, 2012, 08:22 AM   #17
FordGT90Concept
"I go fast!1!11!1!"
 
FordGT90Concept's Avatar
 
Join Date: Oct 2008
Location: IA, USA
Posts: 10,654 (6.23/day)
Thanks: 1,788
Thanked 2,633 Times in 1,987 Posts

System Specs

If Java and C++ had a baby, it would be C#. C# uses a virtual machine like Java but it also maintains key features of C++ (like unmanaged memory pointers and portable executable format).
__________________
Golden Rule of Programming: Never assume.

try { SteamDownload(); }
catch (Steamception ex) { RageQuit(); }
FordGT90Concept is online now  
Crunching for Team TPU
Reply With Quote
Reply


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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
My War3 Cant Join Other Ppl Game But People Can Join Mine poppy567 Games 12 Jun 19, 2009 02:55 AM
[FS][US] Any Thinkpad fans in here? 2 T60ps with FireGL V5200! R-T-B Buy/Sell/Trade/Giveaway Forum 10 Jun 2, 2009 06:36 AM
For X1650 Fans Post Here! vampire622003 Graphics Cards 7 Jan 5, 2008 03:53 PM


All times are GMT. The time now is 11:08 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
no new posts