This is an old version, saved 4 Dec 2026, 18:30 by TechWritereditor. It is the current version.
Swift (programming language)
Swift is a general-purpose, compiled programming language developed by Apple for building software for its devices, and later released as Open-source software.[1] It was designed to be safer than languages based on C (programming language) while still running quickly.[4]
History
Apple unveiled Swift on 2 June 2014 during the keynote at its WWDC developer conference in San Francisco, where software chief Craig Federighi described it as "Objective-C without the baggage of C".[2] Chris Lattner, who had earlier created the LLVM compiler project, led the work and said he began designing the language in July 2010.[3][2] Lattner listed Objective-C, Rust (programming language), Haskell (programming language), Ruby (programming language) and Python (programming language) among the languages that influenced it.[3]
On 3 December 2015 Apple published Swift's source code under the Apache 2.0 licence and launched the Swift.org website.[1] The release included the Compiler, debugger, standard library, package manager and an interactive prompt, and supported Linux as well as Apple's own systems.[1] Apple described Swift at the time as the fastest-growing programming language in history, citing industry rankings.[1]
How it works
Swift is compiled ahead of time into machine code, using a compiler built on LLVM.[2] It supports object-oriented and functional styles of programming, including closures, generics and type inference, and simple programs need very little extra code.[2] Its syntax is meant to rule out whole classes of common programming errors, and memory is managed automatically.[1][4] Swift code can be mixed with existing Objective-C code in the same program.[2] At launch Apple also showed "playgrounds", which let programmers see the results of their code as they type it.[2]
Use today
Swift is used to write apps for iOS, macOS, watchOS, tvOS and visionOS.[4] The open-source project, run by a core team and community workgroups, also provides toolchains for Linux and Microsoft Windows, and supports cross-compiling for Android and WebAssembly.[4] An "Embedded Swift" mode produces small programs for microcontrollers.[4]
See also
References
- ^ Apple Releases Swift as Open Source. Apple. 2015-12-03. apple.com
- ^ Apple: We'll tailor Swift to be a fast new programming language. The Register. 2014-06-02. theregister.com
- ^ Apple's Swift programming language has been in the works for 4 years. Engadget. 2014-06-04. engadget.com
- ^ About Swift. Swift.org. swift.org