A Swift 6.4 Linux report shows a changed working directory breaking a macro that reads a relative file. Not confirmed as a general bug yet.
#SwiftLang

A Swift 6.4 Linux report shows a changed working directory breaking a macro that reads a relative file. Not confirmed as a general bug yet.
#SwiftLang
Swift Subprocess may expose CPU time and peak memory per child process. Subprocess owns the lifecycle point where this data can be collected reliably.
#SwiftLang
SE-0550 changed during review: Swift's proposed per-function sanitizer control is now @instrumentation(disable: ...), with nested closures/local functions inheriting it. The review is extended to Oct 8.
https://forums.swift.org/t/se-0550-nosanitize-attribute-for-functions/89593
#SwiftLang
2 Swift Evolution proposals changed status this week.
The tracker checks the official metadata daily and keeps a readable history, so you don't have to monitor every proposal manually.
SE-0554 proposes deployment-target conditional compilation for Swift: compile code based on the app's minimum OS target, rather than runtime availability.
https://forums.swift.org/t/se-0554-deployment-target-conditional-compilation/89822
#SwiftLang
Developing cloud services in Swift (#swiftlang) just got a major boost, with extensive (I mean, really an absurdly large number of APIs) Google SDK support - cloud.google.com/blog/topics/...
Lean on swiftly to install a toolchain, and then lean on the Google Cloud SDKs they've just made available!
Swift Collections' Deque hides a ring buffer behind familiar Swift collection semantics.
A source-level look at indexing, split storage and copy-on-write.
https://ivantokar.com/posts/swift-collections-why-deque-uses-a-ring-buffer
#SwiftLang
Dive into how static and dynamic dispatch work in Swift, how they affect performance, and how to control method resolution to write faster, more efficient code: nilcoalescing.com/blog/MethodD...
#SwiftLang
Throwing this out there as a request for swift 7: update the package description API to use a ResultBuilder.
Respectfully, someone who was just caught by forgetting to add a comma.
Cross-platform Swift still needs different imports for low-level C APIs: Darwin, Glibc, Musl, Android, WASILibc, CRT… A new pitch proposes one common name: CSystem.
https://forums.swift.org/t/pitch-standard-name-for-common-low-level-c-interfaces/89825
#SwiftLang
Molecules of Swift #002: Tuple Patterns.
Keep a tuple while you need the whole value. Take it apart when separate names make the next code clearer.
https://ivantokar.com/posts/tuple-patterns-destructure-values-where-you-use-them
#SwiftLang #MoS
Swift’s Networking Workgroup is leaning toward a native Swift HTTP stack, not only wrappers over existing backends. The goal: control over performance and behavior.
#SwiftLang
📰 September monthly updates now available: forums.swift.org/t/swift-for-...
A Swift isolation bug can make actor/protocol conformance behave differently across module boundaries with default @MainActor isolation. A compiler fix is on main, but hasn't shipped.
#SwiftLang
#GRDB can turn a #SQLite query into a stream of fresh values by tracking the database region behind the read.
I looked at ValueObservation, DatabaseRegion, transaction events, and concurrent reads.
https://ivantokar.com/posts/grdb-turning-sqlite-queries-into-live-application-state
#SwiftLang
Swift may change `Float.pi`. SE-0552 proposes the nearest representable Float instead of forcing π to round toward zero. Only Float changes; Double and the other standard floating-point types already match the new rule.
https://forums.swift.org/t/se-0552-rounding-of-float-pi/89716
#SwiftLang
Swift 6.4 adds withTaskCancellationShield, but it requires iOS 27/macOS 27. The following article provides a workaround to support earlier OS versions:
https://www.swiftdifferently.com/blog/swift/concurrency/with-task-cancellation-shield
Swift may get per-function sanitizer control. SE-0550 targets low-level code where instrumentation interferes with the operation, while review discussion considers a more general instrumentation API.
https://forums.swift.org/t/se-0550-nosanitize-attribute-for-functions/89593
#SwiftLang
When is a Swift tuple enough, and when do you need a named type?
I'm launching Molecules of Swift, a new series exploring small Swift features and patterns.
https://ivantokar.com/posts/tuples-group-values-without-creating-a-type
#SwiftLang
SwiftPM has a proxy gap: Git can resolve dependencies while SwiftPM's binary-target download fails. SE-0549 adds proxy config for SwiftPM HTTP operations.
https://forums.swift.org/t/review-se-0549-package-manager-http-proxy-configuration/89513
#SwiftLang