Affiliate Disclosure
If you buy through our links, we may get a commission. Read our ethics policy.

Apple to open source Swift later this year with support for iOS, OS X, and Linux

Last updated

Apple on Monday announced that it would make its popular new Swift programming language open source, releasing the language and toolchains for iOS, OS X, and Linux.

Apple software chief Craig Federighi made the announcement during Monday's keynote at the company's annual Worldwide Developers Conference. It remains unclear how Apple will govern Swift development in the new open source model —  whether it will tend more toward the Darwin source or WebKit models — though more details are likely to emerge as the release nears.

At the same time, Federighi announced Swift 2, with numerous new features. Developers will be able to use Markdown in comments, pattern matching in "if," and synthesized "headers" in Xcode alongside other improvements like a faster runtime and shorter compile times.

Swift has grown extremely popular since its release one year ago, with thousands of App Store apps taking advantage of the new language. In April, it took the crown as the most-loved language among developers — some 78 percent of programmers currently working with Swift said they were eager to continue developing with it.

Swift 2 will be included in the iOS 9 beta, which will be available to registered developers later today.



73 Comments

thewhitefalcon 10 Years · 4444 comments

Microsoft is working on their own Swift compiler for Visual Studio, so I expect it will come to Windows but not right away.

ericthehalfbee 13 Years · 4489 comments

Just in time.

 

Now when Oracle puts the ban hammer on Java in Android (forcing Google to make Android Java compatible with Java and causing a huge problem for developers), they'll now have an alternative they can switch to.

 

Oh the irony if Android software was written using a language that Apple pioneered. I'm sure blood vessels would burst in countless haters brains.

netrox 12 Years · 1510 comments

As a developer, I am creaming my pants!

konqerror 12 Years · 685 comments

Quote:
Originally Posted by EricTheHalfBee 

 

Now when Oracle puts the ban hammer on Java in Android (forcing Google to make Android Java compatible with Java and causing a huge problem for developers), they'll now have an alternative they can switch to.

 

Google Go is older and and has much more cross-platform support at this point. Otherwise, they'd make their own language. Google loves developing nerdy backend stuff as much as Apple likes selling things. Swift is fundamentally designed to remain compatible with ObjC, Google would make something compatible with Java.