@rob_rix So it doesn't work if f takes an array instead of a SequenceType?
@rosyna Interesting that they added hash ivar for NSIndexPath. NSStringDrawing is a category so not sure what you are referring to there.
@rob_rix How can you do that if the sequence you receive is not final?
@rob_rix Yes, that is nice.
@rob_rix Wonder how often that is. I would think you’re usually passed in a collection and don’t know its type.
@rob_rix Right, I meant how NSFastEnumeration was designed to avoid message sends.
@rob_rix that slow or that the batching isn’t that worth it.
@rob_rix Yeah, just seems like an odd omission given the focus on performance. Seems like conclusion is either that message sending was not
@rosyna So, again, this is not (yet) an actual performance improvement resulting from Objective-C 2.
@rob_rix So no batching.
@rosyna But it didn’t break compatibility, and in fact NSEnumerator conforms to NSFastEnumeration (though probably not very fast).
Is there any optimization like NSFastEnumeration (batch fetching, detecting mutations) in Swift? SequenceType doesn’t seem to do that.
@rosyna So why are they still using it now that we have Objective-C 2?
@rosyna I kind of doubt removing old ivars from view classes makes up for slowing down every ivar access with extra indirection.
@rosyna Non-fragile is great for other reasons, but if we're talking about optimization…
@rosyna Compiler support, yes. But I thought we were talking about breaking backward compatibility.
@rosyna Why wouldn't fast enumeration have been possible before? Were there really a lot of unused ivars removed?
@rosyna That's a good one.
Top 10 Worst C# Features: mjtsai.com/blog/2015/08/1… #mjtsaiblog
@rosyna Example?
@mpweiher So when is your book coming out? :-)
Creating a Kill-Switched VPN With PIA and Little Snitch: mjtsai.com/blog/2015/08/1… #mjtsaiblog
Generic “Functions” in Objective-C: mjtsai.com/blog/2015/08/1… #mjtsaiblog
WebKit Backdrop Filters: mjtsai.com/blog/2015/08/1… #mjtsaiblog
Generic “Functions” in Objective-C: mjtsai.com/blog/2015/08/1… #mjtsaiblog
WebKit Backdrop Filters: mjtsai.com/blog/2015/08/1… #mjtsaiblog
Testing Swift’s ErrorType: mjtsai.com/blog/2015/08/1… #mjtsaiblog
Ripping CDs and Backing Up Content Is Illegal in the UK: mjtsai.com/blog/2015/08/1… #mjtsaiblog