Swift (programming language)

Edit · View history

Swift (programming language)

Swift is a general-purpose, compiled programming language developed by Apple Inc. First introduced in 2014 at Apple's Worldwide Developers Conference (WWDC), Swift was designed as a modern alternative to Objective-C for macOS, iOS, watchOS, and tvOS development. It was later open‑sourced in 2015 under the Apache 2.0 license, extending its use to server-side and cross-platform programming.

Swift emphasizes safety, performance, and expressiveness. Its syntax is influenced by Rust (programming language), Python (programming language), and Ruby (programming language), and it incorporates features such as type inference, optional types, closures, and automatic memory management via Automatic Reference Counting (ARC). The language is designed to be both beginner‑friendly and capable of systems‑level tasks.

History

Development of Swift began in 2010 under the direction of Chris Lattner, then a senior engineer at Apple. The language was built on the LLVM compiler infrastructure, allowing high performance and seamless interoperability with C (programming language) and Objective‑C libraries.

Swift continues to evolve through the Swift Evolution process, an open community effort hosted at Swift.org.

Features

Swift includes several hallmark features that distinguish it from other languages:

Swift is used not only for Apple platforms but also for server‑side development (e.g., Vapor (web framework)), command‑line tools, and even embedded systems through the Swift for TensorFlow project (later evolved into Differentiable Swift).