Monday, 7 December 2015

Apple's Swift programming language is now open-source and available on Linux


swift logo

It’s all about the servers

Don’t expect Linux to easily run those fancy new Mac OS X, iPhone, or iPad applications written in Swift. Those depend on various user interface libraries that aren’t being open-sourced. Just as when Microsoft open-sourced .NET, Apple isn’t open-sourcing the user interface bits required to bring existing desktop or mobile applications to other platforms.
Many servers run Linux, and it’s that market that Apple is targeting here. A developer could write both an app and the server-side code for an app in Swift, running that code on a Linux server. Open-sourcing the platform also allows developers to improve Swift and contribute those improvements back to Apple, which benefits.
That said, there doesn’t seem to be anything stopping the Linux community from taking this Swift code and running with it. It could be ported to other Linux distributions, and could even form the foundation for many Linux desktop applications in the future with some more work.
Swift could run on Windows and Android in the future, too. Apple probably won’t port it to other platforms itself, but other developers could now take that open-source code and do the work.