Hacker News new | ask | show | jobs
by kamil55555 450 days ago
I wish using Swift for development outside Apple world would be feasible.
4 comments

How many packages will work without NSBullshit though?
More and more, and Foundation is now sharing a codebase between Darwin and non-Darwin platforms for many types now.
Nearly all, since they removed the NS prefix from most types imported into Swift years ago. ;)
I’ve been using it for a hobby project targeting a Linux server deployment. It’s good, and I don’t think the Apple ties are what’s holding it back now, I think it’s a relative lack of good frameworks and libraries. What’s there is often excellent quality, but it’s still a bit hit and miss even for common library use cases.

I often think about what my day-1 stack would be for a new company. Swift would be on the table as an option.

Indeed, it’s technically possible, but the level of discomfort, workarounds and paper cuts to get there makes it entirely a hobby thing.

If you really want to make “something” for the purpose of using Swift go ahead. If you want to make something, there are plenty of attentives to choose from.

If you stick with x86_64 land and > Swift 6.0, there is nothing infeasible about it.
I can find binary packages for Linux ARM for Swiftly and Swift. What issues do you see outside of X86_64 ?