# \[Pitch\] \[Meta\] Call out backwards-deployability in Evolution proposals

**URL:** <https://forums.swift.org/t/pitch-meta-call-out-backwards-deployability-in-evolution-proposals/49534>\
**Category:** Pitches\
**Tags:** swift-evolution\
**Created:** [June 11, 2021, 4:35pm UTC](https://forums.swift.org/t/pitch-meta-call-out-backwards-deployability-in-evolution-proposals/49534 "2021-06-11T16:35:23Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![tstromberg](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/tstromberg/32/18093_2.png) [@tstromberg](https://forums.swift.org/u/tstromberg)\
**Post date:** [June 11, 2021, 4:35pm UTC](https://forums.swift.org/t/pitch-meta-call-out-backwards-deployability-in-evolution-proposals/49534/1 "2021-06-11T16:35:23Z")

</div>

Given the dustup that's happened around async/await and the new concurrency features, should the Swift evolution template be updated to make it more clear when proposed changes will require changes to the Swift runtime and consequently _won't_ be able to be used on previous versions of Apple's operating systems?

---

<div class="post-metadata">

**Author:** ![David\_Catmull](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/david_catmull/32/1007_2.png) [@David\_Catmull](https://forums.swift.org/u/David_Catmull)\
**Post date:** [June 11, 2021, 4:52pm UTC](https://forums.swift.org/t/pitch-meta-call-out-backwards-deployability-in-evolution-proposals/49534/2 "2021-06-11T16:52:41Z")

</div>

Since the proposal template already has source compatibility, ABI stability, etc., I think it seems logical to address this too.

---

<div class="post-metadata">

**Author:** ![tstromberg](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/tstromberg/32/18093_2.png) [@tstromberg](https://forums.swift.org/u/tstromberg)\
**Post date:** [June 21, 2021, 5:11pm UTC](https://forums.swift.org/t/pitch-meta-call-out-backwards-deployability-in-evolution-proposals/49534/3 "2021-06-21T17:11:55Z")

</div>

PR is up: [Add section on backward-deployability by AquaGeek · Pull Request #1394 · apple/swift-evolution · GitHub](https://github.com/apple/swift-evolution/pull/1394)

---

<div class="post-metadata">

**Author:** ![fclout](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/fclout/32/36155_2.png) [@fclout](https://forums.swift.org/u/fclout)\
**Post date:** [June 21, 2021, 10:23pm UTC](https://forums.swift.org/t/pitch-meta-call-out-backwards-deployability-in-evolution-proposals/49534/4 "2021-06-21T22:23:07Z")

</div>

Suppose that a proposal says "this needs work from Apple teams in other organizations to back-deploy". What does the community do from there?

---

<div class="post-metadata">

**Author:** ![Douglas\_Gregor](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/douglas_gregor/32/1362_2.png) [@Douglas\_Gregor](https://forums.swift.org/u/Douglas_Gregor)\
**Post date:** [June 21, 2021, 10:33pm UTC](https://forums.swift.org/t/pitch-meta-call-out-backwards-deployability-in-evolution-proposals/49534/5 "2021-06-21T22:33:43Z")

</div>

> [@tstromberg](#):
>
> PR is up: [Add section on backward-deployability by AquaGeek · Pull Request #1394 · apple/swift-evolution · GitHub](https://github.com/apple/swift-evolution/pull/1394)

My general concern about the wording here is that folks don't necessarily know what can back-deploy and what can't. If we're going to ask them to say something about the technical concerns for backward deployment, we need to give more illustrations about what is easy vs. hard to back-deploy. For example, some things are easy to back-deploy, like a feature that is sugar over existing language features or a new API that can be fully-inlined. Other things are hard to back-deploy, like if you introduce a new type, new protocol conformance, or you change the type system in a way that can be discovered by a dynamic cast (`as?`/`as!`/`is`).

Doug

---

<div class="post-metadata">

**Author:** ![tstromberg](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/tstromberg/32/18093_2.png) [@tstromberg](https://forums.swift.org/u/tstromberg)\
**Post date:** [June 22, 2021, 4:25pm UTC](https://forums.swift.org/t/pitch-meta-call-out-backwards-deployability-in-evolution-proposals/49534/6 "2021-06-22T16:25:02Z")

</div>

> [@Douglas\_Gregor](#):
>
> My general concern about the wording here is that folks don't necessarily know what can back-deploy and what can't.

That's fair. I admittedly don't fully understand what can and what can't.

> [@Douglas\_Gregor](#):
>
> If we're going to ask them to say something about the technical concerns for backward deployment, we need to give more illustrations about what is easy vs. hard to back-deploy. For example, some things are easy to back-deploy, like a feature that is sugar over existing language features or a new API that can be fully-inlined. Other things are hard to back-deploy, like if you introduce a new type, new protocol conformance, or you change the type system in a way that can be discovered by a dynamic cast ( `as?` / `as!` / `is` ).

Do you feel like adding those examples is sufficient?

Adding this to the template will likely increase the core team's workload, in that many folks may not know how to answer this section and some back-and-forth will be required to help educate or to verify the claims made. Granted, the same could probably be said about the ABI stability section, too. I don't want to add work to the core team and reviewers, but I also feel like calling this out up front will be a net win for the community.

---

<div class="post-metadata">

**Author:** ![xwu](https://avatars.discourse-cdn.com/v4/letter/x/b487fb/32.png) [@xwu](https://forums.swift.org/u/xwu)\
**Post date:** [June 22, 2021, 7:33pm UTC](https://forums.swift.org/t/pitch-meta-call-out-backwards-deployability-in-evolution-proposals/49534/7 "2021-06-22T19:33:48Z")

</div>

> [@tstromberg](#):
>
> I also feel like calling this out up front will be a net win for the community.

It does not seem to me that what ships or not on Apple’s platforms is actionable for anyone outside of Apple, or within the remit of Swift Evolution. What do you envision to be the net win for the community?

---

<div class="post-metadata">

**Author:** ![David\_Catmull](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/david_catmull/32/1007_2.png) [@David\_Catmull](https://forums.swift.org/u/David_Catmull)\
**Post date:** [June 22, 2021, 8:00pm UTC](https://forums.swift.org/t/pitch-meta-call-out-backwards-deployability-in-evolution-proposals/49534/8 "2021-06-22T20:00:41Z")

</div>

> [@xwu](#):
>
> What do you envision to be the net win for the community?

The fact that async/await (most likely) will not be back-deployable was surprising and frustrating to a lot of people. Many had been counting on being able to use it right away. If this had been discussed earlier it would have helped. So I think we'd like to avoid having this happen with future pitches.

---

<div class="post-metadata">

**Author:** ![Jon\_Shier](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/jon_shier/32/921_2.png) [@Jon\_Shier](https://forums.swift.org/u/Jon_Shier)\
**Post date:** [June 22, 2021, 8:07pm UTC](https://forums.swift.org/t/pitch-meta-call-out-backwards-deployability-in-evolution-proposals/49534/9 "2021-06-22T20:07:28Z")

</div>

> [@tstromberg](#):
>
> > [@Douglas\_Gregor](#):
> >
> > My general concern about the wording here is that folks don't necessarily know what can back-deploy and what can't.
> 
> That's fair. I admittedly don't fully understand what can and what can't.

This isn't really any different than the sections on ABI stability or API resilience. Most developers who aren't experts on those aspects of Swift will have to wait for input from someone who is. Deployability would be pretty similar.

---

<div class="post-metadata">

**Author:** ![Jumhyn](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/jumhyn/32/3891_2.png) [@Jumhyn](https://forums.swift.org/u/Jumhyn)\
**Post date:** [June 22, 2021, 8:24pm UTC](https://forums.swift.org/t/pitch-meta-call-out-backwards-deployability-in-evolution-proposals/49534/10 "2021-06-22T20:24:40Z")

</div>

> [@xwu](#):
>
> It does not seem to me that what ships or not on Apple’s platforms is actionable for anyone outside of Apple, or within the remit of Swift Evolution.

Perhaps a better way to frame this issue is "Runtime and Standard Library surface impact"? As @xwu notes, "backwards deployable" is (today) an Apple-specific concern over which the Swift project has no purview. But if a proposal indicates that it requires additional runtime entry points or standard library changes (which cannot be emitted into the client), that's a pretty strong signal that any Swift-in-the-OS platforms (currently, Apple platforms) would need additional, perhaps significant, work to support the feature in a backwards-compatible manner.

Also, given that Swift _does_ support ABI-stable platforms, it seems independently valuable to me (apart from answering the "will users get to use this feature on older iOS versions?" question) for proposals to indicate the additional commitments their features are making on the system side of the ABI boundary—those are decisions that we can't easily "take back" later. The community should have an opportunity to weigh the relative permanence of those decisions against the value that the new feature provides.

---

<div class="post-metadata">

**Author:** ![Karl](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@Karl](https://forums.swift.org/u/Karl)\
**Post date:** [June 22, 2021, 8:51pm UTC](https://forums.swift.org/t/pitch-meta-call-out-backwards-deployability-in-evolution-proposals/49534/11 "2021-06-22T20:51:28Z")

</div>

See the discussion from SE-0263. Apple will back-deploy what they feel like back-deploying. Even if there aren’t really any _major_ technical difficulties, they still might not do it. Trying to make that process less arbitrary seems unlikely to succeed.

It’s their platform, after all. They are allowed to be arbitrary, and they will be.

> [@SE-0263: Add a String Initializer with Access to Uninitialized Storage](https://forums.swift.org/t/se-0263-add-a-string-initializer-with-access-to-uninitialized-storage/27417/32):
>
> The review discussion also brought up the topic of backward deployment, which spurned a broader meta discussion within the Core Team on how evolution proposals and reviews should approach the topic of backward deployment — a topic that has come up before.
> 
> Backward deployment is interesting because it is obviously an important concern for Swift developers on platforms where backward deployment is a meaningful concept (such as on macOS). However, even today not all platforms where Swift is supported share the same concerns about backward deployment of APIs in the Swift runtime or Standard Library. Further, in the fullness of time as Swift is supported on more platforms the exact policy of how additions to the Standard Library will be "backward deployed" may be particular to the platform vendor or in the way Swift is distributed on a given platform.
> 
> As a point of establishing precedent, the Core team feels that a reasonable policy that strikes a balance is that backward deployment decisions are _not_ deciding factors in evolution discussions. However, the Core team feels it is fine — and valuable — for review discussions to talk about backward deployment and potentially factor those concerns into the proposal. Backward deployment alone, however, will not be a criteria for whether or not to accept a proposal. Ultimately, how much backward deployment of an API or runtime capability is supported is a combination of (a) what is technically possible as well as (b) up to whomever is distributing Swift on a particular platform is able to provide. Of course, some of the mechanisms that help facilitate backward deployment — such as inlining of an API — can also impact the invariants and semantics of a proposed API, and should be reviewed as part of an API proposal.

---

<div class="post-metadata">

**Author:** ![Jon\_Shier](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/jon_shier/32/921_2.png) [@Jon\_Shier](https://forums.swift.org/u/Jon_Shier)\
**Post date:** [June 22, 2021, 9:13pm UTC](https://forums.swift.org/t/pitch-meta-call-out-backwards-deployability-in-evolution-proposals/49534/12 "2021-06-22T21:13:18Z")

</div>

> [@Karl](#):
>
> Trying to make that process less arbitrary seems unlikely to succeed.

I don't think anyone is under the illusion that they can make vendors _do_ anything. It's more about making this consideration visible in the proposal itself, rather than just something that _might_ come up in pitch or review or _might_ be mentioned in the acceptance post.

---

<div class="post-metadata">

**Author:** ![Karl](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@Karl](https://forums.swift.org/u/Karl)\
**Post date:** [June 22, 2021, 9:28pm UTC](https://forums.swift.org/t/pitch-meta-call-out-backwards-deployability-in-evolution-proposals/49534/13 "2021-06-22T21:28:51Z")

</div>

> [@Jon\_Shier](#):
>
> It's more about making this considerations visible in the proposal itself, rather than just something that _might_ come up in pitch or review or _might_ be mentioned in the acceptance post.

It isn’t relevant, though. Just because something may technically be able to be back-deployed, that doesn’t mean it will be. Saying that some proposal may be back-deployed is misleading, IMHO, and will only make people angry at Apple when they decide not to.

---

<div class="post-metadata">

**Author:** ![Jon\_Shier](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/jon_shier/32/921_2.png) [@Jon\_Shier](https://forums.swift.org/u/Jon_Shier)\
**Post date:** [June 22, 2021, 9:31pm UTC](https://forums.swift.org/t/pitch-meta-call-out-backwards-deployability-in-evolution-proposals/49534/14 "2021-06-22T21:31:27Z")

</div>

Of course it's relevant, it may influence the implementers or reviewers. If implementers can find an alternate implementation that can be more easily backward deployed, that's a huge benefit to the community. Reviews may have new ideas or alternate versions of a feature that are easier to deploy. But if it's not something that's considered until Apple cuts a build, there's no opportunity for improvement at all.

---

<div class="post-metadata">

**Author:** ![spadafiva](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/spadafiva/32/6635_2.png) [@spadafiva](https://forums.swift.org/u/spadafiva)\
**Post date:** [June 22, 2021, 9:31pm UTC](https://forums.swift.org/t/pitch-meta-call-out-backwards-deployability-in-evolution-proposals/49534/15 "2021-06-22T21:31:55Z")

</div>

+1 to what Jon has been saying. I think that there was a lot of fire and frustration and threads that needed to be locked or closed which caused bad feelings for people on both the creating and receiving ends of the spectrum. The launch of concurrency into Swift could have been mostly an exciting celebration of the incredible work the authors have put into helping swift grow into a more powerful and safe language, where the users knew what to expect and the authors contributions were valued for what they were.

In general, I think that people can cope better with news they don't like more easily when there is more time to process it before a big announcement. I would suspect that if this had been called out more explicitly in the proposal that the actual reveal of concurrency would have been met with more celebration and less anger as the stakes would feel lower, there wouldn't be an element of surprise, and the discussions of the implementation details and technical problems would have been more easily managed in the review threads.

If we can excuse a poor metaphor, it's similar feeling to when you spend a lot of time using a service, customizing something only fo find out at the very end that it's not free or that you need to link some other sort of account to continue.

---

<div class="post-metadata">

**Author:** ![Douglas\_Gregor](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/douglas_gregor/32/1362_2.png) [@Douglas\_Gregor](https://forums.swift.org/u/Douglas_Gregor)\
**Post date:** [June 29, 2021, 8:01pm UTC](https://forums.swift.org/t/pitch-meta-call-out-backwards-deployability-in-evolution-proposals/49534/16 "2021-06-29T20:01:25Z")

</div>

> [@Jumhyn](#):
>
> Perhaps a better way to frame this issue is "Runtime and Standard Library surface impact"? As @xwu notes, "backwards deployable" is (today) an Apple-specific concern over which the Swift project has no purview. But if a proposal indicates that it requires additional runtime entry points or standard library changes (which cannot be emitted into the client), that's a pretty strong signal that any Swift-in-the-OS platforms (currently, Apple platforms) would need additional, perhaps significant, work to support the feature in a backwards-compatible manner.

The Core Team discussed the issue, and their view aligns closely with the above: backward deployment is a vendor-specific issue, and not part of the evolution process. However, calling out the runtime impact of a proposal can help us understand concerns around back-deployment and also the overall impact of a feature on the language and runtime, which is valuable.

The global actors proposal under review has some interesting runtime impact, so I've sketched a short section to talk about its runtime impact as a sample: [[SE-0316] Address feedback from the second review by DougGregor · Pull Request #1400 · apple/swift-evolution · GitHub](https://github.com/apple/swift-evolution/pull/1400)

Doug

---

<div class="post-metadata">

**Author:** ![3405691582](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/3405691582/32/10696_2.png) [@3405691582](https://forums.swift.org/u/3405691582)\
**Post date:** [June 30, 2021, 12:01am UTC](https://forums.swift.org/t/pitch-meta-call-out-backwards-deployability-in-evolution-proposals/49534/17 "2021-06-30T00:01:43Z")

</div>

I don't really have a dog in this race, but as someone who is explicitly _not working_ with Apple platforms and Swift I have little idea what "backwards deployable" means or why it should be important when considering improvements to a language that ideally should have relevance outside of Apple platforms.
