In June, Apple unveiled Swift System, a new library for Apple platforms that provides interfaces for system calls and low-level types. Now, they are releasing the library under the Apache License 2.0 and adding support for Linux! Swift System aims to be a unified location for low-level system interfaces across all supported Swift platforms.
Swift System is a multi-platform library, not a cross-platform one. It provides a distinct set of APIs and behaviors on each supported platform, more accurately reflecting the underlying OS interfaces. Importing the module will make available the native platform interfaces specific to each operating system.
Most operating systems today support a certain set of system interfaces written in C, which have been around for decades. While these APIs can be used directly from Swift, these weakly-typed system interfaces imported from C may be prone to errors and cumbersome to use.
Swift System leverages various language features of Swift to enhance expressiveness and eliminate error-prone constructs. As a result, the code looks and behaves like idiomatic Swift code.
Source: linux.org.ru

