Live data from Hacker News

Swift 5 Release Notes for Xcode 10.2

developer.apple.com

21–25 of 25 posts

Re: Swift 5 Release Notes for Xcode 10.2

#21

Earlier quoted context omitted.

Yeah, UIKit and SpriteKit will never come to other platforms. They constitute part of iOS' and macOS' competitive advantage. Swift's progress also has little to bear on that front as UIKit and SpriteKit are written in C, Objective-C, and C++; their use in Swift depends on Apple's Objective-C runtime which is not released as part of the non-macOS/iOS port of Swift for Linux.

To be fair, libobjc is open-source: https://opensource.apple.com/source/objc4/objc4-750.1/

That is a very tiny part of Objective-C story.

Re: Swift 5 Release Notes for Xcode 10.2

#22
post #21

Earlier quoted context omitted.

To be fair, libobjc is open-source: https://opensource.apple.com/source/objc4/objc4-750.1/

That is a very tiny part of Objective-C story.

Indeed. I don't think Apple would open source Foundation, App Kit, UI Kit, and a bunch of other things; that by itself precludes inclusion with Swift. Aside from that, a lot of those things rely on the full version of Core Foundation in C; I think the (open source, non-Swift) implementation of Core Foundation, CF Lite, is heavily reduced compared to what ships with Apple's OSs and would make an ineffective base for redundantly reimplementing those frameworks on other systems.

Re: Swift 5 Release Notes for Xcode 10.2

#23
post #15

Earlier quoted context omitted.

the point of using swift is to be faster than Python. if your computations are using numpy and most of your time is spent in these computations, passing through the python interpreter every time, it's going to have performance similar Python

> the point of using swift is to be faster than Python There are plenty of other compelling reasons to prefer Swift over Python such as its type system or its easy, somewhat native, integration with existing Swift, Objective-C, and C frameworks available for macOS, iOS, watchOS, and tvOS. Speed isn't the only driver, and I'm sure not it's not "the [only] point".

no I meant for data science applications specifically, sorry

Re: Swift 5 Release Notes for Xcode 10.2

#24

As someone who hasn't yet put in the time with swift, i get the sense that every version release of Swift includes a surprising amount of breaking changes. Are these edge cases that don't really effect anyone or does every Swift project you undertake basically cement itself into a swift version?

Personally, I find the intense focus on API/ABI stability and legacy support in the software world to be a major blockage on the road to great software. I'm ecstatically happy every time a new version of Swift makes big breaking changes, because it means that people care a lot about making Swift excellent, and as somebody who has used many different languages and frameworks, I can tell you that care is acutely felt in the experience of writing with Swift and Apple frameworks. I'm paradoxically kind of disheartened to see it reach stability. I wish this went on for a couple more versions.
Post reply on HN