Y'all wanna see an excessively cute trick LLVM's optimizer can do?
Swift String contains roughly this method:
```
func _fastCStringContents() -> UnsafePointer<UInt8> {
if isASCII {
return contentsPointer
}
return nil
}
```
Where `isASCII` is defined as `(flags & 0x8000_0000_0000_0000) != 0`
Would you expect this to generate (solution in reply)
Say, any experts who know about `@ _implementationOnly import` in Swift?
I'm having trouble finding information about it and am reviewing some legacy code that uses it. The reason it was used was to avoid confusing people by having them see an internal C library.
I'm seeing a warning about having to turn on library evolution, which seems confusing.
Very humble beginnings for Routines on iOS 26
Haven’t redesigned any of the custom views for Liquid Glass but it’ll get there eventually
A couple weeks ago, I gave a talk at @omt_conf on What's New in Testing. That talk was recorded, but while I wait for it to be edited and published, I published an edited (and updated!) version of my speaker notes from that talk.
There's a lot new in testing since last year. I'm still surprised there wasn't a WWDC video about all the new things you can do.
https://rachelbrindle.com/2025/06/26/whats-new-in-testing-swift-6-2/
Say, I'm using FileDocument in a SwitfUI lifecycle app, but it only gives me a file wrapper. Is there a similarly modern approach to let me get at the path of the file?
Update: OH THANK GOODNESS I WAS WRONG! It actually mapped it to UnsafeMutablePointer<UInt8> in the argument and only got uses of the typedef in Swift wrong! That's sensible enough that I can use it!
Ohhh Swift ... why do you have to map an uint8_t[8] in C to a (UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8) and not an Array or Data ...
I hope InlineArray comes with at least a compiler flag that tells it to make these InlineArray objects.
Well, that’s nice!
This is my recipe converter app for air fryers and ovens.
If your food often ends up overcooked or undercooked, this app is for you!
https://apps.apple.com/fr/app/airfryer-conversion-recette/id6741083207
#iosapp #iosdev #swiftlang #buildinpublic #indiedev
#osssummit #ossummit (what is the official hash? lol):
want a #pkl pin? apple containerization sticker? or #swiftlang stickers or pins? let’s meet up!
#osssummit #ossummit folks: go watch my friend Euan’s talk at 130pm local (ten mins from this time stamp)
bluebird ballroom 2F
#swiftlang #containers #cloudnative
tonight!! lil happy hour with a side of #opensource in #denver. 530-730p local.
#osssummit #ossummit #containers #devops #swiftlang
RE: @paris/114701969085397141@hachyderm.io
XCTests template and runtime for Mac and iOS https://notepadexe.com
now, the snippet may have full-feature #swiftlang tests, or I can run tests on the side
How do I make sure the #swiftlang async function will not be called on MainActor?
Task {
// Not main actor
try await foo()
}
func foo() {
// MainActor
}
I don't do any annotation for the foo. How is that even possible?
Swift 5.9, Xcode 16.4
#Denver: Apple’s containerization framework and tooling crew (github.com/apple/container, etc) is hanging out with the Denver DevOps community on Monday night (24th) during OSS Summit week.
Lots of snacks and bring your laptops to play with the new tools.
#swiftlang #containers #opensource #osssummit #ossummit
This inspired me to build proper JavaScript operators for #SwiftLang: https://mastodon.social/@BrendanThompson/114697574788565486
No more inconsistency w/ the language of the web! Gist: https://gist.github.com/helje5/4da7f58649ebeb842b9acd7215fae1c4
Proxygen app just got a new home at https://proxygen.app
The website has pretty extensive documentation about all the tools and setting up the proxy for common use cases.
These new Network Swift APIs are amazing. Having coded many a chats and server-client online apps that native networking support for Codable sounds like a dream #wwdc #wwdc25 #swiftlang
https://developer.apple.com/videos/play/wwdc2025/250
I’m never sure if our ramblings make much sense but having listened back to our most recent episode I’m going to give a tentative recommendation that the LLM discussion might be worth a listen
Swift 6.2
SE-0481 is introducing "weak let" to Swift 6.2!
That will allow us to create immutable weak references that can't be reassigned after initialization, but can still become nil when the referenced object is deallocated.
This is a game-changer for Sendable compliance (weak var can't be Sendable, but weak let can!)
#Swift #iOS #SwiftConcurrency #SwiftLang
https://github.com/swiftlang/swift-evolution/blob/main/proposals/0481-weak-let.md
My talk at OneMoreThing 2024 on #UnitTesting #SwiftUI and #SwiftConcurrency was recorded, but has yet to be edited and uploaded.
Last night, I published an edited form of my speaker notes from that talk to my blog.
https://blog.rachelbrindle.com/2025/06/12/testing-swiftui-and-swiftconcurrency/