I have a production app live using Swift/Vapor. I created this app solely for the purpose of learning full-stack development using Swift, and so far it has been an amazing ride. The best thing about using Swift on the server if you're already an iOS developer is that a ton of models and DTOs are simply shared across your backend and your app(s). I have deployed my backend on a tiny DO droplet using Docker, and it jus…
Ask HN: What is the future of Swift on the server-side?
11–20 of 60 posts
Re: Ask HN: What is the future of Swift on the server-side?
#12Re: Ask HN: What is the future of Swift on the server-side?
#13See Very Good Ventures own Dart Frog:
Re: Ask HN: What is the future of Swift on the server-side?
#14> backend for my project > a performant, statically-typed, systems programming language. What is your project about? What are the latency requirements? How many concurrent users you expect to have? If these numbers are not high, why are you not using a general purpose language like go or Kotlin? I used vapor for a evaluation project a while ago and abandoned it quickly. While Swift is a nice language, it is still a 2…
What makes it a second class citizen?
Re: Ask HN: What is the future of Swift on the server-side?
#15If you really really need something high-performance, then Rust is the main contender. Don't be fooled by superficially similar angle brackets syntax. It's not similar to C++, it's is not even a C-family language (closer to ML). Things like having multiple string types may seem like the same mess, but it's not a legacy baggage like in C++, but an explicit meaningful choice exposing ownership and encoding semantics.
If you merely need pretty good performance, go for golang. It's very successful for services.
I don't see room for Swift in server-side languages. It won't be able to shake being Apple's technology first, and having Linux support as a second class. It's not low-level enough to beat Rust on performance. It can't compete with popularity and ease of use of JS/TS and golang.
Re: Ask HN: What is the future of Swift on the server-side?
#16> backend for my project > a performant, statically-typed, systems programming language. What is your project about? What are the latency requirements? How many concurrent users you expect to have? If these numbers are not high, why are you not using a general purpose language like go or Kotlin? I used vapor for a evaluation project a while ago and abandoned it quickly. While Swift is a nice language, it is still a 2…
> While Swift is a nice language, it is still a 2nd class citizen on non-Mac systems. What makes it a second class citizen?
Things do get better with time and developing for the server with Swift is a great experience, but it still feels a bit early.
Re: Ask HN: What is the future of Swift on the server-side?
#17Re: Ask HN: What is the future of Swift on the server-side?
#18Such a squandered opportunity on Apple's part. In the early years, the Swift team talked a big game about wide industry adoption goals, but multiplatform seems to just be a defeated box-ticking exercise now.
People say Apple are an unstoppable marketing machine, but they did an absolutely horrific job of engaging the wider software development community with Swift.
Re: Ask HN: What is the future of Swift on the server-side?
#19> backend for my project > a performant, statically-typed, systems programming language. What is your project about? What are the latency requirements? How many concurrent users you expect to have? If these numbers are not high, why are you not using a general purpose language like go or Kotlin? I used vapor for a evaluation project a while ago and abandoned it quickly. While Swift is a nice language, it is still a 2…
> While Swift is a nice language, it is still a 2nd class citizen on non-Mac systems. What makes it a second class citizen?
For more popular languages you get predefined templates for serverless platforms and compiled binaries directly in the linux distributions default repositories.
In many ways the outside interest in swift died down even quicker then the interest in running ObjectiveC outside of the Apple Ecosystem did, and as the Apple ecosystem don't include an server platform all swift server-side code is running outside of the apple ecosystem.
The problem likely isn't that swift is bad just that it's unremarkable once you take it outside of an iOS context.
Re: Ask HN: What is the future of Swift on the server-side?
#20Other alternatives would be Kotlin, C#, Go, or even Java.