Ben Cohen

thwart leader

Ben Cohen boosted:
Swift Languageswiftlang
2025-06-27

Announcing the Swift on Android Working Group, with the goal of establishing and maintaining Android as an officially supported platform for Swift. More here: forums.swift.org/t/announcing-

An illustrative screenshot of Swift on Android.
Ben Cohenairspeedswift
2025-06-26

Passenger next to me just left her two airpods loose rattling around on her laptop keyboard when going to the bathroom. She even knocked the tray on the way out and they rolled up to the edge. It's freaking me out just looking at them sitting there ready to go right under the seats at any moment.

Ben Cohen boosted:
Konstantin đź”­iamkonstantin
2025-06-25

This talk from is a must watch! Shows one how to tackle concurrency in real apps, a lot of interesting clues on how to approach errors and warnings, how to (practically) refactor things to make it work and a list of concepts you may want to look up 📚 developer.apple.com/videos/pla

Ben Cohen boosted:
Craig Hockenberrychockenberry
2025-06-12

Approachable concurrency in Swift is such a welcome change.

It starts with the assumption that app developers have a simplified understanding of the language and its capabilities. Then it provides a way to extend that knowledge as their needs change.

So much better than "here's a hard hurdle you have to jump over to start".

Congrats & thanks to all who worked on it!

Ben Cohenairspeedswift
2025-06-12

@numist being from a place you had to get a boat to, mainly

Ben Cohenairspeedswift
2025-06-12

@schwa I'm guessing this is vs github.com/schwa/simple-disk-b? any chance you can share the swift version?

Ben Cohenairspeedswift
2025-06-12

@numist are you sure? before cars it was common for large numbers of people to get on boats, sail somewhere, and then go stab a bunch of strangers for no apparent good reason

Ben Cohen boosted:
Chris Adamsoninvalidname
2025-06-12

Foundation things for which docs are still in the works: NotificationCenter is now concurrency-friendly with a new "Messages" type. Lots of notifications in Foundation, UIKit, and AppKit are now available with this approach. Also in Foundation, there's a "" macro that's way nicer than doing Bundle(MyClass.self)… or god forbid, a hard-coded bundle identifier. developer.apple.com/documentat

Ben Cohen boosted:
2025-06-12

Recreating a bird animation: alexwlchan.net/2025/swift-bird

I learnt a bunch about animation on the web by reading the Swift.org source code, like:

✨ Using a dash pattern to draw partial paths
✨ HTML5 Canvas and globalCompositeOperation
✨ Anime.js
✨ MutationObserver
✨ prefers-reduce-motion: reduce

Ben Cohen boosted:
Max Desiatov 🇺🇦maxd
2025-06-11

Swift SDKs for WebAssembly are now available on swift.org for 6.2 and `main` development snapshots!

Huge announcement for me personally, this is something I could only dream of when almost 7 years ago I joined a few volunteers maintaining a patchset trying to add support for Wasm to Swift. A tremendous amount of effort from many people was put into polishing, upstreaming, and testing these changes. I'm grateful to everyone who helped and provided feedback 🙇

forums.swift.org/t/swift-sdks-

Ben Cohen boosted:
Uli Kusterer (Not a kitteh)uliwitness@chaos.social
2025-06-11

Some nice additions for annotating C++ code to make it import better into Swift:

developer.apple.com/videos/pla

#CPlusPlus #cpp #cxx #swiftlang

A table describing the new __counted_by(n), __noescape and  __lifetimebound annotations in Apple's clang and Swift's C parser.A table summarizing the SWIFT_NONESCAPABLE and SWIFT_SHARED_REFERENCE annotations in Apple's clang/Swift's C parser.
Ben Cohen boosted:
Max Desiatov 🇺🇦maxd
2025-06-11

âś… Achievement unlocked: "Get your work featured in WWDC sessions two years in a row"

This year it's thanks to @alllan demoing an animated 3D scene written in Swift compiled to Wasm rendered with WebGPU in Safari!

(And it's only a couple hundred kilobytes in final binary size with Embedded Swift)

youtube.com/watch?v=Pvf8OLnAUG

Ben Cohenairspeedswift
2025-06-10

“Specular highlights” are what my kids devices have after they make themselves a cookie butter sandwich.

Ben Cohen boosted:
2025-06-10

A cool thing that @nnnnnnnn has been cooking up for the last little while: github.com/apple/swift-binary-

Ben Cohen boosted:
2025-06-10

SpeechAnalyzer is a lightweight Swift API, powered by SpeechTranscriber, an on-device speech-to-text model designed for many use cases. It’s already powering transcription in Notes and other apps. Give it a try and send us feedback! Can’t wait to see what you build.

Ben Cohenairspeedswift
2025-06-09

Learn more from @egernst in Meet Containerization available later today

developer.apple.com/videos/pla

Ben Cohenairspeedswift
2025-06-09

Open source code for Containerization, a way to run Linux containers on macOS, is now live at github.com/apple/containerizat

Ben Cohen boosted:
Sven A. Schmidtfinestructure
2025-06-09

“Containerization Framework

The Containerization framework enables developers to create, download, or run Linux container images directly on Mac. It’s built on an open-source framework optimized for Apple silicon and provides secure isolation between container images.”

🤯🤤

apple.com/newsroom/2025/06/app

Ben Cohenairspeedswift
2025-06-09

Register here for the online group Swift lab tomorrow with me, @holly, @simanerush and @dgregor79

developer.apple.com/wwdc25/lab

Ben Cohenairspeedswift
2025-06-09

...and @ktoso takes you beyond the world of C interop with Explore Swift and Java interoperability

developer.apple.com/videos/pla

and too I suppose!

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst