cocoaphony Profile Banner
Rob Napier - @cocoaphony@mastodon.social Profile
Rob Napier - @[email protected]

@cocoaphony

Followers
7K
Following
13K
Media
243
Statuses
18K

Swift and Go. Love 'em both. They make me mad in completely different ways. Infosec as required. https://t.co/Tx31kqZCRI

Raleigh, NC
Joined May 2009
Don't wanna be here? Send us removal request.
@cocoaphony
Rob Napier - @[email protected]
3 years
I'm not particularly leaving Twitter, but I am spending a lot less time here. Most of my posts are now on 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.
0
1
8
@cocoaphony
Rob Napier - @[email protected]
2 years
A short anecdote on getting answers on the modern internet:
0
0
2
@cocoaphony
Rob Napier - @[email protected]
2 years
A Reminder About NSRange and String:
1
2
6
@cocoaphony
Rob Napier - @[email protected]
3 years
Big-O matters, but it's often memory that's killing your performance.:
1
4
40
@cocoaphony
Rob Napier - @[email protected]
3 years
Pull Requests are a story:
3
1
19
@cocoaphony
Rob Napier - @[email protected]
3 years
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.
0
0
4
@cocoaphony
Rob Napier - @[email protected]
3 years
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.
1
0
7
@cocoaphony
Rob Napier - @[email protected]
3 years
Any custom Instruments experts out there? Maybe this is just a limitation in Instruments to keep it faster?.
3
0
0
@cocoaphony
Rob Napier - @[email protected]
3 years
RT @krzyzanowskim: Invitation:
0
2
0
@cocoaphony
Rob Napier - @[email protected]
3 years
RT @dee_bosa: About Friday at Twitter HQ - I didn’t do enough to confirm and I regret the mistake
0
595
0
@cocoaphony
Rob Napier - @[email protected]
3 years
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 is brilliant and helped me a ton figuring things out.).
0
1
11
@cocoaphony
Rob Napier - @[email protected]
3 years
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.
1
1
7
@cocoaphony
Rob Napier - @[email protected]
3 years
Solving "Required kernel recording resources are in use by another document" in Instruments.:
0
1
4
@cocoaphony
Rob Napier - @[email protected]
3 years
RT @menotyousharp: @cocoaphony I always find these types of discussions interesting. Optimization is hard and I keep finding examples wher….
0
1
0
@cocoaphony
Rob Napier - @[email protected]
3 years
RT @lizardbill: How to write a great Stack Overflow question
0
3
0
@cocoaphony
Rob Napier - @[email protected]
3 years
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
0
9
@cocoaphony
Rob Napier - @[email protected]
3 years
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
0
6
@cocoaphony
Rob Napier - @[email protected]
3 years
Just rewrote one very over-clever Dictionary(grouping:) as a for-loop and sped things up more than throwing 4 cores at the problem. Despite using structs exclusively, my parallel code is getting bogged down in ARC for COW. More cores just makes it slower because more contention.
1
0
5
@cocoaphony
Rob Napier - @[email protected]
3 years
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
@cocoaphony
Rob Napier - @[email protected]
3 years
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
0
11