frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

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

7•grandimam•1y ago

Comments

xp84•1y ago
I would compare to other languages which share a primary trait, namely 'Invented by and backed by big proprietary closed-source-specialist company.'

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 '.com' 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.

Let's compare this with Swift. Apple has never, ever been serious about the enterprise, hasn't sold any servers during its whole lifetime, and while I'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/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't controlled by one firm, to work on a platform that, though nominally 'OSS,' exists purely for Apple's benefit and is controlled by them.

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 'Apple-only' devs even want to use 'iOS Swift' since it's limited to Apple platforms and most companies want cross-platform mobile apps. So the number of people out there who are 'Swift experts' 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, 'nobody uses server-side Swift because it's not popular enough to support a great community.'

To kick off a new project with a Swift backend would be to say "I trust Apple unconditionally, and also I have no intention of ever needing to hire anyone to help with this."

mattmanser•1y ago
https://en.m.wikipedia.org/wiki/Mac_OS_X_Server
xp84•1y ago
But that was dead by the time Swift came out. I apologize for my poor wording.
john_the_writer•1y ago
I like the last bit. Hiring would be a nightmare. Most serious BE dev (myself included) don't have time to learn a new language that I can only use at a handful (or single company). I want the language I spend the most time with to be something I could take to a recruiter (should I need to).

I worked at a place that worked with Delphi, and for various reasons I had to use it exclusively for a few years. No recruiter would touch me. Not until I got some time with Rails did I have a chance to escape.

As a former mobile dev, I'd also like to add, being an app dev vs BE dev isn't just about the code either.. It's a very different way of looking at problems. The skills might transfer, but they're living in different worlds. The language isn't the only obstacle.

tssva•1y ago
" Apple has never, ever been serious about the enterprise, hasn't sold any servers during its whole lifetime,"

Apple has most definitely sold servers during its lifetime. The Xserve line for example.

xp84•1y ago
Excuse me, I worded it super poorly. I meant Swift's whole lifetime. The Xserve was long dead. I once "sold" XServes (was trained to, but nobody ever bought one from me) at Apple Retail.
benoau•1y ago
Might make sense if you're an app developer but outside of that, even within that TBH, it's pretty niche.
manter•1y ago
Swift is tightly bound to the Apple ecosystem (even though it can run outside of it), both in tooling, the ecosystem, and developer's perceptions.

These things all feed into each other.

If you're in the (vast, vast) majority of Swift developers then you'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.

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.

- Teams that start off wanting to use the same language for the app and the backend are likely to pick React Native or similar.

- The larger teams that want/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.

- 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.

On a pure 'is this language good enough for the problem' level - sure, swift could do the job.

But that's also true of almost every other language.

timeon•1y ago
Just my anecdote. I was excited about Swift when it came out. Then I realized that I can'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/frontend.
frou_dh•1y ago
Because it's a massively competitive space, and being passably good ("Hey guys, the toolchain and these libraries do actually run on Linux. Also we have XYZ Working Group.") is not sufficient to get peoples' attention.
carlhung•1y 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.

Beating Stockfish 18 in Zero- Dependency Rust with AI [pdf]

https://github.com/deedy/chess-chatarunga/blob/main/docs/paper.pdf
1•iamronaldo•4m ago•0 comments

China launches Shenzhou spacecraft carrying 2 Chinese and 1 Pakistani astronaut

https://apnews.com/article/china-space-shenzhou-24-543306bfe17419395d10fae107500564
1•Teever•4m ago•0 comments

Analytics-Info

https://analytics-info.com/
1•witkacy•5m ago•0 comments

BFCM Live

https://bfcm.shopify.com/
1•doppp•7m ago•0 comments

Show HN: B36date

https://github.com/NWoodsman/b36date
1•CrimsonCape•9m ago•0 comments

What Women Compassion Looks Like [video]

https://www.youtube.com/watch?v=NjPv49yLl-g
1•PorciiVorbesc•10m ago•0 comments

New York declares emergency as Thanksgiving storm threatens East Coast

https://abcnews.com/US/new-york-declares-emergency-thanksgiving-storm-threatens-east/story?id=138...
1•madihaa•14m ago•0 comments

Show HN: An interactive map of the Riemann Hypothesis proof

https://longbinlai.github.io/riemann-atlas/?lang=en&step=reflection&view=overview
1•robeenly•14m ago•0 comments

Don't worry, 95.24% of people are good folks

1•N8works•15m ago•0 comments

Show HN: Gmbrank – Google Business Profile rank tracking with geo-grid maps

https://gmbrank.ai
1•gmbrank•25m ago•0 comments

Blind man drives 150 miles while drunk

https://www.itv.com/news/calendar/2026-07-31/blind-man-who-drink-drove-150-miles-followed-hgv-lights
1•madihaa•26m ago•0 comments

A Weekend of Machine Mathematics

https://charlesponeill.com/posts/a-weekend-of-machine-mathematics/
1•gmays•27m ago•0 comments

Stay Connected on WhatsApp When You Travel

https://blog.whatsapp.com/stay-connected-on-whatsapp-when-you-travel?_fb_noscript=1
1•sidcool•29m ago•0 comments

Show HN: 4K fsync tail latency and SQLite WAL lock failures on a $4/mo VPS

https://nodebudget.dev/guides/why-cheap-vps-benchmarks-lie/
1•wordwright•30m ago•0 comments

Ask HN: Why can AI prove Riemann but not solve cust svc problems?

1•louiereederson•34m ago•4 comments

Take-Two Battles Unofficial GTA 6 PC Port Work

https://www.ign.com/articles/take-two-appears-to-be-trying-to-scrub-gta-6-pc-ports-from-the-inter...
1•Skyfall106•44m ago•0 comments

The Singularity Clock

https://www.singularityclock.ai/
2•iamanatom•44m ago•0 comments

Google will show solo Android developers' phone numbers and addresses

https://support.google.com/googleplay/android-developer/answer/17594752?hl=en
36•nreece•47m ago•8 comments

Riemann home reaches 41 independent validators

https://riemann-at-home.github.io/riemann-at-home/#@titojankowski
1•tito•48m ago•0 comments

Citroën Hydraulic System

https://www.citroenet.org.uk/miscellaneous/hydraulics/hydraulics-1.html
1•o4c•48m ago•0 comments

World records six straight days above 2C warming threshold

https://www.guardian.co.tt/news/world-records-six-straight-days-above-2c-warming-threshold-6.2.27...
1•asphodele•52m ago•1 comments

Necrometer – Zero-back end Rust/WASM audit for GitHub repo decay

https://necrometer.dev
1•jeryd•1h ago•0 comments

Show HN: Sqrin – A better screen share for Mac

https://sqrin.app
3•stichoza•1h ago•0 comments

Melbourne’s safe injecting room is one of the world’s busiest.

https://theconversation.com/melbournes-safe-injecting-room-is-one-of-the-worlds-busiest-the-liber...
1•defrost•1h ago•2 comments

Trying /Swarm in Google Antigravity

https://flaviocopes.com/antigravity-swarm/
1•gmays•1h ago•0 comments

Jakarta EE 11 No Longer Has an Umbrella Jar

https://foojay.io/today/jakarta-ee-11-umbrella-jar/
1•lprimak•1h ago•0 comments

No-Boilerplate, Warning-Free and Reproducible Builds on Maven 4

https://foojay.io/today/no-boilerplate-maven-4-builds/
2•lprimak•1h ago•0 comments

Upgraded Immich to Postgres 19 and VectorChord 1.5.0, works great

https://www.reddit.com/r/immich/comments/1y4ulvq/upgraded_immich_to_postgres_19_and_vectorchord/
2•lprimak•1h ago•0 comments

Gleam Case Exhaustiveness, as a Fan

https://oyster.pckt.blog/gleam-case-exhaustiveness-as-a-fan-fd4whyp
1•TheWiggles•1h ago•0 comments

Linus Torvalds: "Tell Your AI Companion to Get Its Act Together"

https://www.phoronix.com/news/Linus-Torvalds-EXT4-AI-Big
13•droidjj•1h ago•0 comments