1. Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

C# fans join here!

Discussion in 'TechPowerUp Club Forum' started by MrSeanKon, Dec 6, 2012.

  1. MrSeanKon

    MrSeanKon New Member

    Joined:
    Nov 14, 2006
    Messages:
    267 (0.07/day)
    Thanks Received:
    73
    Location:
    Athens in love with Anna :)
    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 :)
    :toast: I wish to be friend with many TPU C# fans here!
     
    Last edited: Dec 7, 2012
    10 Year Member at TPU
  2. Frick

    Frick Fishfaced Nincompoop

    Joined:
    Feb 27, 2006
    Messages:
    14,056 (3.45/day)
    Thanks Received:
    4,902
    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.
     
    10 Year Member at TPU
  3. GSquadron

    GSquadron

    Joined:
    Dec 2, 2009
    Messages:
    3,257 (1.21/day)
    Thanks Received:
    316
    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++....
     
  4. MrSeanKon

    MrSeanKon New Member

    Joined:
    Nov 14, 2006
    Messages:
    267 (0.07/day)
    Thanks Received:
    73
    Location:
    Athens in love with Anna :)
    You mean ANSI C?? :rolleyes:
    Not C++ (whatever edition MFC or Visual C++ etc)...

    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!!
     
    10 Year Member at TPU
  5. caleb

    Joined:
    Sep 15, 2004
    Messages:
    1,561 (0.34/day)
    Thanks Received:
    210
    Location:
    Poland,Slask
    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.
     
    10 Year Member at TPU
  6. GSquadron

    GSquadron

    Joined:
    Dec 2, 2009
    Messages:
    3,257 (1.21/day)
    Thanks Received:
    316
    Does C# have memory allocation?
    Or translated in a more programming way: Dynamic memory?
     
  7. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,826 (3.71/day)
    Thanks Received:
    5,631
    Location:
    Cheeseland (Wisconsin, USA)
    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.
     
    Aquinus says thanks.
    10 Year Member at TPU
  8. MrSeanKon

    MrSeanKon New Member

    Joined:
    Nov 14, 2006
    Messages:
    267 (0.07/day)
    Thanks Received:
    73
    Location:
    Athens in love with Anna :)
    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 :)
     
    10 Year Member at TPU
  9. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    19,657 (6.31/day)
    Thanks Received:
    8,940
    Location:
    IA, USA
    Crunching for Team TPU
  10. GSquadron

    GSquadron

    Joined:
    Dec 2, 2009
    Messages:
    3,257 (1.21/day)
    Thanks Received:
    316
    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
     
  11. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    19,657 (6.31/day)
    Thanks Received:
    8,940
    Location:
    IA, USA
    I've never encountered problems with memory management using C#.
     
    syeef says thanks.
    Crunching for Team TPU
  12. GSquadron

    GSquadron

    Joined:
    Dec 2, 2009
    Messages:
    3,257 (1.21/day)
    Thanks Received:
    316
    What if you create a 3D program, like Far Cry 3 and than lets have a talk ;)
     
  13. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    19,657 (6.31/day)
    Thanks Received:
    8,940
    Location:
    IA, USA
    Last edited: Dec 28, 2012
    Crunching for Team TPU
  14. parelem

    Joined:
    Jun 24, 2009
    Messages:
    230 (0.08/day)
    Thanks Received:
    51
    Location:
    Chicago
    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: Dec 28, 2012
    FordGT90Concept says thanks.
  15. de.das.dude

    de.das.dude Pro Indian Modder

    Joined:
    Jun 13, 2010
    Messages:
    8,091 (3.23/day)
    Thanks Received:
    2,240
    Location:
    Pune
    big fan of C++

    <------------------------------right here
     
  16. syeef

    Joined:
    Jul 5, 2008
    Messages:
    287 (0.09/day)
    Thanks Received:
    68
    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.
     
  17. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    19,657 (6.31/day)
    Thanks Received:
    8,940
    Location:
    IA, USA
    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).
     
    Crunching for Team TPU

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