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

@ctietze glad those old posts are still providing value. I lost the public repos when Bitbucket dropped support for Mercurial. I have them locally but haven’t converted them to git and pushed to GitHub.

All my code back then was MIT licensed, as that was as liberal as I could find. But I hereby give you permission to do whatever you want with the code.

The vector smoothing algorithm is a standard one, but I don’t remember the name.

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…

@bwebster Ah, that's helpful. The docs say that's the way it's supposed to work, so helpful to know it does in fact work that way.

I'm not getting any of those events for some reason. I _am_ getting the lower level touchesBegan, et al if I override those methods. Suggests that I've somehow misconfigured something somewhere.

Handling Trackpad Events

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