Hacker News new | ask | show | jobs
by tabs_masterrace 2160 days ago
Swift / Vapor is amazing as well. They just released version 4, which streamlined and tidied up lots of things, can't recommend it enough. There's just something solid about Swift's strictness and compile time checks, that make it easy to be sure you're handling all possible code paths, and you can be reasonable confident it works and won't break all the time. Also very lean on dependencies, mostly unopinionated, and performance/mem-usage is top tier too. Only con is probably, you're bound to Xcode (and therefore macOS) for development, I guess you could try to set it up in VSCode, but haven't heard of it and experience will probably be not so good.
1 comments

That con is a pretty big one. Macs have less than 10% desktop market share.
In this case Swift is being used on the server, so that could be an officially supported platform[0] which if I recall correctly is macOS, Ubuntu, CentOS, Amazon Linux 2, and Windows as of Swift 5.3.
Swift on Linux is pretty much WIP, with an ecosystem that is Mac first and hardly considers another platforms.

On Windows with luck 5.3 will be the first version that the compiler actually works, let alone existing libraries that barely work on Linux.

Why does this matter? It’s a server, not a desktop application.
> you're bound to Xcode (and therefore macOS) for development

I would prefer languages that don't dictate what hardware/software to use for writing them.

I get that, but it still doesn't explain why the above poster used the MacOS market share as a detractor in this case. If you value languages that don't dictate hardware/software for you, then Apple was probably never a serious contender for you.