AstonJ

AstonJ

Which language or framework to pair with a Swift app?

Since a few of us seem to be interested in learning Swift, I wondered what languages or frameworks people are (or thinking about) pairing a Swift app with on the backend?

Are you sticking with something like Rails or Phoenix? Or opting to use one of Swift’s own frameworks, like Vapor or Kitura?

I wonder also if learning a Swift web framework might actually be a good way to learn Swift - since many of us are familiar with the workings of a framework and it might help us get our head around things?..

Most Liked

Korbin73

Korbin73

I would still use the framework that I have always used F# Giraffe/Suave. I know that logically it seems to make sense on paper to use the same language on the server as the client but I just don’t see the value proposition in practice. You can develop F# mobile apps with Xamarin but I still prefer Swift.

Since server programming is nothing like programming for the device I just don’t see the advantage. I have seen posts where people bring up that you can use models on both, but unless you type 5 words a minute that doesn’t really buy you anything. You won’t really be sharing anything of value between the client and the server since the problems you solve are very different.

At the end of the day I think the only advantage of having the same language on both is that you like the language and enjoy programming both on the client and server. And developer happiness is not something to be taken lightly, but I don’t see any real business value in it. Languages are so easy to learn with all the information out there, that using a single language just isn’t something that I would consider in a business context, only a hobby one.

AstonJ

AstonJ

Some of the reasons why I was thinking Swift on the server might be appealing to some:

  • As you mentioned, if Swift is someone’s favourite language that they want to use it everywhere
  • If someone is learning Swift, it might make sense to use it ‘as much as possible’ even if while learning it
  • Make use of custom hardware (see below)

I think it may only be a matter of time before Apple gets back into the server game - what could we do if we had dedicated Apple servers with chips like the A13?

A13 Bionic was built with a focus on machine learning, with a dedicated 8-core Neural Engine capable of 5 trillion operations per second, two Machine Learning Accelerators on the CPU and a new Machine Learning Controller to balance performance and efficiency. Together, A13 Bionic and iOS 13 enable new intelligent apps that make use of machine learning and Core ML.

Popular I Os topics Top

bot
A new Swift blog post/announcement has been posted! Get the full details here: https://swift.org/blog/swift-on-windows/
New
First poster: bot
A new Swift blog post/announcement has been posted! Get the full details here: Swift.org - Introducing SwiftNIO SSH
New
DevotionGeo
If I install Catalina on unsupported models of MacBook Pro through a patcher, will there be any (certification or other) problem while co...
New
Exadra37
Virtually every expert agrees that the locked-down nature of iOS has solved some fundamental security problems, and that with these restr...
New
First poster: bot
A new Swift blog post/announcement has been posted! Get the full details here: Swift.org - Announcing the Language Workgroup
New
RustemAqtau
Hi! Do you use 3rd party UI inspector tools like Sherlock or Reveal? Which is better?
New
First poster: bot
A new Swift blog post/announcement has been posted! Get the full details here: Swift.org - Server Guides Now on Swift.org
New
First poster: bot
A new Swift blog post/announcement has been posted! Get the full details here: Swift.org - The Future of Foundation
New
NewsBot
A new Swift blog post/announcement has been posted! Get the full details here: Swift.org - Introducing Swift OpenAPI Generator
New
New

Other popular topics Top

malloryerik
Any thoughts on Svelte? Svelte is a radical new approach to building user interfaces. Whereas traditional frameworks like React and Vue...
New
foxtrottwist
Here’s our thread for the Keyboardio Atreus. It is a mechanical keyboard based on and a slight update of the original Atreus (Keyboardio ...
New
dimitarvp
Small essay with thoughts on macOS vs. Linux: I know @Exadra37 is just waiting around the corner to scream at me “I TOLD YOU SO!!!” but I...
New
PragmaticBookshelf
“A Mystical Experience” Hero’s Journey with Paolo Perrotta @nusco Ever wonder how authoring books compares to writing articles?...
New
DevotionGeo
The V Programming Language Simple language for building maintainable programs V is already mentioned couple of times in the forum, but I...
New
AstonJ
Seems like a lot of people caught it - just wondered whether any of you did? As far as I know I didn’t, but it wouldn’t surprise me if I...
New
wmnnd
Here’s the story how one of the world’s first production deployments of LiveView came to be - and how trying to improve it almost caused ...
New
AstonJ
Biggest jackpot ever apparently! :upside_down_face: I don’t (usually) gamble/play the lottery, but working on a program to predict the...
New
foxtrottwist
A few weeks ago I started using Warp a terminal written in rust. Though in it’s current state of development there are a few caveats (tab...
New
AstonJ
This is a very quick guide, you just need to: Download LM Studio: https://lmstudio.ai/ Click on search Type DeepSeek, then select the o...
New