December 22, 2024

Apple Open Sources Its Swift Programming Language

Posted December 3, 2015 at 3:44pm by iClarified · 18947 views
Apple has just announced that its Swift programming language is now open source.

The company has launched a new swift.org website which provides a blog, documentation, downloads, and other material to help developers with Swift.

---
Welcome to Swift.org

Swift is now open source!

We are excited by this new chapter in the story of Swift. After Apple unveiled the Swift programming language, it quickly became one of the fastest growing languages in history. Swift makes it easy to write software that is incredibly fast and safe by design. Now that Swift is open source, you can help make the best general purpose programming language available everywhere.

For students, learning Swift has been a great introduction to modern programming concepts and best practices. And because it is now open, their Swift skills will be able to be applied to an even broader range of platforms, from mobile devices to the desktop to the cloud.

Welcome to the Swift community. Together we are working to build a better programming language for everyone.

– The Swift Team
---



Apple has separated the code for the Swift project into several open-source repositories, all hosted on GitHub.

Compiler and Standard Library
● swift: The main Swift repository, which contains the source code for the Swift compiler, standard library, and SourceKit.
● swift-evolution: Documents related to the continued evolution of Swift, including goals for upcoming releases proposals for changes to and extensions of Swift.

Core Libraries
● swift-corelibs-foundation: The source code for Foundation, which provides common functionality for all applications.
● swift-corelibs-libdispatch: The source code for libdispatch, which provides concurrency primitives for working on multicore hardware.
● swift-corelibs-xctest: The source code for XCTest, which provides fundamental testing infrastructure for Swift apps and libraries.

Package Manager
● swift-package-manager: The source code for the Swift package manager.
● swift-llbuild: The source code for llbuild, a low-level build system used by the Swift package manager.

Cloned Repositories
Swift builds upon several other open-source projects, most notably the LLVM Compiler Infrastructure. Swift’s clones of the repositories of those open-source projects contain Swift-specific changes and are merged regularly from their upstream sources.

● swift-llvm: The source code for LLVM, with a handful of Swift-specific additions. Merged regularly from the LLVM sources at llvm.org.
● swift-clang: The source code for Clang, with a handful of Swift-specific additions. Merged regularly from the Clang sources at llvm.org.
● swift-lldb: The source code for the Swift-enabled version of LLDB, for debugging Swift programs. Merged regularly from the LLDB sources at llvm.org.
● swift-cmark: The source code for CommonMark, which is used in the Swift compiler.

Hit the link below to check out the swift.org site and learn more about Apple's new programming language.

Read More