News for hackers. Stuff that matters.

Ask HN: Swift is a good language, so why doesn't it get much attention?

I am primarily a C/C++ software engineer. And I am trying to decide which new systems programming language to learn. So I started reading about Rust and Swift. Both look very similar and nice. Swift looks bit intuitive to me though.

Anyway, it looks like Swift does not get much love from the rest of the developer community apart from developers from the Apple ecosystem. Is this because Apple is leading the development of Swift?

( 10 comments | 11 points | on HN )
Re:Ask HN: Swift is a good language, so why doesn't it get m... by zaphar on Thursday September 01, 2022 @09:06AM (#32675736)
It's primarily because it wasn't launched with much support for non-apple systems and it is considered hard for many in the PLT domain to get changes in for support on alternative systems. It's improved somewhat in recent times but the launch very much stifled it's usage anywhere but on Apple systems so they are a little behind.

That shouldn't necessarily stop you from exploring it though. Maybe you can help boost it outside of the Apple ecosystem.

Re:Ask HN: Swift is a good language, so why doesn't it get m... by _448 on Thursday September 01, 2022 @09:24AM (#32675901)
> Maybe you can help boost it outside of the Apple ecosystem.

Me a minion :)

Re:Ask HN: Swift is a good language, so why doesn't it get m... by Normille on Thursday September 01, 2022 @07:25AM (#32674862)
I don't know about the niceties or otherwise of the language. But the fact that you need to install the huge bloated whale that is Xcode [about 5GB, last time I looked], just in order to try it, means you've got to really want to dip a toe in that particular water.
Re:Ask HN: Swift is a good language, so why doesn't it get m... by _448 on Thursday September 01, 2022 @07:41AM (#32674988)
It is just about 500MB[0] now with some Linux dependencies[1]

[0] https://www.swift.org/download

[1] https://www.swift.org/getting-started

Re:Ask HN: Swift is a good language, so why doesn't it get m... by Normille on Thursday September 01, 2022 @11:26AM (#32677759)
Hmmm... that's odd. So you can try it on Linux for the penalty of a 500MB download --which isn't too bad. But if you want to try it on OSX, you have to download Xcode? --which is pretty off-putting.
Re:Ask HN: Swift is a good language, so why doesn't it get m... by moistly on Thursday September 01, 2022 @11:19PM (#32686204)
I expect Xcode carries a big MacOS services/UI libraries overhead. The Linux version is the language plus minimal libraries.
Re:Ask HN: Swift is a good language, so why doesn't it get m... by imran0 on Friday September 02, 2022 @02:51AM (#32687434)
Those are rookie numbers, Visual Studio (+ MSVC) build tools are pushing past 10GB pretty easily.
Re:Ask HN: Swift is a good language, so why doesn't it get m... by b20000 on Thursday September 01, 2022 @10:08PM (#32685797)
what is a “good” language?
Re:Ask HN: Swift is a good language, so why doesn't it get m... by moistly on Thursday September 01, 2022 @11:16PM (#32686185)
A language that makes it more difficult to write bugs.
Re:Ask HN: Swift is a good language, so why doesn't it get m... by runjake on Thursday September 01, 2022 @11:41AM (#32678025)
Because Apple is only really committed to fostering it on it's platforms. Sure, there's Swift for other platforms, but using them, it seems like only a tier 2 platform at best, in order to check some boxes ("Look! It's multiplatform!")