Swift is a compiled, general-purpose programming language created at Apple and released publicly in 2014, with its compiler, standard library and core tools open-sourced in December 2015 under the Apache 2.0 licence with a Runtime Library Exception. It was designed by Chris Lattner and the LLVM team as a replacement for Objective-C that keeps the performance and low-level control of a compiled language while removing the memory-management and header-file friction: automatic reference counting, value types, optionals and type inference are part of the language rather than add-ons. Since the open-sourcing, the project (swiftlang/swift, formerly apple/swift) has grown into a portable toolchain that builds and runs on macOS, Linux distributions (Ubuntu, Debian, Fedora, Amazon Linux, RHEL UBI) and Windows, with the current release 6.4.2.
let bindings are immutable.async/await, structured concurrency with task groups, and actor isolation give compile-time-checked data-race safety (Swift 6 enforces it).swift build, swift test, swift run, with manifests written in Swift itself.@objc/@c annotations for bridging into existing codebases.swift format handles style.Swift is the rare language that is both pleasant to write and genuinely fast. Its type system catches the classes of bug that cost the most debugging time — null dereferences, unhandled errors, mutable state shared across threads — at compile time, while ARC means no manual memory management and no garbage-collector pauses. Because the toolchain is open source and portable, code written on a Mac builds and runs unchanged on a Linux server: the same language is used for iOS and macOS apps, for backend services (Vapor, Hummingbird, SwiftNIO), for command-line tools and for scripting. The 6.x series added a fully checked concurrency model, so multithreaded code that compiles is data-race free by construction — something few other mainstream languages can claim.
Install the toolchain from swift.org/install — the platform installers cover macOS (Xcode or the standalone toolchain), Ubuntu, Debian, Fedora, Amazon Linux, RHEL UBI and Windows — or pull the official swift Docker image for Linux. Check the install with swift --version, start an interactive session with swift repl, and run a file with swift hello.swift. For a real project, run swift package init --type executable inside an empty directory to scaffold a package with a Package.swift manifest, then swift run builds and executes it and swift test runs the tests. On Linux, swift build -c release --static-swift-stdlib produces a self-contained binary that needs no Swift runtime on the target machine.