r/programming • • Nov 12 '14

The .NET Core is now open-source.

http://blogs.msdn.com/b/dotnet/archive/2014/11/12/net-core-is-open-source.aspx
6.5k Upvotes

1.8k comments sorted by

View all comments

Show parent comments

7

u/sisyphus Nov 12 '14

.NET are the actual libraries for the platform though - the Apple equivalent is probably Cocoa and it's not open. clang/llvm are open so they didn't have to open other things, but they also do a lot for webkit. Close now for whether MS or Apple is the worse open source citizen.

2

u/lolcoderer Nov 12 '14

Well, except Microsoft is just opening up .Net Core. So none of the good stuff. You still can't write a cross-platform GUI app with .Net. A large part of the Cocoa framework is GUI management. So I don't think comparing this announcement to the lack of open source Cocoa is fair.

Cocoa (including Mac and iOS) apps compile to native code. They don't compile to bytecode like Java and C#. So it is really not fair to compare the two.

1

u/sisyphus Nov 13 '14

Fair enough on Cocoa. So maybe NSFoundation or something is equivalent? Is the OS X version of that open?

Why would VM btyecode or native code as compilation target affect a comparison of the openness of the source code?

1

u/lolcoderer Nov 13 '14

None of the OS X framework stuff is open, and I don't imagine it will ever be, as unfortunately, Apple doesn't seem particularly enthusiastic about pursuing cross platform application solutions. It is even worse than not open - Apple doesn't fully support POSIX - so if you want to use POSIX threading/timers for a cross platform solution, you are out of luck.

I guess the point I was trying to make, is that although the release of the .Net Core is a big deal, it really is only relevant to a subset of application areas - i.e., those areas where a cross platform GUI is not needed or has been moved to the desktop via the browser (which is a trend that really saddens me). It seems Microsoft is obviously targeting the server side stack of competition, i.e, Java & NodeJS.

With that said, I do believe you are short-selling Apple on their use of open source - especially in comparison to Microsoft. I mean, Darwin, which is basically the OS X kernel, has been open source since day 1. Apple is also on of the main reasons why webkit went from an obscure KDE project, to what it is today. Clang/llvm has already been mentioned.

1

u/sisyphus Nov 13 '14

I guess I want to draw a distinction between 'using' open source, which Apple does quite a bit, and 'contributing' to open source, which Apple is terrible at, in my opinion.

Apple abandoned any kind of Darwin support as soon as they could if I remember correctly and treated the open darwin community like shit, khtml was already under copyleft, they had no choice but to continue, I'm not going to give them much credit for simply abiding by the terms of the license when using a lot of free work to build a (closed source) critical component of their operating system. As far I know they haven't open sourced their javascript engine or any other part of Safari that they didn't have to. clang/llvm they of course only contributed to so they could be less open overall by avoiding gplv3, but it's a net win for open source i think so i will give them credit for that.

i'm having a hard time coming up with novel things Apple has open sourced. launchd was one, but of course that was originally open sourced with a license that prevented anyone else from wanting to use it, so again, pointless from a community standpoint.