@airspeedswift@mastodon.social
@airspeedswift@mastodon.social avatar

airspeedswift

@airspeedswift@mastodon.social

thwart leader

This profile is from a federated server and may be incomplete. Browse more on the original instance.

airspeedswift, to random
@airspeedswift@mastodon.social avatar

I once had a user who refused to let us install a new version of our app on their machine, saying “I don’t want a new version, I want you to fix the version I have”.

airspeedswift, to random
@airspeedswift@mastodon.social avatar

Y’all are putting way too much inside didSet.

I get how temptingly convenient it is but it’s setting things up for future sadness.

Also no taking all that logic and stuffing it in a single method you call from didSet. You’re not fooling anyone.

airspeedswift, to random
@airspeedswift@mastodon.social avatar

Loads of great content for you this week, starting with @dgregor79 and me taking you through the latest improvements in What’s new in Swift

https://developer.apple.com/wwdc23/10164

airspeedswift, to random
@airspeedswift@mastodon.social avatar

A seasonal question: what candy that is available globally has the worst-tasting American version?

My vote is for KitKat.

Rules: this is for things that are supposed to be the same thing in the US and globally. This isn’t related to naming i.e. smarties in the US are a different thing to in the UK. Milky Way in the US should be compared to a Mars Bar. Also “kinda the same thing” doesn’t count i.e. you can’t say Malteasers/Whoppers they’re different (otherwise that would be the runaway winner).

airspeedswift, to random
@airspeedswift@mastodon.social avatar

Since people are still talking about Dune 2, here’s my contribution, which is that I was disappointed they left out 1/ the part about how Salusa Secundus and Arrakis were similarly harsh and 2/ basically anything about mentats

airspeedswift, to random
@airspeedswift@mastodon.social avatar

I am begging you to stop using forEach

airspeedswift, to swift
@airspeedswift@mastodon.social avatar

The team that works on the interop between and C++ are hiring! Come help people move to a safer friendlier future.

https://jobs.apple.com/en-us/details/200531386/compiler-frontend-engineer?team=SFTWR

airspeedswift, to random
@airspeedswift@mastodon.social avatar

Shaved off my beard for the Xmas break, over the objections of the 11yo who says it makes me look “weird and wrong”

airspeedswift, to random
@airspeedswift@mastodon.social avatar

UK coffee seems to be getting worse. Just an ocean of watery americanos.

airspeedswift, to random
@airspeedswift@mastodon.social avatar

The boy wanted to know what a SCART cable looked like. I checked my box of emotional support cables and was sorry to discover it doesn’t contain one.

He said a picture would do but it really won’t. You have to hold one, to try twisting it and feel the resistance and hear the crinkling of the inner wires, to stare at the giant plug and poke its sharp connector teeth, to truly understand it.

airspeedswift, to random
@airspeedswift@mastodon.social avatar

In What's new in Swift I mention the performance improvements from the new Swift implementation of Foundation. Performance came up a lot when we first put the open source package live, but wasn't easy to talk about until the new OS betas were available.

One common trope at the time was “it isn't faster than using Objective-C, this is just to reduce Swift bridging costs” and while that's true, it's important to note Swift is just plain faster, as seen even when calling into it from ObjC.

airspeedswift, to random
@airspeedswift@mastodon.social avatar

I am drawing the line at learning what the low temperatures mean when they're in farenheit

airspeedswift, to random
@airspeedswift@mastodon.social avatar

Whole Foods we need to talk about which continent you think turkeys come from

airspeedswift, to random
@airspeedswift@mastodon.social avatar

Mmm hmmm mmm hmm

airspeedswift, to swift
@airspeedswift@mastodon.social avatar

Did you know python for loops can have an else clause? It's code that only runs if the loop terminates naturally without a break.

doesn't have this exact feature, but you can get the same result with a labelled continue.

A screenshot of some Swift code: outer: for n in 2..<10 { for x in 2..

airspeedswift, to random
@airspeedswift@mastodon.social avatar

If you're a frequent visitor, making forums.swift.org a Dock app in Sonoma works great.

airspeedswift, to random
@airspeedswift@mastodon.social avatar

wait wait wait wait wait

wait

I am only now realizing the true horror, how has it taken me this long.

(our UK SNES looked like the top one)

airspeedswift, to random
@airspeedswift@mastodon.social avatar

Oil of EULA

airspeedswift, to random
@airspeedswift@mastodon.social avatar

// Only access this property via the queue

Narrator: but it was not only accessed via the queue

airspeedswift, to random
@airspeedswift@mastodon.social avatar

ICYMI, in Xcode 15, if you highlight part of a line and hit cmd-/, it comments just that part of the line out with /* */

airspeedswift, to random
@airspeedswift@mastodon.social avatar

There's this increasing tendency to talk about memory safety as if, because it's the most pressing problem right now, solving it means you've won the battle. But that's not the end goal… it's the start. Literally the least you can do.

airspeedswift, to random
@airspeedswift@mastodon.social avatar

How? That needs to be like a kilo of broccoli.

airspeedswift, to random
@airspeedswift@mastodon.social avatar

Just idly logged on to animal crossing after a year, to find the 11yo has accessed my account and plundered all my stuff.

airspeedswift, to swift
@airspeedswift@mastodon.social avatar

Experimental support for generic noncopyable types in the standard library is now available in the nightly toolchain.

Here's a simple demonstration of adoption of this feature on the Swift Playdate example project. Switching the Sprite type from an enum+class box to a simpler non-copyable struct drops binary size from 7k to 6k on the SwiftBreak game.

https://github.com/apple/swift-playdate-examples/pull/13

airspeedswift, to random
@airspeedswift@mastodon.social avatar

I guess I could have posted that on my blog, except the dust is pretty caked on at this point, needs scraping off.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines