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

Recent tweets

@mpweiher @jckarter @gte @phink0 But in practice you can't really simulate it with inheritance in Obj-C for non-object types.

via Tweetbot for Mac in reply to mpweiher

1PasswordAnywhere No Longer Works With Dropbox: mjtsai.com/blog/2016/05/3…

via IFTTT

1PasswordAnywhere No Longer Works With Dropbox: mjtsai.com/blog/2016/05/3…

via IFTTT

@mpweiher Separate class, separate methods names is fine. But then no reason to subclass. Also, fast enumeration won’t work.

via Tweetbot for Mac in reply to mpweiher

@mpweiher @jckarter @gte @phink0 And it doesn’t work with enumeration, etc.?

via Tweetbot for Mac in reply to mjtsai

@mpweiher @jckarter @gte @phink0 Obj-C generics don’t address this. What use is a subclass if all the method names are different?

via Tweetbot for Mac in reply to mjtsai

@mpweiher @jckarter @gte @phink0 An NSArray subclass is limited by the interface requiring everything to be an object.

via Tweetbot for Mac in reply to mpweiher

@phink0 @jckarter @mpweiher Transitions aren’t fun, but I mostly find Swift more pleasant and like that it tries to do Unicode right.

via Tweetbot for Mac in reply to phink0

Making Paw Extensible With JavaScript Core: mjtsai.com/blog/2016/05/2…

via IFTTT

iTunes 12.4 Applies Song Ratings to Albums and Destroys Smart Playlists: mjtsai.com/blog/2016/05/2…

via IFTTT

Opening Files and Never Closing Them: mjtsai.com/blog/2016/05/2…

via IFTTT

Another “Dynamic Swift” update showing how to call a method on an Any and implement a responder chain: mjtsai.com/blog/2016/05/2…

via Tweetbot for Mac

@jckarter @mpweiher @phink0 @wilshipley I’ve only been timing different Swift versions vs. Marco’s original. Didn’t test Obj-C.

via Tweetbot for Mac in reply to jckarter

@mpweiher @jckarter @phink0 @wilshipley You can see in Hopper that it’s only passing NSAnchoredSearch.

via Tweetbot for Mac in reply to mpweiher

@mpweiher @jckarter @phink0 @wilshipley If you look at the code, Swift is using kCFCompareNonliteral and NSString is not.

via Tweetbot for Mac in reply to mpweiher

@jckarter @phink0 @mpweiher @wilshipley In XCTest, I found ($0 as NSString) only 5% faster and $0.utf16.startswith 34% faster.

via Tweetbot for Mac in reply to jckarter

@phink0 @mpweiher @wilshipley The Foundation -hasPrefix: does an exact compare; maybe Swift stdlib one does a fancy Unicode compare.

via Tweetbot for Mac in reply to phink0

@mpweiher @phink0 @wilshipley That’s very interesting. Have you tried profiling it? Bridging overhead?

via Tweetbot for Mac in reply to mpweiher

Google : 2010s :: Microsoft : 1990s: mjtsai.com/blog/2016/05/2…

via IFTTT