News for hackers. Stuff that matters.
Re:“Swift will be open source later this year” by bachmeier on Monday June 08, 2015 @02:31PM (#9681151)
> Swift will be open source later this year, available for iOS, OS X, and Linux.

They're doing Linux but not Windows? Is Windows not sufficiently important or maybe they just forgot to include Windows in the announcement?

Re:“Swift will be open source later this year” by kristofferR on Monday June 08, 2015 @02:33PM (#9681169)
They don't just forget stuff like that. It was probably way easier to do on Linux/Unix than Windows.
Re:“Swift will be open source later this year” by astrodust on Monday June 08, 2015 @04:01PM (#9681963)
POSIX to POSIX is way easier to get production ready than porting to the Windows API.
Re:“Swift will be open source later this year” by garretraziel on Monday June 08, 2015 @02:36PM (#9681192)
It's perhaps because Linux is (almost) POSIX compliant, but Windows is not? It would make porting to Linux far more easier than to Windows.
Re:“Swift will be open source later this year” by fleitz on Monday June 08, 2015 @02:42PM (#9681245)
Technically it's the reverse, Windows is POSIX compliant, and Linux is almost compliant. However, the non-posix features liunx provides makes it easy to port from the various *nixes where as Windows precise POSIX compliance ensures virtually nothing runs unless the app is written purely to the POSIX spec.
Re:“Swift will be open source later this year” by garretraziel on Monday June 08, 2015 @02:54PM (#9681356)
Windows is POSIX compliant? I didn't knew that. But in my defense, wikipedia article states [1] that it was marked as deprecated in Windows 8 and it was removed in Windows 8.1.

[1] http://en.wikipedia.org/wiki/Windows_Services_for_UNIX

Re:“Swift will be open source later this year” by be5invis on Monday June 08, 2015 @02:34PM (#9681172)
Maybe it is just because WINAPI is different from *nix.
Re:“Swift will be open source later this year” by fixermark on Monday June 08, 2015 @02:42PM (#9681260)
As easy as it is to ignore the difference in these days of cross-platform development toolchains and environments, they still are very different operating systems under-the-hood. As opposed to OSX and Linux, which are both rooted in a UNIX past and therefore have some shared assumptions about how things like a directory structure and process management are supposed to work.
Re:“Swift will be open source later this year” by mercer on Monday June 08, 2015 @02:35PM (#9681188)
That's a good point. It was probably easier to port it to Linux. I can't see why they would intentionally avoid Microsoft (at least not at this point in their history).
Re:“Swift will be open source later this year” by lukeh on Monday June 08, 2015 @02:57PM (#9681368)
Maybe MS will do it given they're porting ObjC.
Re:“Swift will be open source later this year” by cmyr on Monday June 08, 2015 @03:17PM (#9681529)
MS will almost definitely do it. They've mentioned (maybe off the record) that they were looking into it, and this should seal the deal.
Re:“Swift will be open source later this year” by philoushka on Monday June 08, 2015 @06:11PM (#9682821)
Swift + .NET Framework would be interesting
Re:“Swift will be open source later this year” by oddevan on Monday June 08, 2015 @04:00PM (#9681953)
My guess is they're using Linux in their datacenters and want to be able to write programs for them in Swift. That, or they figured that's where all the "Open Source" action is going to be/an "Open Source" language without Linux support is useless.
Re:“Swift will be open source later this year” by pjmlp on Monday June 08, 2015 @02:52PM (#9681333)
Windows already has F# and compilation to native code via NGEN, MDIL and .NET Native.

Swift won't bring much anyway.

Re:“Swift will be open source later this year” by mwcampbell on Monday June 08, 2015 @03:34PM (#9681698)
I disagree. Swift and its accompanying libraries are designed for automatic reference counting rather than tracing garbage collection. I think that's a big deal for mobile apps (see Drew Crawford's take on GC in mobile apps, http://sealedabstract.com/rants/why-mobile-web-apps-are-slow...). In that light, Swift projections for WinRT would be great.
Re:“Swift will be open source later this year” by pjmlp on Monday June 08, 2015 @03:46PM (#9681809)
I know that post pretty well.

Swift only has reference counting because it made sense as the language shares the Objective-C runtime.

Objective-C only got ARC because Apple never managed to make their GC work properly without crashes in the context of Objective-C code, given its C underpinnings.

CS literature is full of examples on how to achieve performance comparable with GC with reference counting, the solution ends up being a mini-GC anyway. And reference counting cannot compete with GC implementations in lock free algorithms, even with deferred counting.

Re:“Swift will be open source later this year” by s73v3r on Monday June 08, 2015 @06:38PM (#9682967)
Well, they do use Linux on their backend. I'm guessing they needed OS X and Linux support, so that's what they contributed. Let someone else do the Windows support.