@mattiem @DaylishApp next will be @zenitizer but that’s a little more ambitious as the code base is older … but I’m motivated to do this now.

I think the “post Swift 6.2 world” is a good time for folks who were curious about #SwiftConcurrency but haven’t embraced it yet to give it a go 🤓

“… we can entirely eliminate suspension points and make everything synchronous when dealing with an actor …”

Only a MONSTER can leave me waiting for another week with this cliffhanger!!! 🥲

On a serious note, I’ve been really enjoying this series from @pointfreeco and cannot wait for the rest of videos!

#SwiftConcurrency

Really quickly this morning, I pulled out some swift async helpers I've been using in some personal apps into a separate repo, mostly to make it easier to keep them all in sync. I published it at https://forge.younata.com/you/AsyncExtensions

Probably the most interesting thing there is AsyncMultiChannel. Which is like https://github.com/apple/swift-async-algorithms/blob/main/Sources/AsyncAlgorithms/AsyncAlgorithms.docc/Guides/Channel.md, but it supports multiple subscribers. I should rename it, because it's intended to be used in more of a pub-sub architecture than as 1-1 communication.

#SwiftLang #SwiftConcurrency

AsyncExtensions

Async Extensions for Swift

forge.younata.com
I’m having crazy horrible ideas that will make me lose my job before Sonet 4.6, but here I go: can I check at runtime where the current scope is executing? I.e. I want a boolean that represents if it’s in the main thread, or not #iosProgramming #swiftConcurrency

🚀 I just released Swift Streamable Actors v1.0!

If you’ve ever wanted to observe changes to a Swift Actor's state as an AsyncStream without writing 30 lines of boilerplate for every property, this macro is for you.

Key highlights: ✅ 100% Type-safe (no type-erasure/AnyKeyPath) ✅ Memory safe (static factories avoid strong reference cycles) ✅ Clean API: @Streamable does it all.

Check out the code: https://github.com/malhal/swift-streamable-actors

#SwiftConcurrency #SwiftMacros #OpenSource

GitHub - malhal/swift-streamable-actors: Streamable Actors for Swift

Streamable Actors for Swift. Contribute to malhal/swift-streamable-actors development by creating an account on GitHub.

GitHub

Looked at code using Swift Concurrency:

Immediately found a bug:

state = .working(progress: 0)
await doSomething() { percent in
state = .working(progress: percent)
}
state = .done

What’s the value of `state` now?
(“Surely `.done`” is the wrong answer)

#Swift #SwiftConcurrency #SC #VibeCoders

🤦‍♂️ "Finally understand Swift concurrency" - because reading endless jargon-filled screeds is exactly how everyone wants to spend their afternoons. 🙄 Huge thanks to Matt for translating developer hieroglyphics into slightly less intimidating developer hieroglyphics! 🎉
https://fuckingapproachableswiftconcurrency.com/en/ #SwiftConcurrency #Understanding #DeveloperJargon #TechTranslation #CodingHumor #DeveloperCommunity #HackerNews #ngated
Fucking Approachable Swift Concurrency

A no-bullshit guide to Swift concurrency. Learn async/await, actors, Sendable, and MainActor with simple mental models. No jargon, just clear explanations.

Fucking Approachable Swift Concurrency
Fucking Approachable Swift Concurrency

A no-bullshit guide to Swift concurrency. Learn async/await, actors, Sendable, and MainActor with simple mental models. No jargon, just clear explanations.

Fucking Approachable Swift Concurrency

What do robot toddlers and coloring pages teach us about data races? First in a series building concrete mental models for Swift Concurrency. Feedback welcome!

https://krishna.github.io/posts/understanding-data-races-visual-guide/

#swift #concurrency #swiftconcurrency #swift6

Understanding Data Races: A Visual Guide for Swift Developers

Thoughts about Software and Building Software

Krishna's Blog

Notifications crashing with concurrency errors? Replace unsafe 𝑛𝑜𝑡𝑖𝑓𝑦() calls with 𝘔𝘢𝘪𝘯𝘈𝘤𝘵𝘰𝘳𝘔𝘦𝘴𝘴𝘢𝘨𝘦 and 𝘈𝘴𝘺𝘯𝘤𝘔𝘦𝘴𝘴𝘢𝘨𝘦. Thread-safe, modern, and built for async/await.

🔗 https://www.avanderlee.com/concurrency/mainactormessage-asyncmessage-concurrency-safe-notifications/ by Antoine van der Lee (@swiftlee)

#Concurrency #SwiftConcurrency #iOS

MainActorMessage & AsyncMessage: Concurrency-safe notifications

Dive into notifications and Swift concurrency. Discover the updated notification API that ensures thread safety.

SwiftLee