Andy Finnell

@andyfinnell
60 Followers
54 Following
223 Posts
Today, I attempted to use aio_read/aio_write on macOS to do some async file I/O. I'm pretty sure I'm the only person in the whole universe to ever attempt this, including whoever “implemented" it in the OS.

Enough has changed from my initial polling confirmation for Swift Testing pitch that I was asked to put up a second pitch thread! So... here it is! This is much more mature, and I will be eternally grateful for all who gave feedback and helped bring this where it is!

https://forums.swift.org/t/pitch-2-polling-confirmations-in-the-testing-library/81711

#SwiftLang #TDD #UnitTesting #testing

[Pitch 2] Polling Confirmations in the Testing Library

Hello all! Here is a refined pitch originally posted to the Development > Swift Testing subcategory. Original Pitch Read the full proposal here. There is a full implementation available here. To try it out, follow these steps: Add my fork of Swift Testing as a dependency, specifying the polling-expectations branch. Add .package(url: "https://github.com/younata/swift-testing.git", branch: "polling-expectations") to the dependencies list in your Package.swift. When importing, use the Exper...

Swift Forums

Here's something I've been working on for a while. A closer look at one of the least-well understood components of Swift's concurrency system: `@Isolated(any)`.

I tried my best to respect both the medium and topic.

https://nshipster.com/isolated-any/

@isolated(any)

There are cases where just a little more visibility and control over how to schedule asynchronous work can make all the difference.

NSHipster
I had a great time chatting with @younata about what's new in Swift Testing. If you are looking to learn about what's coming to Swift soon, check this episode out.
https://brightdigit.com/episodes/202-swift-testing-with-rachel-brindle
Looks like this landed last night, it addresses a number of known cases of slow expression type checking in Swift: https://github.com/swiftlang/swift/pull/82574
[ConstraintSystem] Implement disjunction favoring algorithm behind a flag by xedin · Pull Request #82574 · swiftlang/swift

Partially revert [ConstraintSystem] Revert new disjunction favoring algorithm #79128 (all of the old hacks are left in place) Include fixes from [CSOptimizer] A few improvements to inference and ra...

GitHub

Got testing questions? 🧪
Join the interactive “Testing” session—bring your Qs, explore what’s new, or tackle live challenges with experts Rachel Brindle & Dalton Alexandre—today at 10:30 AM during the One More Thing Conference. Reserve your spot → https://lu.ma/jhp3xzx6

#Testing #iOSDev #OMTConf

One More Thing · Luma

One More Thing 2025: WWDC Week Conference Join us for four days of learning, connection, and community during WWDC25! One More Thing brings together Apple…

Level-up your testing game! 🧪
Rachel Brindle breaks down “What’s New in Testing at WWDC 25” this Thursday at 10 AM at the One More Thing Conference. Save your seat → https://lu.ma/jhp3xzx6

#Testing #WWDC25 #OMTConf

One More Thing · Luma

One More Thing 2025: WWDC Week Conference Join us for four days of learning, connection, and community during WWDC25! One More Thing brings together Apple…

Handling Trackpad Events

Introduces event mechanisms and the types of events in Cocoa and describes how to handle events of each type.

#LazyToot In AppKit, if I want to capture a pinch gesture from the trackpad in my custom NSView, how do I do that?

I've tried `NSMagnificationGestureRecognizer` and looking for `.magnify` and `.smartMagnify` NSEvent types.

Apparently it was a bug that I could use bare typenames as arguments to macros. e.g. `@\MyMacro(MyType)`. Now I have to be more verbose as `@\MyMacro(MyType.self)`. Also requires my macro implementation to do more parsing. :-/