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


Ibis 8 Adds Streaming
05/03/2024

Ibis 8.0 has been released with stream processing backends. The new release includes Apache Flink as a streaming backend, and RisingWave, a streaming database backend. There's also a new batch backend [ ... ]



Call For Code 2024 Focuses On Generative AI
01/03/2024

This year's Call for Code challenge has been launched with a theme of the use of generative AI technology for solutions that aim to improve equitable access to resources and opportunities for historic [ ... ]


More News

raspberry pi books

 

Comments




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

Last Updated ( Thursday, 01 October 2020 )