TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

The rise and fall of Apple's Swift

38 点作者 sandrobfc将近 7 年前

16 条评论

skywhopper将近 7 年前
I'm not sure what the point is here. It feels like a bunch of disconnected thoughts and observations about Swift, none of them pursued very far. Some of them seem to contradict each other. And none of them are particularly striking or insightful.
评论 #17250427 未加载
评论 #17250318 未加载
评论 #17250285 未加载
评论 #17250246 未加载
评论 #17250386 未加载
评论 #17250404 未加载
pavlov将近 7 年前
I&#x27;m a longtime fan of Cocoa and Objective-C. AppKit has pretty much paid my bills for the past 15 years.<p>The reason I like Obj-C is the simplicity. You&#x27;ve got C, the most popular and widely deployed programming language in the world with libraries available for pretty much everything. Then you add a minimal slice of proven Smalltalk constructs on top, completely orthogonal to the base language. There&#x27;s rarely a question about whether you should be doing something the high-level object-oriented message passing way, or the low-level C &quot;functions &amp; struct pointers&quot; way. The two play together with no surprises (unlike C++ which is a minefield of surprises for the C programmer).<p>Swift threw away the Smalltalk-like simple dynamism of Objective-C. Instead it gives you syntax that&#x27;s got more sprawl than Scala; a swamp of type system combinatorial explosions that can rival C++; language instability on par with modern JavaScript; and the <i>coup de grâce</i> is that all this is connected at the hip to a giant framework that doesn&#x27;t feel Swift-native because it&#x27;s actually an Objective-C API with decades of baggage.<p>At the same time, Apple likes to pretend that Swift is a beginner-friendly language. It&#x27;s a floor wax and a desert topping — and after you&#x27;ve iced the cake with a thick layer of Swift you can apparently both have it and eat it.
0xCMP将近 7 年前
Definitely seems like Swift is losing right now to things like React Native and Cordova, but it&#x27;s not because Swift isn&#x27;t good, but it isn&#x27;t Javascript.<p>Put aside feelings about Javascript and realize that everything is heading towards Javascript for websites, apps, scripts, command line tools, browsers, and etc.<p>It&#x27;s hard for Swift to compete, like Go and Rust are for instance, when it&#x27;s current best use is to make apps for a single platform. They don&#x27;t have the vast number of libraries and active maintainers Javascript has. That along with Swift itself constantly changing (along the same timeframe Go has maintained it&#x27;s 1.x guarantee and Javascript has maintained compatibility at all costs) and I&#x27;ve just recently heard that while Swift appears like a more powerful Javascript at first the more complicated features rapidly intermingle in strange ways that the code does not do enough to make clear.<p>Swift by no means is dead, but it&#x27;s not the right tool right now for most people. Most have to develop the backend and web app first and then they go to iOS. With React Native many don&#x27;t even need to know Swift to do the 2nd step.
评论 #17250344 未加载
评论 #17251225 未加载
eightchen将近 7 年前
Swift language features keep improving, and it&#x27;s easily my favorite language to code in. The developer tools, on the other hand are complete trash. A large iOS app written in Swift can easily take 5 minutes to compile, while the equivalent Objective-C app would take 20 seconds. Additionally, Xcode is one of the most unstable IDEs out there. Simple things like refactoring a variable name or looking up a function declaration are barely working.
评论 #17250416 未加载
jgust将近 7 年前
<a href="https:&#x2F;&#x2F;tiobe.com&#x2F;tiobe-index&#x2F;programming-languages-definition&#x2F;#Ratings" rel="nofollow">https:&#x2F;&#x2F;tiobe.com&#x2F;tiobe-index&#x2F;programming-languages-definiti...</a><p>They are anchoring their argument about the past and future of Swift as a popular programming language based on... how many hits it has on a Google search? Okay.
评论 #17250196 未加载
orand将近 7 年前
Using Stack Overflow tag trends to compare Swift to the other languages and technologies listed in the article, Swift is still on top. React Native is climbing fastest, and is almost half-way to where Swift is today.<p><a href="http:&#x2F;&#x2F;sotagtrends.com&#x2F;?tags=[swift,objective-c,xamarin,cordova,react-native,ionic-framework]" rel="nofollow">http:&#x2F;&#x2F;sotagtrends.com&#x2F;?tags=[swift,objective-c,xamarin,cord...</a>
ajkjk将近 7 年前
Why is every other sentence bold in this article?
评论 #17250001 未加载
moosingin3space将近 7 年前
The answer to this question is simple: Swift does not have a comparative advantage in any area of development other than Apple-device-only apps. It may be a nice language, but the cross-platform Swift ecosystem is firmly entrenched in square one as long as the community continues to prefer other languages and tools.
Mononokay将近 7 年前
I don&#x27;t know - it doesn&#x27;t seem like it has - or will - fall for as long as Apple keeps control over iOS.
评论 #17249941 未加载
Froyoh将近 7 年前
More like the Fall and Rise
评论 #17250410 未加载
abalone将近 7 年前
Meh, the only evidence cited for the “fall” of Swift is an index of how often people search for “swift programming”.[1] An imperfect measure for sure.<p>[1] <a href="https:&#x2F;&#x2F;www.tiobe.com&#x2F;tiobe-index&#x2F;programming-languages-definition&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.tiobe.com&#x2F;tiobe-index&#x2F;programming-languages-defi...</a>
Simulacra将近 7 年前
This is a very strange article. It&#x27;s using one metric to make broad assumptions about the language.
DatBear将近 7 年前
Why is half of every paragraph in bold? How did this clickbait get 30 points...
mozumder将近 7 年前
Swift needs its version of Django&#x2F;Ruby-on-rails...
评论 #17250057 未加载
评论 #17250361 未加载
DatBear将近 7 年前
Why is half of every paragraph in bold for no reason?
crb002将近 7 年前
Apple would be wise to release &quot;beta&quot; C and either C++ or Rust bindings for iOS. It is LLVM developers care about not Swift.