Swift Programming Language is developed by Apple. Another Swift Language exists, which is an implicitly parallel programming language. The later Swift parallel scripting language is an easy way for parallel scripting on multicores, clusters, cloud and supercomputers. The later Swift, is implicitly parallel, means that the program statements will automatically run in parallel unless there is a data dependency between them, given sufficient computing resources. In this article, we are talking about Swift Programming Language developed by Apple. One can visit the official website of the Swift implicitly parallel language here :
1 | http://swift-lang.org |
Uncannily, another Swift exists – OpenStack Swift, although not a programing language.
Basics of Swift Programming Language
Development on Swift began in 2010 by Apple. On June 2, 2014, the WWDC app became the first publicly released app written in Swift. Swift is a programming language intended for UNIX based Apple branded OS – iOS and OS X. It is primarily designed to coexist with Objective-C and to be more resilient against erroneous code. It is built with the LLVM compiler included in Xcode 6 beta.
Swift is kind of innovative new programming language for Cocoa and Cocoa Touch. Writing code is interactive, the syntax is concise yet expressive and apps run faster. Swift is ready for either your next iOS and OS X project or for addition into your current app ” because Swift code works side-by-side with Objective-C.
---
A 500 paged manual on The Swift Programming Language is available on the iBooks Store for free :
1 | https://itunes.apple.com/gb/book/swift-programming-language/id881256329?mt=11 |
Chris Lattner worked for Apple since 2005, holding a number of different positions over the years. He started working on the Swift Programming Language in July of 2010 and implemented much of the basic language structure.
Basic Coding Part of Swift Programming Language
We™ve used Objective-C for 20 years, and we love it. But we wondered what we could do without the baggage of C.
– Craig Federighi, at WWDC
We can use Swift with Xcode in a Makefile-based project :
1 | https://github.com/jaz303/swift-cli |
A test snippet will look like this :
1 2 3 4 5 6 7 8 9 | var str = "Hello, playground" var foo = "Hello"; let bleem = "Moose"; var baz = [1,2,3]; println("test!"); |
An implementation of Flappy Bird in Swift for iOS 8 can be seen here :
1 | https://github.com/fullstackio/FlappySwift |