Swift

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
Line 7: Line 7:
 
'''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''' (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) 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.

Revision as of 18:39, 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) 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.

In December 2015, Swift was made open-source.

References

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox