Skip to content

Update proposals that are implemented in Swift 6.0. #2524

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions proposals/0364-retroactive-conformance-warning.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
* Proposal: [SE-0364](0364-retroactive-conformance-warning.md)
* Author: [Harlan Haskins](https://github.com/harlanhaskins)
* Review Manager: [Steve Canon](https://github.com/stephentyrone)
* Status: **Accepted**
* Implementation: [apple/swift#36068](https://github.com/apple/swift/pull/36068)
* Status: **Implemented (Swift 6.0)**
* Review: ([first pitch](https://forums.swift.org/t/warning-for-retroactive-conformances-if-library-evolution-is-enabled/45321))
([second pitch](https://forums.swift.org/t/pitch-warning-for-retroactive-conformances-of-external-types-in-resilient-libraries/56243))
([first review](https://forums.swift.org/t/se-0364-warning-for-retroactive-conformances-of-external-types/58922))
Expand Down
20 changes: 1 addition & 19 deletions proposals/0425-int128.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
* Proposal: [SE-0425](0425-int128.md)
* Author: [Stephen Canon](https://github.com/stephentyrone)
* Review Manager: [Doug Gregor](https://github.com/DougGregor)
* Implementation: https://github.com/stephentyrone/swift-numerics/tree/int128
* Status: **Accepted**
* Status: **Implemented (Swift 6.0)**
* Review: ([Pitch](https://forums.swift.org/t/pitch-128-bit-integer-types/70188)) ([Review](https://forums.swift.org/t/se-0425-128-bit-integer-types/70456)), ([Acceptance](https://forums.swift.org/t/accepted/71063))

## Motivation
Expand All @@ -20,23 +19,6 @@ implementation detail of Duration).
Introduce two new structs, `UInt128` and `Int128`, conforming to all of the
usual fixed-width integer protocols.

While these will be implemented in the standard library, for the purposes of
experimentation, I have put them on a branch of swift-numerics. To try these
types out, use my branch `int128`:
```swift
.package(
url: "https://github.com/stephentyrone/swift-numerics",
branch: "int128"
)
```
and add `Int128Demo` as a dependency:
```swift
.target(name: "MyTarget", dependencies: [
.product(name: "Int128Demo", package: "swift-numerics")
]),
```
This branch requires a recent nightly toolchain to build.

## Detailed design

The `[U]Int128` types are 16B aligned on 64b targets¹ and have the same
Expand Down
3 changes: 1 addition & 2 deletions proposals/0429-partial-consumption.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
* Proposal: [SE-0429](0429-partial-consumption.md)
* Authors: [Michael Gottesman](https://github.com/gottesmm), [Nate Chandler](https://github.com/nate-chandler)
* Review Manager: [Xiaodi Wu](https://github.com/xwu)
* Implementation: On `main` gated behind `-enable-experimental-feature MoveOnlyPartialConsumption`
* Status: **Accepted**
* Status: **Implemented (Swift 6.0)**
* Review: ([pitch #1](https://forums.swift.org/t/request-for-feedback-partial-consumption-of-fields-of-noncopyable-types/65884)) ([pitch #2](https://forums.swift.org/t/pitch-piecewise-consumption-of-noncopyable-values/70045)) ([review](https://forums.swift.org/t/se-0429-partial-consumption-of-noncopyable-values/70675)) ([acceptance](https://forums.swift.org/t/accepted-se-0429-partial-consumption-of-noncopyable-values/70972))

## Introduction
Expand Down
3 changes: 1 addition & 2 deletions proposals/0430-transferring-parameters-and-results.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
* Proposal: [SE-0430](0430-transferring-parameters-and-results.md)
* Authors: [Michael Gottesman](https://github.com/gottesmm), [Holly Borla](https://github.com/hborla), [John McCall](https://github.com/rjmccall)
* Review Manager: [Becca Royal-Gordon](https://github.com/beccadax)
* Status: **Active Review (June 21 ... 28, 2024)**
* Implementation: Implemented in Swift 6.0 except for amendment under review
* Status: **Implemented (Swift 6.0)**
* Previous Proposal: [SE-0414: Region-based isolation](/proposals/0414-region-based-isolation.md)
* Previous Revisions: [1](https://github.com/apple/swift-evolution/blob/87943205551af43682ef50260816f3ff2ef9b7ea/proposals/0430-transferring-parameters-and-results.md) [2](https://github.com/apple/swift-evolution/blob/4dded8ed382b526a5a301c225a1d45018f8d556b/proposals/0430-transferring-parameters-and-results.md)
* Review: ([pitch](https://forums.swift.org/t/pitch-transferring-isolation-regions-of-parameter-and-result-values/70240)) ([first review](https://forums.swift.org/t/se-0430-transferring-isolation-regions-of-parameter-and-result-values/70830)) ([returned for revision](https://forums.swift.org/t/returned-for-revision-se-0430-transferring-isolation-regions-of-parameter-and-result-values/71297)) ([second review](https://forums.swift.org/t/se-0430-second-review-sendable-parameter-and-result-values/71685)) ([acceptance with modifications](https://forums.swift.org/t/accepted-with-modifications-se-0430-second-review-sendable-parameter-and-result-values/71850)) ([amendment pitch](https://forums.swift.org/t/pitch-revise-se-0430-to-adopt-sending-on-unsafecontinuation/72289)) ([amendment review](https://forums.swift.org/t/amendment-se-0430-sending-parameter-and-result-values/72653))
Expand Down
1 change: 0 additions & 1 deletion proposals/0432-noncopyable-switch.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* Authors: [Joe Groff](https://github.com/jckarter)
* Review Manager: [Ben Cohen](https://github.com/airspeedswift)
* Status: **Implemented (Swift 6.0)**
* Implementation: on `main`, using the `BorrowingSwitch` experimental feature flag and `_borrowing x` binding spelling
* Experimental Feature Flag: `BorrowingSwitch`
* Previous Revision: [1](https://github.com/swiftlang/swift-evolution/blob/86cf6eadcdb35a09eb03330bf5d4f31f2599da02/proposals/ABCD-noncopyable-switch.md)
* Review: ([review](https://forums.swift.org/t/se-0432-borrowing-and-consuming-pattern-matching-for-noncopyable-types/71158)) ([acceptance](https://forums.swift.org/t/accepted-with-modifications-se-0432-borrowing-and-consuming-pattern-matching-for-noncopyable-types/71656))
Expand Down
3 changes: 1 addition & 2 deletions proposals/0433-mutex.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
* Proposal: [SE-0433](0433-mutex.md)
* Author: [Alejandro Alonso](https://github.com/Azoy)
* Review Manager: [Stephen Canon](https://github.com/stephentyrone)
* Implementation: [apple/swift#71383](https://github.com/apple/swift/pull/71383)
* Status: **Accepted**
* Status: **Implemented (Swift 6.0)**
* Review: ([pitch](https://forums.swift.org/t/pitch-synchronous-mutual-exclusion-lock/69889)), ([review](https://forums.swift.org/t/se-0433-synchronous-mutual-exclusion-lock/71174)), ([acceptance](https://forums.swift.org/t/accepted-se-0433-synchronous-mutual-exclusion-lock/71463))

## Introduction
Expand Down
5 changes: 1 addition & 4 deletions proposals/0437-noncopyable-stdlib-primitives.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
* Proposal: [SE-0437](0437-noncopyable-stdlib-primitives.md)
* Authors: [Karoy Lorentey](https://github.com/lorentey)
* Review Manager: [John McCall](https://github.com/rjmccall)
* Status: **Accepted**
* Status: **Implemented (Swift 6.0)**
* Roadmap: [Improving Swift performance predictability: ARC improvements and ownership control][Roadmap]
* Implementation:
- The type/function generalizations are (provisionally) already present on main and release/6.0.
- The proposed API additions are implemented by PRs [#73807](https://github.com/apple/swift/pull/73807) (main) and [#73810](https://github.com/apple/swift/pull/73810) (release/6.0).
* Review: ([pitch](https://forums.swift.org/t/pitch-noncopyable-standard-library-primitives/71566)) ([review](https://forums.swift.org/t/se-0437-generalizing-standard-library-primitives-for-non-copyable-types/72020)) ([acceptance](https://forums.swift.org/t/accepted-se-0437-generalizing-standard-library-primitives-for-non-copyable-types/72275))

[Roadmap]: https://forums.swift.org/t/a-roadmap-for-improving-swift-performance-predictability-arc-improvements-and-ownership-control/54206
Expand Down