So... what's so great about C#?
benchmark is completely useless because mono is slow. it doesnt show real c# speed. about faster memmory allocation i read somewhere in MSDN. and with that example i dont want to proof that c# is better than c++. take a look at www.lineage2.com, there server is written in c++ and runs on Windows Server OS, not linux. server is capable to hold 5000 players with no lag. i just wanted to proof that c# is not that poop like most of us think. Sure it has disadvantages, but it has a lot advantages too. Now it depends on developer what he wants to use. Capabilities are equal (if we dont take crossplatform in account). You know, i was thinking about starting to program in c# but old habbits hard to destroy...
And somehow c++ doesnt look to me so difficult no matter that im just beginner. i know one thing, c# is not our future, neither is c++. I think that some linux - lovers will start new project one day and that new programming language will have capabilities of both, c++ and c# and it will be crossplatform.
It's not about which language is _better_ anyway :-) Every language is better in some tasks than another language. It's always about finding out which language is better suited for a certain task.
And i don't expect c# to be slow. It's for example most likely fast enough for programming most games. Still there will be certain cases where you want to squeeze out the additional few percentages of speed with c++ which you won't get with c#. And i had already situations in game programming where i actually did spend 1-2 days just to optimize some function because it was worth it. For example in pathfinding you will sometimes fight for every millisecond ;-)
And i don't expect c# to be slow. It's for example most likely fast enough for programming most games. Still there will be certain cases where you want to squeeze out the additional few percentages of speed with c++ which you won't get with c#. And i had already situations in game programming where i actually did spend 1-2 days just to optimize some function because it was worth it. For example in pathfinding you will sometimes fight for every millisecond ;-)
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
I don't think the C# language is any better than C++. Some users say that C# delegates and event "wiring" are nice, but C++ fundamentally has the same thing, as seen in toolkits such as QT and wxWidgets. There are C++ features which don't even exist in C#, such as Templates. The only thing that attracts some programmers to using C# is the platform(.NET) which includes complete libraries and managed code.Hilco wrote:I think C# is nice, as in grammatically. The speed - as far as I've seen - is fairly nice, but that's about where it ends. What ruins it for me is that C# is more or less bound to .NET/Mono, of which I'm not overly fond.
Perhaps I'll write a native C# compiler one day (if no-one writes a free one).
