Apple has announced to open source their one-year-old programming language Swift. They declared it at the WWDC (World Wide Developer Conference) in San Francisco earlier in June this year. Apple’s Senior VP of Software Engineering, Craig Federighi announced it and the audience received it with a large applause.They consider Swift as the next big programming language and it will be able to support the programming chapter for the upcoming 20 years in a seamless manner. They thus, have made Swift an open source. Launched in the previous year, Swift is the successor of Objective-C. it has introduced the new way to code for Cocoa and Cocoa Touch.
Objective-C relied on those pointers, but Swift compiler infers the variable type. Along with that, they keep the features well defined such as with name space, generics and operator overloading.
Swift 2, the latest version will be helping developers to build apps for iOS, OS X, and watchOS. Even Apple has said about the plans of launching OSI-approved permissive license. The company is going to contribute for OS X, iOS, and Linux and the source code will have Swift compiler and standard library. The beta is going to be here by this fall season.
You will find a new optimization technology in Swift 2 called whole module optimization. There are long list of improvements since the release and includes better error handling processes, with unified keyword naming rules for various function. It also has various protocol extensions, default implementations, and extends the pattern matching. Developers can view the interface headers synthesized in Xcode.
Why Apple open source their Swift language? The Senior VP says that Apple wants to accelerate adoption and broaden the language reach to other platforms as well. They want to realize the degree to which open source has become an important mark of the shifting strategy. Swift in open source begins with the process of ecosystem building, which is a process to help java grow significantly in the recent years.
Federighi says that apps written Swift has reached the App Store and is gaining traction among mobile application developers. According to TIOBE Software's Objective-C is going into freefall, as they have started to lose hold in the market share. 77.6 percent of developers have shown interest in developing app with Swift language. Thus, Apple presumes that the new language will be able to co-exist with Objective-C in the same projects.