Skip to content

Comment on Why I want Swift to be your first languageparent

Comments

Once it's open source, isn't it logical to conclude that there will be open source runtimes that run on non-Apple products? Give it a year or so.

Think of it this way: there's iTunes on Windows, but is it actually useful? In reality, it's buggy as hell, slow as hell, quite resource-hungry and requires hundreds of megabytes to install it (even though it's nothing more than a music player capable of being connected to other devices). And Windows version of iTunes contains a Windows port for years.

Now, if Apple actually released the code of its Windows port of iTunes, will Apple actually care about it enough to accept the contributions from the community and make the community feel welcome? Will iTunes on Windows drastically improve as the time goes on? Will developers on other platforms accept it and use it for their products? How well does it behave when compared to other programming languages? There are too many unknowns.

Although I'd love to see that future, I don't think that this will happen. In theory, releasing the code of something is all that is needed to do to make something actually useful. In reality, things are not that simple.

Not even a year, about a month. Swift for Linux will arrive with the release of Swift 2.0, which will coincide with the release of Xcode 7, which will coincide with the release of iOS 9 ... which will coincide with the announcement of the next iPhone, which should be around late September, as usual.

Hm, do you think it'll only take a month for it to be ported to Windows?

I'm not an LLVM expert, but Swift is an LLVM frontend, so once it's open source, I think it should work for the various backends?

Right now the issue is library support - swiftc can already just spit out LLVM IR: https://github.com/kripken/emscripten/issues/2427

The stdlib would be included in the open source release.

Linux boxes would fulfill "non-Apple product" though. Unixy programming languages like Swift and Python have always been weird on Windows.

Could you elaborate on Python being weird on Windows?

Python is a set of packages. On Windows, you're supposed to use a distribution, such as Anaconda.

Even then, building some of the fancier libraries (with native code) by hand is bit involved.

In fact, Anaconda works very well on Windows, as long as you don't require extreme latest versions of modules.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.