Live data from Hacker News

“Swift will be open source later this year”

apple.com

101–110 of 573 posts

Re: “Swift will be open source later this year”

#101

Aside from graphics/GUI programming; there is little advantage to Objective C or Swift. The "language" may be "open sourced"; but will the important Cocoa implementations be open sourced? It shouldn't be to too tough to re-implement Swift; unless Apples starting suing people for doing it. The exact meaning of Apples announcement needs some clarification.

The language itself is lovely. What parts of cocoa feel essential to you?

Re: “Swift will be open source later this year”

#102

I will surely be downvoted for speaking so off the cuff, but I haven't really enjoyed swift so far. How has the general developer reception been to the language, not just with respect to obj-c, but also to java or any other turing complete language?

It's better than Objective C, so I like it. But if iOS was open to every language I doubt people would be paying much attention to it.

Re: “Swift will be open source later this year”

#103

> Swift will be open source later this year, available for iOS, OS X, and Linux. They're doing Linux but not Windows? Is Windows not sufficiently important or maybe they just forgot to include Windows in the announcement?

It's perhaps because Linux is (almost) POSIX compliant, but Windows is not? It would make porting to Linux far more easier than to Windows.

Technically it's the reverse, Windows is POSIX compliant, and Linux is almost compliant. However, the non-posix features liunx provides makes it easy to port from the various *nixes where as Windows precise POSIX compliance ensures virtually nothing runs unless the app is written purely to the POSIX spec.

Re: “Swift will be open source later this year”

#104
post #11

Nice to see that Chris (Lattner) got his way. I chatted with him last WWDC right after the main Swift technical session, and he expressed the desire to open source it, but had no idea if he could get it through the powers that be. Supporting the standard libraries on Linux is certainly a surprise, though.

Tim Cook didn't seem as enthousiast with announcing the open-sourcing compared to other announcements

Re: “Swift will be open source later this year”

#105
post #51

People who talk about swift compare it to Rust and Go. I can see how the syntax is to ObjC what Go is to C++. Else but that, in what way is Swift anything like Go or Rust? To me (someone who does Lisp & JS, so none of these all) go seems cool for concurrency and being 'boring' (in a great way). Rust seems cool for being very robust and 'safe' (or hard to screw up with), while still doing concurrency nicely and lettin…

To name a few: Swift's type system is far more sophisticated (e.g. you can say "This is a list of numbers" and have it statically enforced that you don't accidentally stick a string in there), it does a lot of plain direct dispatch rather than Objective-C's dynamic-everything, and it uses a proper option type instead of having null landmines everywhere.

Re: “Swift will be open source later this year”

#106

> Swift will be open source later this year, available for iOS, OS X, and Linux. They're doing Linux but not Windows? Is Windows not sufficiently important or maybe they just forgot to include Windows in the announcement?

Maybe it is just because WINAPI is different from *nix.

As easy as it is to ignore the difference in these days of cross-platform development toolchains and environments, they still are very different operating systems under-the-hood. As opposed to OSX and Linux, which are both rooted in a UNIX past and therefore have some shared assumptions about how things like a directory structure and process management are supposed to work.

Re: “Swift will be open source later this year”

#107
post #14

Swift on Rails, who's first :) ? I suspect Heroku are working on preparing for an out of the box build pack, but I guess they don't have access yet since it's out late 2015. At least I hope so, looking for a better Ruby replacement but I still like Rails.

They should call it Swift On Sails.

Re: “Swift will be open source later this year”

#108

Apple explicitly said they see Swift as a systems language... curious what people thing about that. Does it compete with C/Rust, or is it just a pipe dream/marketing message?

It's designed to give it hype, it's not a systems language.

The first question you should ask for any systems language is how to I integrate assembler, when the answer is to use C / C++ then you know it's not a systems language.

Also, how you can tell a language is a systems language, it has an operating system written in it used by a large user base.

How do you layout a struct in Swift so that it's the exact size and layout you want? You can't, again, not a systems language. It's like going to Home Depot and buying "industrial grade" appliances which are usually just your standard shitty appliances with a stainless finish.

Re: “Swift will be open source later this year”

#109

Aside from graphics/GUI programming; there is little advantage to Objective C or Swift. The "language" may be "open sourced"; but will the important Cocoa implementations be open sourced? It shouldn't be to too tough to re-implement Swift; unless Apples starting suing people for doing it. The exact meaning of Apples announcement needs some clarification.

The language itself is lovely. What parts of cocoa feel essential to you?

Actually, if you want to do backends, nothing is essential from Cocoa itself.

I think Foundation might be necessary though, even if you just use Swift structs (Array, Dictionary, etc)

Re: “Swift will be open source later this year”

#110
post #11

Nice to see that Chris (Lattner) got his way. I chatted with him last WWDC right after the main Swift technical session, and he expressed the desire to open source it, but had no idea if he could get it through the powers that be. Supporting the standard libraries on Linux is certainly a surprise, though.

Supporting Linux is a surprise, but I think it's a great move on their part.

Think: How many iOS apps are frontends to a server API? And how many of those APIs are running on Linux servers? Swift on Linux means ~all the code for a client-server iOS app can be written in the same language.

Post reply on HN