{"id":14572,"date":"2016-05-17T10:20:39","date_gmt":"2016-05-17T14:20:39","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=14572"},"modified":"2016-05-23T10:27:56","modified_gmt":"2016-05-23T14:27:56","slug":"abi-stability-deferred-until-after-swift-3-0","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2016\/05\/17\/abi-stability-deferred-until-after-swift-3-0\/","title":{"rendered":"ABI Stability Deferred Until After Swift 3.0"},"content":{"rendered":"<p><a href=\"http:\/\/ericasadun.com\/2016\/05\/16\/winding-down-swift-3-0-abi-stability-deferred\/\">Erica Sadun<\/a> quotes Chris Lattner:<\/p>\n<blockquote cite=\"http:\/\/ericasadun.com\/2016\/05\/16\/winding-down-swift-3-0-abi-stability-deferred\/\">\n<p>That said, it is also clear at this point that some of the loftier goals that we started out with aren&rsquo;t going to fit into the release [Swift 3.0] &#8211; including some of the most important generics features needed in order to lock down the ABI of the standard library. <strong>As such, the generics and ABI stability goals will roll into a future release of Swift<\/strong>, where I expect them to be the <em>highest<\/em>&nbsp;priority features to get done.<\/p>\n<\/blockquote>\n<p><a href=\"http:\/\/ericasadun.com\/2016\/05\/16\/winding-down-swift-3-0-abi-stability-deferred\/\">Jeremy Pereira<\/a>:<\/p>\n<blockquote cite=\"http:\/\/ericasadun.com\/2016\/05\/16\/winding-down-swift-3-0-abi-stability-deferred\/\"><p>Compare the Swift-Evolution goals for Swift 3 to how they were <a href=\"https:\/\/github.com\/apple\/swift-evolution\/blob\/d6e62467b03435bdc4b3bd473c3dcffb9fdd6a71\/README.md\">before Chris changed them<\/a>. They used to be Stable ABI; Resilience; Portability; type system clean up and documentation; complete generics; focus and refine the language; API design guidelines. Only two of those goals will be met &#8211; the last two. <\/p>\n<p>Judged by its original goals, the Swift 3 release is a failure. Clearly we lost focus on what we were trying to achieve and we need to understand why. Unfortunately, Chris&rsquo;s relocation of the goalposts is likely to obscure the fact of the failure and probably the same mistakes will be repeated for Swift 4.<\/p><\/blockquote>\n<p>I&rsquo;m not worried because (a) I see a lot of the stuff that went into Swift 3 as more important than the stable ABI, and (b) I really want them to take the time to get Resilience right. ABI stability doesn&rsquo;t affect app developers that much. The main issue is that it means you have to build from source, so you can&rsquo;t include (Swift) libraries that were compiled by someone else, but I don&rsquo;t see that as a common problem.<\/p>\n<p>Update (2016-05-18): <a href=\"http:\/\/ericasadun.com\/2016\/05\/17\/more-about-the-swift-abi-postponement-the-laws-of-abi-changes\/\">Greg Parker<\/a>:<\/p>\n<blockquote cite=\"http:\/\/ericasadun.com\/2016\/05\/17\/more-about-the-swift-abi-postponement-the-laws-of-abi-changes\/\"><p>If we tried to rush Swift ABI stability out the door for Swift 3 we would certainly end up with deliberate or accidental flaws like the above. Being able to take the time to get it right is a rare luxury.<\/p><\/blockquote>\n<p><a href=\"http:\/\/ericasadun.com\/2016\/05\/18\/if-i-had-my-druthers-swift-2-2-swift-3-0-abis-etc\/\">Erica Sadun<\/a>:<\/p>\n<blockquote cite=\"http:\/\/ericasadun.com\/2016\/05\/18\/if-i-had-my-druthers-swift-2-2-swift-3-0-abis-etc\/\"><p>The move to Swift 3.0 isn&rsquo;t just going to be disruptive. It&rsquo;s going to be traumatic. With its expansive renamification and redesigned core types and APIs, Swift 3 is going to be a tidal wave of retraining and refactoring. And with a list of objectives that didn&rsquo;t quite make the cut, and a laundry list of of items that should have, Swift 3 just doesn&rsquo;t have enough time or scope to be perfected.<\/p>\n<p>So why not just push it back?  Let us devs use Swift 2.2, which is terrific, for a few more years and get Swift 3 right the first time?<\/p>\n<p>[&#8230;]<\/p>\n<p>These arbitrary &ldquo;update every year&rdquo; advances that Apple has bought into are more than a little ridiculous when it comes to firmware and OS updates; for languages it pushes beyond the practical.<\/p><\/blockquote>\n<p>This is why I thought it was good to get the major source-breaking changes into Swift 3 at the expense of ABI stability. However, it remains to be seen whether that goal can be reached on schedule.<\/p>\n<p>Update (2016-05-23): <a href=\"https:\/\/twitter.com\/jckarter\/status\/732237912213884928\">Joe Groff<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/jckarter\/status\/732237912213884928\"><p>A late ABI is only late until it&rsquo;s finished; a bad ABI is bad forever.<\/p><\/blockquote>\n\n<p><a href=\"http:\/\/www.bensnider.com\/abi-compatibility-whoopdty-do-what-does-it-all-mean.html\">Ben Snider<\/a>:<\/p>\n<blockquote cite=\"http:\/\/www.bensnider.com\/abi-compatibility-whoopdty-do-what-does-it-all-mean.html\"><p>So while ABI compatibility might seem like a big deal to have been pushed off, it very likely doesn&rsquo;t affect the day to day of most Swift developers.<\/p>\n<p>The most compelling arguments thus far have been around the fact that some developers would like to distribute libraries in binary form so as to protect intellectual property, license agreements, etc. Not having ABI compatibility is actually a legitimate concern for developers wishing to distribute binary libraries, but I don&rsquo;t really feel like that&rsquo;s a very large number of developers.<\/p>\n<p>[&#8230;]<\/p>\n<p>Which leads to the second major concern: that Swift compile times are a) slow, b) unlikely to get <em>much<\/em> faster and c) will only get slower as projects increase in size and complexity. Having some libraries built as binary libraries that are simply linked with additional Swift sources would likely result in much faster build and test cycles.<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Erica Sadun quotes Chris Lattner: That said, it is also clear at this point that some of the loftier goals that we started out with aren&rsquo;t going to fit into the release [Swift 3.0] &#8211; including some of the most important generics features needed in order to lock down the ABI of the standard library. [&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":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","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":[46,71,901],"class_list":["post-14572","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-languagedesign","tag-programming","tag-swift-programming-language"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/14572","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=14572"}],"version-history":[{"count":7,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/14572\/revisions"}],"predecessor-version":[{"id":14609,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/14572\/revisions\/14609"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=14572"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=14572"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=14572"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}