Library of code from the Airspeed Velocity blog
airspeedswift/ImmutableSwiftSnake 11
A version of Snake in Swift that prints to the console and tries to avoid mutable variables
The Swift Programming Language
airspeedswift/swift-compiler-crashes 2
A collection of test cases crashing the Swift compiler.
airspeedswift/swift-evolution 2
This maintains proposals for changes and user-visible enhancements to the Swift Programming Language.
The Swift Programming Language
This is the version of LLDB that supports the Swift programming language & REPL.
A functional tool-belt for Swift Language similar to Lo-Dash or Underscore.js in Javascript
push eventapple/swift-evolution
commit sha da46988f3fa395c14d611f4437b93ceecda4cf83
Async let second review (#1409) * [SE-0317] Flesh out the alternative design for all-explicit suspension points * [SE-0317] Added discussion of the use of property wrappers instead of `async let` to Alternatives Considered. * [SE-0317] Added discussion about requiring braces around an `async let` initializer expression to Alternatives Considered. * [SE-0317] Add a table of contents * Apply suggestions from code review Co-authored-by: Kavon Farvardin <[email protected]> * [SE-0317] Expand/clarify discussion of requiring "await" of all async lets * Update 0317-async-let.md Co-authored-by: Kavon Farvardin <[email protected]> Co-authored-by: Ben Cohen <[email protected]>
push time in a day
push eventDougGregor/swift-evolution
commit sha 133bd91e547240c10c6b2a4b23d2a33ed5a53def
Update 0317-async-let.md
push time in a day
push eventapple/swift
commit sha 7a7c76426f4da876e5caef9ee1e795946f50b902
Further workaround for priority mishandling in runtime. (#38428) See rdar://79378762, SR-14802, SR-14841, SR-14875. This doesn't resolve all hangs, such as those occurring due to explicit usage of priorities and certain other situations where priorities seem to be causing issues (rdar://79823345), but it does resolve some cases. (cherry picked from commit fa406759108100b8111f53155e9e04f433de8997)
push time in 12 days
PR merged apple/swift
See rdar://79378762, SR-14802, SR-14841, SR-14875.
This doesn't resolve all hangs, such as those occurring due to explicit usage of priorities and certain other situations where priorities seem to be causing issues (rdar://79823345), but it does resolve some cases.
(cherry picked from commit fa406759108100b8111f53155e9e04f433de8997)
pr closed time in 12 days
push eventapple/swift-evolution
commit sha 131e17cdff1460e186825ef5853c6d8784e5bcf7
Update 0312-indexed-and-enumerated-zip-collections.md
push time in 14 days
pull request commentapple/swift
SIL: Allow lowering Optional<T> against a nested type of an opaque result type [5.5]
Original: #38376
comment created time in 15 days
push eventapple/swift-evolution
commit sha 8609cad10891ea8809d8fd36bae212d1bf9862a6
[SE-0304] Update Structured Concurrency proposal based on feedback from the third review (#1406) * [SE-0304] Replace `TaskGroup.async` with `TaskGroup.addTask`. The use of the adjective `async` for creating new child tasks was too confusing and didn't fit well with the naming guidelines. Instead, use `addTask`, which makes it clear that we are adding a new task into a task group (the result of which is available via `next()`). * [SE-0304] Rename `sleep(_:)` to `sleep(nanoseconds:)`. * [SE-0304] Split out changes due to review #3 * [SE-0304] Rename TaskPriority.default to TaskPriority.medium * [SE-0304] Add (Throwing)?TaskGroup.waitForAll * [SE-0304] Rename `Task.yield()` to `Task.suspend()` * [SE-0304] Make `Task.sleep(nanoseconds:)` throwing on cancellation * Re-schedule review
push time in 21 days
PR merged apple/swift-evolution
Summary of changes in response to the third review:
- renamed
Task.sleep(_:)toTask.sleep(nanoseconds:). This makes it clear that the wait is in nanoseconds, and leaves API space open for asleep(_:)based on a better duration type in the future. - made
Task.sleep(nanoseconds:)throwing; it will throwCancellationErrorif the sleeping task was cancelled. - renamed
TaskGroup.asyncandTaskGroup.asyncUnlessCancelledtoTaskGroup.addTaskandTaskGroup.addTaskUnlessCancelled. The fundamental behavior here is that we're adding a task to the group.addby itself does not suffice, because we aren't adding a value (accessible vianext()), we are adding a task whose value will be accessible vianext(). It also parallels the use ofTask { ... }to create top-level tasks. - renamed
TaskPriority.defaulttoTaskPriority.medium, becausenilpassed in to aTaskPriority?parameter is effectively the default for most APIs. - added
TaskGroup.waitForAllandThrowingTaskGroup.waitForAll. - renamed
Task.yield()toTask.suspend(), which more accurately represents what this operation action does, and leaves the name "yield" for future work on generators.
pr closed time in 21 days
push eventDougGregor/swift-evolution
commit sha 88111531a68783146d1ab311a065e2d043876129
Update proposals/0304-structured-concurrency.md Co-authored-by: Ben Rimmington <[email protected]>
push time in 21 days
push eventDougGregor/swift-evolution
commit sha a9839cc0ab027e79320cace53b91ee355001b73d
Update proposals/0304-structured-concurrency.md Co-authored-by: Ben Rimmington <[email protected]>
push time in 21 days
Pull request review commentapple/swift-evolution
[SE-0304] Update Structured Concurrency proposal based on feedback from the third review
* Proposal: [SE-0304](0304-structured-concurrency.md) * Authors: [John McCall](https://github.com/rjmccall), [Joe Groff](https://github.com/jckarter), [Doug Gregor](https://github.com/DougGregor), [Konrad Malawski](https://github.com/ktoso) * Review Manager: [Ben Cohen](https://github.com/airspeedswift)-* Status: **Active Review (May 24 - June 3 2021)**+* Status: **Active Review (June 7 - 14 2021)**
Heh, thanks
comment created time in 21 days