4 ms·
Something not noted in the article is that any binary which links Foundation, even if otherwise written entirely in Obj-C, now uses Swift. This is due to the Fo
by jshier 3y ago
Something not noted in the article is that any binary which links Foundation, even if otherwise written entirely in Obj-C, now uses Swift. This is due to the Foundation Swift rewrite effort (https://github.com/apple/swift-foundation https://github.com/apple/swift-foundation) that is rewriting Foundation is Swift while maintaining Obj-C ABI compatibility.
- glhaynes 3y agoI don't believe the new Foundation is shipping with any released versions yet, is it?
- xxpor 3y agoWhat's the downstream effect of that?
- jshier 3y agoBit better performance, fewer bugs, updated implementations.
- xxpor 3y agoSorry, I should have clarified I meant specifically having Swift in ObjC binaries.
- bt4u 3y ago[dead]
- superb_dev 3y agoI think it's more interesting than anything else. As far as I know Swift won't pull in a heavy runtime or anything like that
- bobbylarrybobby 3y agoI think Swift does pull in a runtime, but the runtime is included in iOS itself so apps and users don't really pay a cost. It can just link to whatever’s on disk. Prior to some Swift version — Swift 4? don't remember — iOS apps that used Swift did have to bring their own runtime, and iirc this was because Swift was evolving so fast that Apple wasn't willing or able to commit to including a bunch with iOS.
- dwaite 3y ago> ... iirc this was because Swift was evolving so fast that Apple wasn't willing or able to commit to including a bunch with iOS. Not just that - they wanted to have language features for stability and migration which they hadn't fully flushed out yet and implemented. Now, Swift is part of the OS itself - which has good and bad sides, because policies to support older versions of iOS also mean you can't fully leverage all the new language features.
- jamil7 3y agoFor some things, like JSON decoding and anything to do with dates and times, performance should be quite a lot better.