What is "swift"
Swift is a programming language for applications and systems introduced by Apple at the WWDC conference in June 2014 and distributed as open source. The language Swift uses the LLVM compiler that translates Swift bitcode into native language. Supports object-oriented and functional development models. Swift interopera with objective-c and Cocoa/Cocoa-touch Apis to osx, Ios, tvos from Apple and also to the operating system watch them.
Please use tag openstack-Swift for issues related to Openstack’s Object/blob store, and the tag Swift-scripting for issues related to Parallel scripting language.
Swift promises to modernise the development experience on objective-c providing features such as:
- generic
- error handling
- type security
- type inference
- "namespaces"
- improved safety (stack overflow protection, use before startup, etc.)
- functional programming elements (map, filter, extensions)
among others.
The syntax of Swift maintains some elements of objective-c, offering an extensive new vocabulary for its new features, plus it is familiar and has structures similar to several modern languages such as, Rust, Haskell, Ruby, Python, C#, CLU, Javascript, Java, offering a short learning curve for programmers of these languages.
The language can use existing frameworks in Ios and osx, as Cocoa and Cocoa-touch, and can be used in conjunction with objective-c in applications. Applications Swift are compiled in standard binary and can be run in osx 10.9 or more, Ios 7 or higher, tvos and watch them.
Swift 2.0 was introduced by Apple in the WWDC on June 8, 2015. They added new features like the "error handling model" with do
, try
, catch
and throw`.
IBM was the first company to develop a browser-based Swift Sandbox.
Swift Open Source
Recently (December 2015) Apple announced the Swift Language as Open Source and the website is https://swift.org. In this site you can find general information about the language but also some useful links to:
- BLOG
- DOWNLOAD AREA
- GETTING STARTED Guide
- Reference documentation
- Source Code
- Swift community
- Ways to Contribute
There are also links to the following Projects:
- COMPILER & STANDARD LIBRARY
- PACKAGE MANAGER
- CORE LIBRARIES
- REPL AND DEBUGGER
This last one very interesting, because with REPL integrated to Debugger we have a Playground to play on the console integrating with the Runtime environment in a very sophisticated way.
Apple provides Swift documentation in the references below:
References
- Introduction to Swift
- The Swift Tour
- Welcome to Swift.org
- Using Swift with Objective-C
- Swift Blog by Apple
- Swift Resources
Books
- The Swift Programming Language (iBooks)
- Swift Standard Library Reference
- Using Swift with Cocoa and Objective-C (iBooks)