• How good is C# cross platform wise?
    29 replies, posted
I'm learning to program in C# with the O'Reilly book and I've been loving the language and .net so far. One thing that I'm concerned with is C# is it's cross platform support. How is programming C# in Mono? Can I still make cross platform 2D or 3D games that work on all platforms like OSX and Linux like with C++ and SFML?
C# is a language. It has implementations cross platform, but non-Microsoft implementations are questionable considering the amount of damage software patents may be able to do. Sure, program using Mono. But don't take it for granted, Microsoft might just shut it down.
The only program I have ever coded that did not work with mono used SlimDX and Vista/7 aero Glass. And all of it was coded in VS 2008 and ran fine using mono. Just compile often and test if everything is working fine.
[QUOTE=Jookia;26944294]C# is a language. It has implementations cross platform, but non-Microsoft implementations are questionable considering the amount of damage software patents may be able to do. Sure, program using Mono. But don't take it for granted, Microsoft might just shut it down.[/QUOTE] *dramatic music*
[QUOTE=Jookia;26944294]C# is a language. It has implementations cross platform, but non-Microsoft implementations are questionable considering the amount of damage software patents may be able to do. Sure, program using Mono. But don't take it for granted, Microsoft might just shut it down.[/QUOTE] Thats funny because Microsoft standardized the C# language and .net. Meaning their patents only cover implementation details. Good troll though
[QUOTE=Kylegar;26944437]Thats funny because Microsoft standardized the C# language and .net. Meaning their patents only cover implementation details. Good troll though[/QUOTE] Implementation details that may be infringed by Mono. And has MS' patent promise been tested in court yet? It's not worth thinking about this if you just want to write software, but if you're making say, your own Linux distro, it might be worth considering before shifting your main software to something based on Mono.
[QUOTE=Kylegar;26944437]Thats funny because Microsoft standardized the C# language and .net. Meaning their patents only cover implementation details. Good troll though[/QUOTE] This basically. Anyone who honestly thinks that Microsoft can sue mono has no idea what they are talking about. [editline]24th December 2010[/editline] [QUOTE=gparent;26944459]Implementation details that may be infringed by Mono. And has MS' patent promise been tested in court yet? It's not worth thinking about this if you just want to write software, but if you're making say, your own Linux distro, it might be worth considering before shifting your main software to something based on Mono.[/QUOTE] How so? The biggest complaint I've heard is winforms, which I can't see either (using p/invoke on winapi is lawsuit worthy?).
[QUOTE=Kylegar;26944437]Thats funny because Microsoft standardized the C# language and .net. Meaning their patents only cover implementation details. Good troll though[/QUOTE] C# 3.0 and 4.0 aren't standardized. Mono implements both and defaults to C# 4.0.
it's ok. you would be better off learning C
Learn C if you aren't a pussy.
[QUOTE=Matthew0505;26946772]It's cross platform for anything that isn't Windows-only (eg. DirectX). Ignore the trolls[/QUOTE] depends on how wide your cross-platform is. if you're just doing windows osx linux it's fine, but if you're branching out into beos, plan 9, bsd, minix, etc. then you're going to want to use C
I wouldn't say so, considering no one cares about those platforms. But for libraries or servers it can matter.
[QUOTE=gparent;26946968]I wouldn't say so, considering no one cares about those platforms. But for libraries or servers it can matter.[/QUOTE] Uhh... lots of people care about BSD and all those. I'd sooner write an application for BSD that I would windows.
yes 0.1111111% of the internet
[QUOTE=Jookia;26944294]Sure, program using Mono. But don't take it for granted, Microsoft might just shut it down.[/QUOTE] Sure, use HTTP. But don't take it for granted, Tim Berners-Lee might just shut it down.
[QUOTE=PvtCupcakes;26947482]Uhh... lots of people care about BSD and all those. I'd sooner write an application for BSD that I would windows.[/QUOTE] Yeah, the gaming community on BSD is HUGE man! [QUOTE=Combino;26949088]Sure, use HTTP. But don't take it for granted, Tim Berners-Lee might just shut it down.[/QUOTE] That may look like a Zing or an actual counter, but it is in fact just a terrible, terrible analogy.
[QUOTE=Combino;26949088]Tim Berners-Lee[/QUOTE] He wrote HTTPd, not the protocol. Not to mention that it was released under an open source license. Awful analogy.
[QUOTE=q3k;26956178]He wrote HTTPd, not the protocol. Not to mention that it was released under an open source license. Awful analogy.[/QUOTE] Not to mention the fact that he probably isn't known for being consistently evil, unlike Microsoft.
Or declared themselves an enemy of Linux and the GPL. Both which Mono uses.
Ok, but what about 2d graphics libraries for Mono? There is SFML for C++, is there any equivalent on Mono?
There's OpenTK for cross-platform audio, graphics, input and windowing. It can pretty much do what SFML does.
Or, you know, SFML.NET
SFML.NET is great. Make sure to use the latest nightly build though. Despite what it says on the page, it's actually extremely stable. I only ever encountered one major bug and I worked with Laurent to fix it in a matter of a week.
Laurent's awesome. He helped me through the headache of SFML audio.
If I want to make a game in 3D with OpenTK am I out of luck? Would it probably be too slow in terms of performance to program a engine purely in C#?
It it is properly coded, I would expect it to run just fine. JIT compilation will convert the bytecode into native code, so no problems there. I think you should take some care of memory-usage though.
[QUOTE=geel9;26975568]Laurent's awesome. He helped me through the headache of SFML audio.[/QUOTE] [img]http://ahb.me/1hNK[/img]
[QUOTE=pro ruby dev;27012059][img_thumb]http://ahb.me/1hNK[/img_thumb][/QUOTE] I'm not going to bother explaining that. [editline]28th December 2010[/editline] Although that's not even the headache I was talking about.
Sorry, you need to Log In to post a reply to this thread.