{"id":30257,"date":"2020-09-25T16:43:52","date_gmt":"2020-09-25T20:43:52","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=30257"},"modified":"2020-09-28T14:52:40","modified_gmt":"2020-09-28T18:52:40","slug":"swift-system-is-now-open-source","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2020\/09\/25\/swift-system-is-now-open-source\/","title":{"rendered":"Swift System Is Now Open Source"},"content":{"rendered":"<p><a href=\"https:\/\/swift.org\/blog\/swift-system\/\">Michael Ilseman<\/a>:<\/p>\n<blockquote cite=\"https:\/\/swift.org\/blog\/swift-system\/\"><p>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&rsquo;m excited to announce that we&rsquo;re open-sourcing <a href=\"https:\/\/github.com\/apple\/swift-system\">System<\/a> 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.<\/p><p>[&#8230;]<\/p><p>Errors are thrown using the standard language mechanism and cannot be missed.  Further, all system calls interruptible by a signal take a defaulted-true <code>retryOnInterrupt<\/code> argument, causing them to retry on failure.  When combined, these two changes dramatically simplify error and signal handling.<\/p><p>[&#8230;]<\/p><p><code>System<\/code> is a multi-platform library, not a cross-platform one. It provides a separate set of APIs and behaviors on every supported platform, closely reflecting the underlying OS interfaces. <\/p><\/blockquote>\n<p>Like <a href=\"https:\/\/mjtsai.com\/blog\/2020\/02\/28\/swift-argument-parser\/\">Swift Argument Parser<\/a>, it is not part of the standard library. I guess the advantage is that you can back-deploy the latest version of the package to older OS versions.<\/p>\n<p id=\"swift-system-is-now-open-source-update-2020-09-28\">Update (2020-09-28): See also: <a href=\"https:\/\/news.ycombinator.com\/item?id=24593028\">Hacker News<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Michael Ilseman: 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&rsquo;m excited to announce that we&rsquo;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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2020-09-25T20:43:56Z","apple_news_api_id":"b9e5f147-7f68-450c-ba53-2bfc542d4977","apple_news_api_modified_at":"2020-09-28T18:52:45Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAA==","apple_news_api_share_url":"https:\/\/apple.news\/AueXxR39oRQy6Uyv8VC1Jdw","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[31,1667,448,30,1666,74,71,901],"class_list":["post-30257","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-ios","tag-ios-13","tag-linux","tag-mac","tag-macos-10-15","tag-opensource","tag-programming","tag-swift-programming-language"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/30257","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=30257"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/30257\/revisions"}],"predecessor-version":[{"id":30262,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/30257\/revisions\/30262"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=30257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=30257"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=30257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}