The below is an off-site archive of all tweets posted by @mjtsai ever

August 19th, 2015

@rob_rix So it doesn't work if f takes an array instead of a SequenceType?

via Tweetbot for Mac in reply to rob_rix

@rosyna Interesting that they added hash ivar for NSIndexPath. NSStringDrawing is a category so not sure what you are referring to there.

via Tweetbot for Mac in reply to rosyna

@rob_rix How can you do that if the sequence you receive is not final?

via Tweetbot for Mac in reply to rob_rix

@rob_rix Wonder how often that is. I would think you’re usually passed in a collection and don’t know its type.

via Tweetbot for Mac in reply to rob_rix

@rob_rix Right, I meant how NSFastEnumeration was designed to avoid message sends.

via Tweetbot for Mac in reply to rob_rix

@rob_rix that slow or that the batching isn’t that worth it.

via Tweetbot for Mac in reply to rob_rix

@rob_rix Yeah, just seems like an odd omission given the focus on performance. Seems like conclusion is either that message sending was not

via Tweetbot for Mac in reply to rob_rix

@rosyna So, again, this is not (yet) an actual performance improvement resulting from Objective-C 2.

via Tweetbot for Mac in reply to rosyna

@rosyna But it didn’t break compatibility, and in fact NSEnumerator conforms to NSFastEnumeration (though probably not very fast).

via Tweetbot for Mac in reply to rosyna

Is there any optimization like NSFastEnumeration (batch fetching, detecting mutations) in Swift? SequenceType doesn’t seem to do that.

via Tweetbot for Mac

@rosyna So why are they still using it now that we have Objective-C 2?

via Tweetbot for Mac in reply to rosyna

@rosyna I kind of doubt removing old ivars from view classes makes up for slowing down every ivar access with extra indirection.

via Tweetbot for Mac in reply to rosyna

@rosyna Non-fragile is great for other reasons, but if we're talking about optimization…

via Tweetbot for Mac in reply to rosyna

@rosyna Compiler support, yes. But I thought we were talking about breaking backward compatibility.

via Tweetbot for Mac in reply to rosyna

@rosyna Why wouldn't fast enumeration have been possible before? Were there really a lot of unused ivars removed?

via Tweetbot for Mac in reply to rosyna

@mpweiher So when is your book coming out? :-)

via Tweetbot for Mac in reply to mpweiher

Creating a Kill-Switched VPN With PIA and Little Snitch: mjtsai.com/blog/2015/08/1…

via IFTTT

Generic “Functions” in Objective-C: mjtsai.com/blog/2015/08/1…

via IFTTT

Generic “Functions” in Objective-C: mjtsai.com/blog/2015/08/1…

via IFTTT

Ripping CDs and Backing Up Content Is Illegal in the UK: mjtsai.com/blog/2015/08/1…

via IFTTT