TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Why hasn't Swift gained wider adoption for backend?

7 pointsby grandimam23 days ago

6 comments

manter23 days ago
Swift is tightly bound to the Apple ecosystem (even though it can run outside of it), both in tooling, the ecosystem, and developer&#x27;s perceptions.<p>These things all feed into each other.<p>If you&#x27;re in the (vast, vast) majority of Swift developers then you&#x27;re writing apps for iOS, MacOS, etc. This means outside of that context Swift goes from being a relatively popular language with a strong ecosystem to an incredibly niche one.<p>One angle where this could gain traction is devs writing a server side backend for their Apple app - but this use case is sliced apart in practice.<p>- Teams that start off wanting to use the same language for the app and the backend are likely to pick React Native or similar.<p>- The larger teams that want&#x2F;need to write their app natively likely have devs that write the apps and devs that write the server code - so the desire the for language to be the same is lower.<p>- The pool of developers you could hire that have backend experience and swift experience is much much smaller than either of those two factors alone.<p>On a pure &#x27;is this language good enough for the problem&#x27; level - sure, swift could do the job.<p>But that&#x27;s also true of almost every other language.
xp8423 days ago
I would compare to other languages which share a primary trait, namely &#x27;Invented by and backed by big proprietary closed-source-specialist company.&#x27;<p>Take C# for instance: Microsoft has a rich history of being very serious about the enterprise, and was there on the ground floor of the &#x27;.com&#x27; days with popular server software. MS leveraged knowledge developers had writing Visual Basic with VBS and also Jscript, a JS variant, to popularize ASP, then convinced people to move to C# which let you do both server and desktop with the same knowledge. And all this ran on the Microsoft server OS, a popular product, out of the box.<p>Let&#x27;s compare this with Swift. Apple has never, ever been serious about the enterprise, hasn&#x27;t sold any servers during its whole lifetime, and while I&#x27;m sure you can run server side Swift on a real Linux server instead of just a Mac, its relative newness (newer than every popular language but Kotlin) means there would need to be an affirmative reason, a big tangible benefit, to convince anyone to either switch, or to start their whole career&#x2F;company with Swift without ever learning anything else. Much the opposite in my humble opinion - you have Apple treating developers poorly with their aggressive rent-seeking behavior. I would never want to ditch another language that isn&#x27;t controlled by one firm, to work on a platform that, though nominally &#x27;OSS,&#x27; exists purely for Apple&#x27;s benefit and is controlled by them.<p>Server-side Swift has one thing going for it: You can leverage your skills gained making iOS native stuff. Unfortunately, it seems to me that few companies besides indie &#x27;Apple-only&#x27; devs even want to use &#x27;iOS Swift&#x27; since it&#x27;s limited to Apple platforms and most companies want cross-platform mobile apps. So the number of people out there who are &#x27;Swift experts&#x27; and would find that to be the most compelling server-side environment is utterly dwarfed by people who have that level of mastery of JS, Python, Java, C#, Kotlin, PHP, Ruby, Go, etc. Which is of course a Catch-22, &#x27;nobody uses server-side Swift because it&#x27;s not popular enough to support a great community.&#x27;<p>To kick off a new project with a Swift backend would be to say &quot;I trust Apple unconditionally, and also I have no intention of ever needing to hire anyone to help with this.&quot;
评论 #43742286 未加载
评论 #43742588 未加载
评论 #43741935 未加载
timeon23 days ago
Just my anecdote. I was excited about Swift when it came out. Then I realized that I can&#x27;t use my own apps on my phone for more than a week. Which, unfortunately, led my to use web technologies. And with that into completely different tech stack for backend&#x2F;frontend.
frou_dh23 days ago
Because it&#x27;s a massively competitive space, and being passably good (&quot;Hey guys, the toolchain and these libraries do actually run on Linux. Also we have XYZ Working Group.&quot;) is not sufficient to get peoples&#x27; attention.
benoau23 days ago
Might make sense if you&#x27;re an app developer but outside of that, even within that TBH, it&#x27;s pretty niche.
carlhung18 days ago
It is a pretty shit language. I use Swift for living. It has a lot of special keywords, Features, etc. they keep adding new keywords to fix specific issues. it is a distasteful language.