Harlan Haskins

@harlan
2.4K Followers
272 Following
347 Posts
Lead engineer at https://typo.inc • Prev: visionOS at Apple. He/him.
Fix unintentionally-quadratic COW copies on insertion by harlanhaskins · Pull Request #1626 · swiftlang/swift-testing

This fixes an accidentally-quadratic COW copy of a subgraph whenever an item is inserted. Motivation: For large Swift Testing test suites with many parameterized test cases, we accidentally tripped...

GitHub
I think the fact that Task closures don't require explicit self is a huge footgun :(
the swift forum today has me saying "swift 7" like a Gen Alpha kid

Typo* is now Ready for Distribution (in invite only public beta) 🥳✳️

https://apps.apple.com/us/app/typo/id6717573143

DM me for an invite if you want to try it out.

‎Typo*

‎Typo* is a messaging app designed for teams who create. - Send media assets up to 20GB. Any file type - Drop timestamped comments on your videos and music - Stream your video or download the uncompressed version - Organize your assets into collections, which sync across devices - View and manage yo…

App Store
Just realized that I joined Mastodon in the Obama administration

📣 Speaker Announcement

How many different coordinates spaces are there across Apple platforms and how do you build interactions with them? We honestly don't know 🤷‍♂️ But...

@harlan will be taking the stage with "Coordinate spaces and you" so show us 🔭

you’re telling me a daylight is saving this time
For the visionOS-inclined here, the visionOS 2.4 SDK now has a very useful function — onGeometryChange3D! And it’s back-deployable to 2.0! https://developer.apple.com/documentation/swiftui/view/ongeometrychange3d(for:of:action:)
onGeometryChange3D(for:of:action:) | Apple Developer Documentation

Returns a new view that arranges to call whenever the value computed by changes, where provides access to the view’s 3D geometry properties.

Apple Developer Documentation
the term “wall time” refers to the additional time taken by the compiler due to the additional warnings enabled by -Wall
Does anyone know if there’s a way to tell definitively whether an NSItemProvider’s source representation is a file? It coerces in every accessor, but I would like to distinguish rich text files (attachments) from pasted rich text that comes from Notes.