Swift

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
 
(4 intermediate revisions by one user not shown)
Line 5: Line 5:
 
|released=2014
 
|released=2014
 
}}
 
}}
'''Swift''' (no relation to [[OpenStack Swift]] or [https://en.wikisource.org/wiki/Tom_Swift_and_His_Motor_Cycle Tom Swift] or [http://www.youtube.com/watch?v=WA4iX5D9Z64 Taylor Swift]; and apparently also unrelated to the [http://swift-lang.org/ parallel scripting language Swift]) is a programming language announced by Apple in 2014 as a new language for use in developing apps for iOS or OS X. It is able to coexist with the previous main language for this use, [[Objective-C]], through the use of "bridging headers" that are read by both languages and allow classes from each language to be accessed from the other.
+
'''Swift''' (no relation to [[OpenStack Swift]] or [https://en.wikisource.org/wiki/Tom_Swift_and_His_Motor_Cycle Tom Swift] or [http://www.youtube.com/watch?v=WA4iX5D9Z64 Taylor Swift]; and apparently also unrelated to the [[Swift (parallel scripting)|parallel scripting language Swift]]) is a programming language announced by Apple in 2014 as a new language for use in developing apps for iOS or OS X. It is able to coexist with the previous main language for this use, [[Objective-C]], through the use of "bridging headers" that are read by both languages and allow classes from each language to be accessed from the other.
  
Swift appears to borrow syntax elements from a number of other programming languages. It uses curly braces to mark blocks like the [[C]] family of languages, but does not use semicolons between statements. Some other syntax and keywords resemble [[BASIC]] and [[Pascal]], among other languages. It also has an instant-gratification interpreted mode to try out program statements in real time, like [[Python]]; Swift (as implemented in the Xcode environment on OS X) has a "[[Xcode Playground|playground]]" to test out programming constructs without needing to build an entire app. An introductory book on the language can be downloaded free through iTunes, but in a format that is only readable on Apple devices.
+
Swift appears to borrow syntax elements from a number of other programming languages. It uses curly braces to mark blocks like the [[C]] family of languages, but does not use semicolons between statements (except when multiple statements are on the same line). Some other syntax and keywords resemble [[BASIC]] and [[Pascal]], among other languages. It also has an instant-gratification interpreted mode to try out program statements in real time, like [[Python]]; Swift (as implemented in the Xcode environment on OS X) has a "[[Xcode Playground|playground]]" to test out programming constructs without needing to build an entire app. An introductory book on the language can be downloaded free through iTunes, but in a format that is only readable on Apple devices.
  
People testing Swift (available as of June 2014 in a beta version of Xcode released to members of Apple's developer program) have found it to be something less than swift at some sorts of number-crunching; sorting a large array of integers, for instance, took much longer than in other languages including Objective-C and Python. This is possibly due to there not being as much optimization in the early beta version as may be present in a later release version, however.
+
People testing Swift (available as of June 2014 in a beta version of Xcode released to members of Apple's developer program) found it to be something less than swift at some sorts of number-crunching; sorting a large array of integers, for instance, took much longer than in other languages including Objective-C and Python. This was possibly due to there not being as much optimization in the early beta version as were present in later release versions. Since its initial release, Swift has gone through a number of revisions, some of which included changes that broke earlier Swift code.
 +
 
 +
In December 2015, Swift was made open-source.
  
 
== References ==
 
== References ==
Line 19: Line 21:
 
* [http://arstechnica.com/apple/2014/06/a-fast-look-at-swift-apples-new-programming-language/ A fast look at Swift, Apple’s new programming language]
 
* [http://arstechnica.com/apple/2014/06/a-fast-look-at-swift-apples-new-programming-language/ A fast look at Swift, Apple’s new programming language]
 
* [http://stackoverflow.com/questions/24101718/swift-performance-sorting-arrays Swift performance: sorting arrays]
 
* [http://stackoverflow.com/questions/24101718/swift-performance-sorting-arrays Swift performance: sorting arrays]
 +
* [https://swift.org/ swift.org: Open-source Swift site]
  
 
[[Category:Apple]]
 
[[Category:Apple]]

Latest revision as of 18:41, 21 February 2016

File Format
Name Swift
Ontology
Extension(s) .swift
Released 2014

Swift (no relation to OpenStack Swift or Tom Swift or Taylor Swift; and apparently also unrelated to the parallel scripting language Swift) is a programming language announced by Apple in 2014 as a new language for use in developing apps for iOS or OS X. It is able to coexist with the previous main language for this use, Objective-C, through the use of "bridging headers" that are read by both languages and allow classes from each language to be accessed from the other.

Swift appears to borrow syntax elements from a number of other programming languages. It uses curly braces to mark blocks like the C family of languages, but does not use semicolons between statements (except when multiple statements are on the same line). Some other syntax and keywords resemble BASIC and Pascal, among other languages. It also has an instant-gratification interpreted mode to try out program statements in real time, like Python; Swift (as implemented in the Xcode environment on OS X) has a "playground" to test out programming constructs without needing to build an entire app. An introductory book on the language can be downloaded free through iTunes, but in a format that is only readable on Apple devices.

People testing Swift (available as of June 2014 in a beta version of Xcode released to members of Apple's developer program) found it to be something less than swift at some sorts of number-crunching; sorting a large array of integers, for instance, took much longer than in other languages including Objective-C and Python. This was possibly due to there not being as much optimization in the early beta version as were present in later release versions. Since its initial release, Swift has gone through a number of revisions, some of which included changes that broke earlier Swift code.

In December 2015, Swift was made open-source.

[edit] References

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox