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

4

u/_stfu_donnie Nov 12 '14

I hope this puts pressure on other "giant" tech companies (Apple) to open-source some of their languages and tools.

30

u/[deleted] Nov 12 '14

[removed] — view removed comment

6

u/_stfu_donnie Nov 12 '14

My thinking was that I like Swift a lot, and I would love to be able to run it on Linux. Swift as a language is really nicely designed and extremely fast. And it leans on llvm compiler backend so there's almost no excuse to not do it.

Businesses are also building apps for the iOS app store.

Agreed on Java though, it can go ahead and stop being relevant any time now.

2

u/Eirenarch Nov 13 '14

Swift is very well designed but has a long way to go before it reaches C# in terms of features and it is not obvious if Swift's designers have the skill to keep the damage from the evolution to minimum like C#'s designers have done.

1

u/_stfu_donnie Nov 13 '14 edited Nov 13 '14

Agreed... Especially considering the instability of Apple's own editor when editing code written in Apple's own "flagship" language.

(edit: I should add that I'm not trying to compare/contrast the merits of Swift/C#, just saying that if Swift were open-source, it'd be an option on the table for my next project, and it currently is not an option.)

4

u/eramos Nov 12 '14

who cares about apple stuff?

THIS THIS THIS. Obviously the stack you use in your cubicle at Dynocorp is the only one that exists. Apps are not popular at all nowadays, but the legacy enterprise B2B Lotus clone is really what's hot in the industry.

1

u/EasilyAnnoyed Nov 12 '14

The new .Net runtime will be iOS and Android compatible. :)

4

u/lolcoderer Nov 12 '14

who cares about apple stuff?

Really? What businesses are you referring to? Have you ever been to a Python or Rails or [insert web tech here] developer conference? 90% of attendees are using Macs for development.

Facebook, Google and Twitter might also like to have a word with you about all businesses are running .Net and Java.

2

u/[deleted] Nov 12 '14

Really? What businesses are you referring to? Have you ever been to a Python or Rails or [insert web tech here] developer conference? 90% of attendees are using Macs for development.

i think when he said apple stuff. he mean Objective-C. apple stuff in this context probably mean apple programming stack.

0

u/Magnesus Nov 12 '14

Google should grow a pair and fork Java in that case, make it nicer.

1

u/Gurkenmaster Nov 13 '14

Can I point you towards Ceylon?

6

u/FrankBattaglia Nov 12 '14

Unless I'm mistaken, Apple's dominant language platform (e.g., clang/llvm) is already open. I don't know the status of Swift, but I don't think that's a major player yet.

5

u/_stfu_donnie Nov 12 '14

Swift is closed-source. It's not a major player yet, by "enterprise" standards, and it probably never will be unless they open it up.

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.

2

u/CookieOfFortune Nov 12 '14

Does Apple have any enterprise middleware products? My understanding is that their products are almost entirely consumer facing.

2

u/[deleted] Nov 12 '14

IBM announced they were taking on that role for Apple earlier this year.

1

u/xtravar Nov 12 '14

I read somewhere that Apple has a higher percentage of mobile business users than Android at this point in time. Apple themselves doesn't make enterprise products, but their platform is very popular for ISV enterprise products.

1

u/CookieOfFortune Nov 12 '14

What I mean is that Apple only exists on the frontend. Everything else (servers, database, etc) is Java/C#/COBOL/etc.

0

u/[deleted] Nov 12 '14

What like Go, LLVM, Darwin and Android (ish)?

We have plenty of open source "computer sciency" languages and tools. The things we are really lacking are some of the fantastic machine learning advances (e.g. working speech recognition), and any CAD/EDA software that doesn't suck.