Daniel Duan

@dduan
605 Followers
127 Following
705 Posts

"Now, we can use Swift in all parts of the compiler, including the parser, AST, type checker or mandatory SIL passes."

https://forums.swift.org/t/dropping-the-requirement-for-c-only-bootstrapping/87739

Dropping the requirement for C++-only bootstrapping

Dear compiler developers, I'm happy to announce that from now on "mandatory" parts of the compiler can be implemented in Swift (on the main branch). So far we only used Swift as an implementation language in parts of the compiler which are not strictly necessary for correct code generation of the standard library, like some optimization passes. Now, we can use Swift in all parts of the compiler, including the parser, AST, type checker or mandatory SIL passes. We are dropping the requirement ...

Swift Forums
Vim users have opinions about agent skills.

SwiftUI perf tip

In lazy containers (List, LazyVStack), the view ForEach produces per element should be a *constant* number of views. An if inside the closure means 1 or 0 views, non-constant, and hits a slow path.

Wrap the condition in a VStack:

ForEach(namedFonts) { namedFont in
VStack {
if namedFont.name.count != 2 {
Text(https://namedFont.name)
}
}
}

or filter your data upfront.

Debug with: -LogForEachSlowPath YES

đź”— https://developer.apple.com/documentation/swiftui/foreach

Now for the real celebration: so many sessions to watch 🤓

Today #WWDC26 introduced a brand new version of the “alert” and ”confirmationDialog” modifiers that are not only simpler and more ergonomic, but they are more correct, preventing impossible states.

This is the 3rd iteration of the “alert” API in SwiftUI!

So many great sessions from Swift Intelligence Frameworks & friends this year! Will try to toot links to them all separately, starting with....What's new in the Foundation Models framework with Erik and Zhen! https://developer.apple.com/videos/play/wwdc2026/241/ #wwdc26
What’s new in the Foundation Models framework - WWDC26 - Videos - Apple Developer

Explore what's new in the Foundation Models framework. Learn how to access Private Cloud Compute, integrate third-party and open source...

Apple Developer
Hope you like lazy stuff cause we made State and AsyncImage lazy.

My WWDC26 session is out: Use SwiftUI with AppKit and UIKit đź’ˇ

I walk through incrementally adopting SwiftUI in an app you already have: using Observation to update your AppKit and UIKit views automatically, embedding SwiftUI into an existing view hierarchy, bringing gesture recognizers across, and adding full SwiftUI scenes without rearchitecting.

đź”—https://developer.apple.com/videos/play/wwdc2026/272

Use SwiftUI with AppKit and UIKit - WWDC26 - Videos - Apple Developer

Discover how to incrementally adopt SwiftUI in your existing AppKit or UIKit app. We'll show you how to use the Observation framework to...

Apple Developer
I learned to program a quarter century ago đź’€

If this sounds fun to you, we are extremely hiring: https://jobs.apple.com/en-us/details/200592135-0836/platform-and-frameworks-software-engineer-sear?team=SFTWR

Happy to have coffee about it with mutuals, and yes, it's in Cupertino. When I changed roles in 2024 my initial goal was just to find an office closer to my home in Oakland. This team is delivering high impact results with career-defining projects that is worth the (3 days a week) commute.

Platform and Frameworks Software Engineer, SEAR - Jobs - Careers at Apple

Apply for a Platform and Frameworks Software Engineer, SEAR job at Apple. Read about the role and find out if it’s right for you.