Swift Forums announcements
25 stories
Swift Forums announcements
Swift Forums announcementsLanguages[Pitch] Merge local and global mirror configuration Hi everyone! I want to make a change to how Swift handles local and global mirror configuration. Currently, if a project contains a local configuration file, any global configuration is ignored.
Swift Forums announcements
Swift Forums announcementsLanguages[Pitch] Add `ends(with:)` to `BidirectionalCollection` Add ends(with:) to BidirectionalCollection Proposal: SE-NNNN Author: Mateus Rodrigues Introduction The standard library offers starts(with:) for checking whether a sequence begins with the elements…
Swift Forums announcements
Swift Forums announcementsLanguages[Pitch] Custom metadata attributes for types, and runtime access to custom sections This revises my pitch from last week, Runtime enumeration of custom sections , after the feedback there: it says what I want and how I would want it to work, rather than what a library can do today…
Swift Forums announcements
Swift Forums announcementsLanguagesPitch: An opt-in warning for avoidable struct padding Swift lays out stored properties in declaration order, so a poorly ordered struct silently wastes memory and bandwidth. Nothing in the toolchain tells you where that happens.
Swift Forums announcements
Swift Forums announcementsLanguages[Pitch] Add `sending` to the return type of `AsyncStream.Iterator.next()` Hi everyone! I wanted to pitch making the return values of AsyncStream.Interator.next() , AsyncStream.Continuation.yield(_:) , and their variants sending .
Swift Forums announcements
Swift Forums announcementsLanguages[Pitch] Split continuation Hi everyone, Here is a pitch to make working with continuations easier and enable a more performant way to resume them in cases where the current execution context can be donated: [Concurrency]…
Swift Forums announcements
Swift Forums announcementsLanguages[Pitch] Extending Build Tool Plugins for Customizing Targets This is a pitch based on work I've been doing this summer and posted about earlier. This focuses on extending the capabilities of build tool plugins and used to build external targets and new build…
Swift Forums announcements
Swift Forums announcementsLanguagesPitch: SwiftPM Optimization Settings Hello, The following is a short pitch to add some new manifest API for controlling optimization settings in packages: SwiftPM Optimization Settings Proposal: SE-NNNN Author: Owen Voorhees Status…
Swift Forums announcements
Swift Forums announcementsLanguages"Relaxed" floating-point operators Proposal here: Draft of relaxed floating-point operators. by stephentyrone · Pull Request #3545 · swiftlang/swift-evolution · GitHub Summary of changes Define operators on floating-point types that…
Swift Forums announcements
Swift Forums announcementsLanguagesGetting a span out of a String should not be this hard Currently to get a UnsafeBufferPointer or Span out of a String without requiring too high of a platforms requirement, you need code similar to the following for maximum performance…
Swift Forums announcements
Swift Forums announcementsLanguages[Pitch] List Swift Testing tags with swift test list --tags Hello everyone, swift test --filter tag: can already run Swift Testing tests by tag, but there is no way to see which tags a package uses.
Swift Forums announcements
Swift Forums announcementsLanguages[Pitch] Runtime enumeration of custom sections SE-0492 gave libraries the writing half of binary-section placement and listed the reading half, "a unified runtime API for reading section contents across platforms and modules", as a future…
Swift Forums announcements
Swift Forums announcementsLanguages[Pitch] Task cancellation scopes Hi everyone, @ktoso and I have written a pitch for what we call "task cancellation scopes". We have used these as an implementation detail of withDeadline but found multiple motivating use-cases that…
Swift Forums announcements
Swift Forums announcementsLanguages[Amend SE-0526] Clarify Deadline interactions with Cancellation Shields Hello everyone, While working on an upcoming proposal (task cancellation scopes) myself and @FranzBusch have realized another interaction of deadlines and cancellation shields we'd like to clarify…
Swift Forums announcements
Swift Forums announcementsLanguages[Pitch] Change CChar32 to UInt32 Hello! I'd like to propose a change to CChar32 , Swift's C/C++ type alias for char32_t . char32_t can hold values that are not valid Unicode scalars, so importing it as Unicode.Scalar is unsound.
Swift Forums announcements
Swift Forums announcementsLanguages[pre-pitch] Nonisolated nonsending Clock protocol I'd like to pre-pitch updating the Clock protocol to have a nonisolated(nonsending) sleep, just to get people's first impression.
Swift Forums announcements
Swift Forums announcementsLanguages[Pitch] Attachments in the Swift Testing JSON event stream Attachments are a popular feature of Swift Testing (and XCTest on Apple's platforms). When a test saves an attachment, it should be recoverable later by whatever tool(s) is used to analyze the test…
Swift Forums announcements
Swift Forums announcementsLanguages[Pitch] Observation performance and modeling improvements Observation is now the model layer of most new SwiftUI code, and it is increasingly used outside SwiftUI: in middleware, in synchronization between models, and on constrained targets.
Swift Forums announcements
Swift Forums announcementsLanguages[Pitch] Subprocess: Reporting the CPU time and peak memory of terminated child processes This pitch proposes adding resource usage reporting to swift-subprocess : the CPU time and peak memory of every child process it runs.
Swift Forums announcements
Swift Forums announcementsLanguages[Pitch] Bulk update operations for `MutableSpan` and `MutableRawSpan` Hello! This is a new proposal to add bulk operations for overwriting elements of a MutableSpan , by copying or by moving elements over them.
Swift Forums announcements
Swift Forums announcementsLanguages[Pitch] Standard name for common low level C interfaces There continues to be a need for Swift code to directly use low level C interfaces provided by the operating system platform.

Swift Forums announcementsLanguagesPitch: mTLS support in SwiftPM Package Registry Mutual TLS Authentication Related PR: mutualTLS (mTLS) support by thePianoKid · Pull Request #10578 · swiftlang/swift-package-manager · GitHub Introduction SE-0292 and SE-0378 added…
Swift Forums announcements
Swift Forums announcementsLanguages[Pitch #2] `@objcDirect` — direct dispatch for Objective-C-exposed methods Three years ago @SharonXu pitched an @objc_direct attribute . It stalled because Objective-C's direct methods had no stable ABI another compiler could target.
Swift Forums announcements
Swift Forums announcementsLanguages[Pitch] Add a `skip()` function to `UnkeyedDecodingContainer` Hi everyone, There was a similar 2019 pitch from @igorkulman , which received positive feedback but stalled before review. Its evolution PR and implementation PR were closed as stale in 2022.
Nothing matches this filter yet.