Category Archives: Swift

Apple opens sources Swift programming language

Apple SwiftApple has made its Swift programming language open source in a bid to invite more contributions from developers.

According to Apple community website 9to5Mac, developers have been reluctant to commit to a relatively new language whose code base may disappear at the whim of its monopolist owner. Though it was only introduced in 2014, Swift is the fastest growing programming language in history. According to analyst Redmonk’s Programming Language Rankings, June 2015 report, Swift has “the performance and efficiency of compiled languages and the simplicity and interactivity of popular scripting languages”.

As an open source language, Apple said, a broad community of developers from education institutions to enterprises could contribute new Swift features and help bring it to new computing platforms.

The Swift open source code is available via GitHub and includes support for Apple’s iOS, OS X, watchOS and tvOS software platforms as well as Linux. Components available include the Swift compiler, debugger, standard library, foundation libraries, package manager and REPL. Swift is licensed under the Apache 2.0 open source license with a runtime library exception, meaning users can incorporate Swift into their own software and port the language to new platforms.

In support Apple has published a web site, Swift.org, which explains Swift open source with technical documents, community resources and links to download the Swift source code.

“Swift’s power and ease of use will inspire a new generation to get into coding and take their ideas anywhere, from mobile devices to the cloud,” said Craig Federighi, Apple’s senior VP of Software Engineering, “By making Swift open source the entire developer community can bring it to even more platforms.”

Apple’s Swift team has now posted source code for the Swift compiler and standard library functions and objects.