Page 1 of 2 12 LastLast
Results 1 to 10 of 28

Thread: C#

Hybrid View

  1. #1
    Join Date
    Dec 2004
    Location
    Chicago, IL
    Posts
    122

    C#

    i seem that C# is a lot easier language and u can control more stuff too but why a lot ppl are still aiming for C++? i love C++ for a long time and it is so hard. anyone have anything to say about it?
    Maya, 3DS Max, Flash, Photoshop User
    html, php, vb, c/c++ coder

    Pround to know 3DBUZZ! and Thanks BUZZ!

  2. #2
    Join Date
    Oct 2004
    Location
    Nova Scotia, Canada
    Posts
    1,425
    will the only real reason why alot of people like still using c++ because it's still a little bit faster then C#.. and it can also be ported easy over to ther Operating plateforums..

  3. #3
    Join Date
    Dec 2004
    Location
    Wisconsin
    Posts
    1,424
    C# is a wonderful language. However, there are a few things that are holding it back from taking over C++.

    First, it is not as mature as C++. C++ is going on 20 years old (I think it was created in 1987). C++ is devrieved from C which was from back in the early 70's (I'm guessing '72) - and was derieved much more directly than C# from C++. C# on the other hand, has only been around for about 5 years - and only has had a significant push in the last 3 years or so.

    Simply put, professionals don't have time to learn every new language that happens to be popular at the moment. It takes years for a lot of people to recognize a language after it has "come of age". Even then, it's hard to get people to move from something they are comfortable with, to something new. That process itself is a huge effort in itself - consuming valuable time that they could be doing good work in their "native" language.

    In my opinon - C# hasn't yet matured. This is mostly because of the .NET platform. The last few years, Microsoft has changed the .NET platform, significantly. The C# language itself is about to undergo a new version, bringing with it a lot of new changes. These major changes signify that C# and the .NET platform haven't yet reached it's full potential. Once it does reach that stage, I think there will be a large shift - you can actually see it start right now; just search monster.com for C# coders vs C++ coders, there aren't as many postings, but the C# salaries are higher - which would indicate a higher demand and lower supply.

    Both you and sn4k36 seem to have a few notions that aren't quite right though.
    Quote Originally Posted by bangquach
    i seem that C# is a lot easier language and u can control more stuff ...
    As for it being easier, this is subjective - I'd agree, but some won't. As for it "being able to control more stuff" this is just plain wrong. You will never be able to write an operating system in C#, nor device drivers (well maybe drivers, but it wouldn't be the proper tool), you most likely wouldn't use it if you were programming micro controllers for a car manufactor's robot. There are different languages for a reason - no one language can do it all, so use the proper tool for the job

    As for
    Quote Originally Posted by Sn4k36
    .. and it can also be ported easy over to ther Operating plateforums..
    I'm not sure what you mean.. if you're saying C++ is easier to port, I'd have to disagree. C++ is notorious for being difficult to port. The open source movement is helping bridge that divide by providing cross-platform libraries and such, but there is still a lot of work to be done to port a project 100%. C# will port to any platform that the .NET platform (or equivalent) can run on very easily. Mono - a port of the .NET platform for linux, mac, and a bunch of other systems is well on it's way to being completed. Once that is done, or mostly done, C# programs will be very easy to port - there could be a good chance that you needn't change a line of code!

    These C# vs C++ threads really can be summed up in 8 words: Use the proper language for the proper projects.






    This insanely long post is brought to you by the girl who stood me up tonight!

  4. #4
    Join Date
    Sep 2004
    Location
    The Netherlands
    Posts
    1,027
    Quote Originally Posted by ChadStout
    You will never be able to write an operating system in C#,
    Have to correct you there, it is possible to write Operating systems in C#. Some time ago they succeeded in writing and compiling a working kernel written in C# @ the Microsoft research lab. I'll do a search for the news, I believe the kernel was called something like 'singletary'.

    Edit: Found it. It's called Singularity. It's an operating system written in C# and a C#-derivative called Sing# (now where did that name come from ).

    http://research.microsoft.com/os/singularity/
    http://www.microsoft-watch.com/artic...1882174,00.asp
    Last edited by trebster; 03-12-2006 at 04:01 AM.

  5. #5
    Join Date
    Dec 2004
    Location
    Wisconsin
    Posts
    1,424
    Quote Originally Posted by trebster
    Have to correct you there, it is possible to write Operating systems in C#. Some time ago they succeeded in writing and compiling a working kernel written in C# @ the Microsoft research lab. I'll do a search for the news, I believe the kernel was called something like 'singletary'.

    Edit: Found it. It's called Singularity. It's an operating system written in C# and a C#-derivative called Sing# (now where did that name come from ).

    http://research.microsoft.com/os/singularity/
    http://www.microsoft-watch.com/artic...1882174,00.asp

    Sorry mate, I believe only the kernel is written in C# - all the really low stuff is either assembly or C/C++.

    Quote Originally Posted by wikipedia
    Singularity is a Microsoft Research project to build a highly-dependable operating system in which the kernel, device driver, and applications are all written in managed code.

    The lowest-level x86 interrupt dispatch code is written in assembly language and C. Once this code has done its job, it calls the kernel, whose runtime and garbage collector are written in C# and run in unsafe mode. The hardware abstraction layer is written in C++ and runs in safe mode. There is also some C code to handle debugging. The computer's BIOS is only called during the 16-bit real-mode bootstrap stage; once in 32-bit mode, Singularity never calls the BIOS again, but rather calls device drivers written in C#. During installation, CIL opcodes of the C# kernel are compiled into x86 opcodes using the Bartok research project. Bartok is an optimizing compiler written in C# for translating CIL into x86.

    There has been no mention of releasing the source code or binaries.

  6. #6
    Join Date
    Sep 2004
    Location
    The Netherlands
    Posts
    1,027
    My bad, didn't read all of it, thought all of it was written in C#.

  7. #7
    Join Date
    Oct 2005
    Location
    Australia
    Posts
    753
    Quote Originally Posted by bangquach
    i seem that C# is a lot easier language and u can control more stuff too but why a lot ppl are still aiming for C++? i love C++ for a long time and it is so hard. anyone have anything to say about it?
    Q. How many operating systems are written with C# compared to C/C++.


    A. Not sure, but I suspect zero vs almost all.
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  8. #8
    Join Date
    Dec 2004
    Location
    Wisconsin
    Posts
    1,424
    Quote Originally Posted by wozdac
    Not sure, but I suspect zero vs almost all.
    Wouldn't it be impossible? C# is essentially an interprated language, the OS would have to have an interprater before a C# program could run - kind of a chicken and egg thing. It would be the same with Java..

    Although I've heard that theoretically it can be done, I'm 99% sure it hasn't

  9. #9
    Join Date
    Dec 2004
    Location
    Mexico
    Posts
    106
    Quote Originally Posted by ChadStout
    Wouldn't it be impossible? C# is essentially an interprated language, the OS would have to have an interprater before a C# program could run - kind of a chicken and egg thing. It would be the same with Java..

    Although I've heard that theoretically it can be done, I'm 99% sure it hasn't
    Both C# and Java programs run on a virtual machine which is in a sense its own operating system which runs on top of an operating system in order to give it platform independance.

    C# is essentially Microsofts own kind of Java. Microsoft originally made a propriatary version of Java called J++, Sun Microsystems sued MS for making an unauthorized copy of Java, and so MS developed their own Java like language which became C#.

    I havent used C# but Ive heard it is practically identical to Java. I think Java is a good language to learn for beginners because it leaves out a lot of low level features like pointers which confuses beginners. It also forces the programmer to use OOP all the time instead of only when you think you need it like C++. I think it is also good to learn game programming with because it eliminates a lot of the propriatary interface code each OS requires for it to run . And it has things like graphics and networking funtions integrated into the language itself instead of seperate librarys. But as everyone has said, it is just not as fast or powerfull as C++.

  10. #10
    Join Date
    Oct 2005
    Location
    Australia
    Posts
    753
    Quote Originally Posted by ChadStout
    Wouldn't it be impossible? C# is essentially an interprated language...
    Real men, like myself, program in binary machine code.

    01001010
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •