News for hackers. Stuff that matters.
Re:Swift 5.2 by xscott on Tuesday March 24, 2020 @10:52PM (#22681574)
Has anyone had good luck getting Swift running on Linux? Many versions ago, I had it working under Ubuntu, and it seemed really nice. I particularly liked having a REPL for this style of language.

However since then, I've had very limited success under Ubuntu, CentOS, and Arch. Different failures on each. Every few releases or so I give it a go, but something always fails and I go back to working on some other pet project.

Re:Swift 5.2 by saagarjha on Tuesday March 24, 2020 @11:22PM (#22681689)
Are the prebuilt toolchains (https://swift.org/download/) giving you trouble?
Re:Swift 5.2 by pjmlp on Wednesday March 25, 2020 @03:23AM (#22682619)
The Ubuntu ones are well known for having linker issues on LTS distributions.
Re:Swift 5.2 by xscott on Wednesday March 25, 2020 @12:11AM (#22681875)
I'm currently using Arch, so I don't think the prebuilt Ubuntu ones are going to work.
Re:Swift 5.2 by resist_futility on Wednesday March 25, 2020 @12:19AM (#22681906)
Maybe just use the Docker builds?
Re:Swift 5.2 by xscott on Wednesday March 25, 2020 @12:42AM (#22681990)
I know I'm out of fashion :-), but I don't really use containers for anything. I think Swift looks really nice, but when I check out other languages (such as Go, Rust, or any of the gazillion others), I don't have to jump through any hoops other than using the system package manager or something like "./configure; make install". I wish Swift was in this camp.
Re:Swift 5.2 by pcr910303 on Wednesday March 25, 2020 @01:07AM (#22682087)
> I don't have to jump through any hoops other than using the system package manager

Wouldn't that be something the package manager should include?

If you're using Arch, I'm pretty sure AUR have you covered... [0]

[0] https://aur.archlinux.org/packages/swift/

Re:Swift 5.2 by xscott on Wednesday March 25, 2020 @01:18AM (#22682137)
The last time I tried, it didn't go well. When the AUR package for swift or swift-bin goes to 5.2, I'll probably try again.

> If you're using Arch, I'm pretty sure AUR have you covered...

Have you gotten it working with Arch?

There are user comments on the page you linked indicating other people have had problems too.