Swift System is Now Open Source
In June, Apple introduced Swift System, a new library for Apple platforms that provides idiomatic interfaces to system calls and low-level currency types. Today, I’m excited to announce that we’re open-sourcing System and adding Linux support! Our vision is for System to eventually act as the single home for low-level system interfaces for all supported Swift platforms.
→ swift.org/blog/swift-system/
Swift System is a new open-source library for Apple platforms and Linux, providing idiomatic, type-safe interfaces to system calls and low-level types, replacing error-prone C interfaces like the open function. It uses Swift features like raw representable structs, option sets, and thrown errors to enhance safety and clarity, with managed types like FilePath and automatic retry options for signal interruptions. Designed as a multi-platform library, it offers platform-specific APIs to simplify building cross-platform tools like SwiftNIO, reducing reliance on unsafe C constructs. The library aims to be the unified home for low-level system interfaces across all supported Swift platforms.
Category:
Tag:
Year: