Hacker News new | ask | show | jobs
by curtis17 4293 days ago
> Or would that enable a Linux port?

I would be interested in a Swift port for Linux server-side/command line dev. Not so much client UI dev. Swift on Linux servers could help Apple sell more Macbooks to developers.

2 comments

But a Linux-based swift compiler would mean some multi-platform devs wouldn't need OS X as much. Bad for Apple.
OCaml, F#, Haskell, Standard ML all with a longer history and (except SML) being used at the industry.

Why bother with Swift in such use case...

Swift seems a pragmatic take on functional programming. Apple backing means the compiler, libs and runtime will get a lot of work.
And Microsoft puts money on F#, Haskell and OCaml, all of which already have better Linux support.

Swift is great for pushing functional programming down the throat to mainstream developers that wish to target iOS, but it is no more pragmatic than OCaml or F#.

For the OP use case, targeting Linux server software is already better served by the languages I mentioned.

> but it is no more pragmatic than OCaml or F#.

Swift seems more approachable then those languages. Pragmatic in the sense that Rust and Kotlin are.

I fail to see how.