Swift System Now Open Source
Written by Kay Ewbank   
Thursday, 01 October 2020

Apple's Swift System library for interfacing with system calls and low-level currency types has been made open source, and now supports Linux.

Swift System was introduced earlier in the year. Apple's Swift language supports accessing C interfaces, but Swift System goes further. Apple describes it as a multi-platform library rather than a cross-platform one. It provides a separate set of APIs and behaviors on every supported platform, reflecting the underlying OS interfaces. A single import will pull in the native platform interfaces specific for the targeted OS.

swiftlogo

 

Swift was launched by Apple in 2014 to provide an alternative to Objective C. Its aim is to provide a single language including the best ideas from languages such as C# and JavaScript, while being easy to use. It was made open source by Apple in 2015, and a Linux build was added at that point. Swift 5.3 is a release meant to include significant quality and performance enhancements.

Swift System is designed to work with Swift and make it easier to use operating system APIs that provide C interfaces to system calls. Apple's plan is that Swift System will act as the single home for low-level system interfaces for all supported Swift platforms.

They say that the traditional APIs:

"suffer from several shortcomings and fail to utilize the expressivity and type safety of Swift".

The immediate goal for the open source Swift System is to make it simpler to build cross-platform libraries and applications such as SwiftNIO and SwiftPM. System does not eliminate the need for operating system specific conditionals, but it simplify the task of filling out the platform-specific parts.

The developers describe Swift System as being in its infancy—it currently includes a small number of system calls, currency types, and convenience functionality. To increase the API coverage, Apple plans to adopt System in the Swift Package Manager. This will include enhancements to FilePath and support for the recently announced Swift on Windows.

swiftlogo

More Information

Swift Org

Related Articles

Swift Adds Windows Support

Swift 5.2 Improves Performance

Swift Adds More Generics Support

Swift 4 Improves String Handling

Swift 3.0 Released!

Apple Launches Swift Playgrounds

Apple Open Sources Swift

Apple's New Language - Swift       

Swift 2 To Be Open Source       

Top Languages 2015 - Stasis But For Go And Swift   

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


Dev Tunnels - An Alternative to Ngrok For .NET Users
06/05/2024

Dev Tunnels is a new Visual Studio option that exposes your localhost to the internet the easiest way possible. But first of all, why would you allow access from the public net to your local mach [ ... ]



Turing Chatbot Is Chief AI Officer
05/05/2024

It was only a matter of time before it happened. A company has created an Alan Turing chatbot and has installed it as its Chief AI officer. A distasteful PR stunt to many, but it's more complicated th [ ... ]


More News

raspberry pi books

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Thursday, 01 October 2020 )