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.09/day)
    Thanks Received:
    69
    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
  2. Frick

    Frick Fishfaced Nincompoop

    Joined:
    Feb 27, 2006
    Messages:
    10,792 (3.41/day)
    Thanks Received:
    2,349
    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.
     
  3. Aleksander

    Joined:
    Dec 2, 2009
    Messages:
    3,254 (1.82/day)
    Thanks Received:
    304
    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.09/day)
    Thanks Received:
    69
    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!!
     
  5. caleb

    Joined:
    Sep 15, 2004
    Messages:
    1,546 (0.42/day)
    Thanks Received:
    205
    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.
     
  6. Aleksander

    Joined:
    Dec 2, 2009
    Messages:
    3,254 (1.82/day)
    Thanks Received:
    304
    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,881 (4.92/day)
    Thanks Received:
    5,616
    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.
  8. MrSeanKon

    MrSeanKon New Member

    Joined:
    Nov 14, 2006
    Messages:
    267 (0.09/day)
    Thanks Received:
    69
    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 :)
     
  9. FordGT90Concept

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

    Joined:
    Oct 13, 2008
    Messages:
    13,798 (6.26/day)
    Thanks Received:
    3,682
    Location:
    IA, USA
    Crunching for Team TPU
  10. Aleksander

    Joined:
    Dec 2, 2009
    Messages:
    3,254 (1.82/day)
    Thanks Received:
    304
    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:
    13,798 (6.26/day)
    Thanks Received:
    3,682
    Location:
    IA, USA
    I've never encountered problems with memory management using C#.
     
    syeef says thanks.
    Crunching for Team TPU
  12. Aleksander

    Joined:
    Dec 2, 2009
    Messages:
    3,254 (1.82/day)
    Thanks Received:
    304
    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:
    13,798 (6.26/day)
    Thanks Received:
    3,682
    Location:
    IA, USA
    Last edited: Dec 28, 2012
    Crunching for Team TPU
  14. parelem

    parelem

    Joined:
    Jun 24, 2009
    Messages:
    228 (0.12/day)
    Thanks Received:
    50
    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:
    7,814 (4.90/day)
    Thanks Received:
    2,079
    big fan of C++

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

    Joined:
    Jul 5, 2008
    Messages:
    287 (0.12/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:
    13,798 (6.26/day)
    Thanks Received:
    3,682
    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)

Share This Page