Swift and Go. Love 'em both. They make me mad in completely different ways. Infosec as required. mastodon.social/@cocoaphony

Joined May 2009
243 Photos and videos
I'm not particularly leaving Twitter, but I am spending a lot less time here. Most of my posts are now on mastodon.social/@cocoaphony, and that's where I spend more of my time reading. I'll post to Twitter for things that need more reach, and I still look at Twitter every day or two.
2
1
8
A short anecdote on getting answers on the modern internet: cocoaphony.micro.blog/2023/0…

2
1,277
A Reminder About NSRange and String: cocoaphony.micro.blog/2023/0…

1
2
5
1,661
Big-O matters, but it's often memory that's killing your performance.: cocoaphony.micro.blog/2022/1…

1
4
40
8,335
Life comes at you fast. In a few weeks, my "I'm bored" muscle memory has gone from "tw\n" to "mas\n". (after "sta\n") I think this wake is premature. Things can shamble on a long time (livejournal). But still, Mastodon has already replaced this for me. Took 2-3 weeks.
4
Any custom Instruments experts out there? Maybe this is just a limitation in Instruments to keep it faster? stackoverflow.com/questions/…

3
I've never had a response from Apple so fast & helpful through dev forums (not counting Swift forums). Even though the answer is "this isn't possible, please open a FB," that's totally fine, and for once in a long time, I was happy to open the FB. developer.apple.com/forums/t…

1
7
Rob Napier - @cocoaphony@mastodon.social retweeted
31 Oct 2022
About Friday at Twitter HQ - I didn’t do enough to confirm and I regret the mistake
2,338
572
11,579
Is there really no written usage documentation for RegexBuilder? I see one small example in the docs. But I can't find anything else. (That said, @k_katsumi's swiftregex.com is brilliant and helped me a ton figuring things out.)

1
11
Spent today chasing this one down. The error message is a lie. The solution is a little ugly, but not difficult and should be quite robust. cocoaphony.micro.blog/2022/1…

1
1
7
Solving "Required kernel recording resources are in use by another document" in Instruments.: cocoaphony.micro.blog/2022/1…

1
4
Rob Napier - @cocoaphony@mastodon.social retweeted
Replying to @cocoaphony
I always find these types of discussions interesting. Optimization is hard and I keep finding examples where poor performance has nothing to do with multi-threading or anything other than they choose to repeatedly ask the same expensive question
1
1
2
May I remind us all again to first optimize on a single core, and *then* worry about making things parallel (if that's even needed). It's harder than it sounds to make parallel algorithms fast.
3
3
20
Optimizing the parallel code is forcing me to think deeply about Swift implementation details. Conversely, optimizing the sequential code has mostly been "Run Instruments. Where is my code spending its time? Rewrite that little piece. Repeat."
1
6
Side note: writing this with async/await and GCD have identical (even if poor) performance. The async/await is nicer to write. So definitely a win for async/await. 👍🏼
1
9
Whoa. After Apple letting so many conferences whither for lack of support, is there finally change? I’m hopeful this isn’t a one-off. Thank you. The community has needed Apple’s support for so long, and it means a lot to see it.
2
11