Re:App Developers on Swift Evolution
by pcwalton on Wednesday December 23, 2015 @11:19AM
(#10783971)
Sure, but that doesn't mesh with Swift's goals, as I understand them. The team seems to be positioning Swift as a language that will scale down to low-level performance-critical pieces in a way that Objective-C can't (though I may be wrong here since I'm not involved in that community very much).
[ Parent
| on HN ]
Re:App Developers on Swift Evolution
by mpweiher on Wednesday December 23, 2015 @06:07PM
(#10786198)
Well, they say they want that. But this is at best aspirational, it isn't true. Certainly not so far and as far as I can tell not in the foreseeable future. Quite frankly, I doubt it will ever be true, because in essence their claim is that they are building the Sufficiently Smart Compiler and despite all the problems now it will be totally awesome when they're done.
Swift currently can't hold a candle to Objective-C on the performance front, which is why all the heavy lifting is done in Objective-C. As a small example, see how many articles there are on "Swift JSON parsing", then check what percentage of those call into the NSJSONSerialization Objective-C class to the actual, you know, parsing.
Re:App Developers on Swift Evolution
by mariodiana on Wednesday December 23, 2015 @12:11PM
(#10784295)
No, I think you are right. My understanding is that Swift is supposed to scale down, as you say, and performance there is critical. I was considering things from the point of view of higher level programming. Thanks.