Live data from Hacker News

“Swift will be open source later this year”

apple.com

31–40 of 573 posts

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

#31
post #18

And it runs on Linux.

Open Source wins! Seriously can't tell you the fights just 8 years ago in conventions with hundreds of librarians where most of them thought Free Software was the devil and hackers all had the key to destroying anything Open Sourced.

So can we finally say that Hell has Frozen Over?

Microsoft Open Sources Parts of Visual Studio and releases Linux Software.

Apple open sourced their language and it will work on Linux.

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

#33

This places Swift right along Golang and Rust as the new interesting language.

I think Rust fills a slightly different niche with its safety-first principle, but Swift should eventually be a really attractive choice for anyone building cross-platform stuff that also needs to run on iOS.

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

#35
post #23
post #4

No, Apple announces they intend to open source Swift at a future date. That's not the same as doing it.

As far as HN comments go, this one sets a pretty low bar. Is there even one doubt that this will happen? If not, the pedantic distinction between "announce they intend to" and "doing it" is extremely worthless...

Apple also said they would make FaceTime an open and interoperable protocol "later this year". So being sceptical of Apple's promises of openness are justified.

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

#36
post #23
post #4

No, Apple announces they intend to open source Swift at a future date. That's not the same as doing it.

As far as HN comments go, this one sets a pretty low bar. Is there even one doubt that this will happen? If not, the pedantic distinction between "announce they intend to" and "doing it" is extremely worthless...

We've been waiting ~5 years for the facetime open standard, so yes, there is some doubt.

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

#37

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?

What I personally dislike about Swift is the change in mental context when dealing with the combination of C/C++ and Swift code. Plenty of nontrivial apps use significant amounts of C and/or C++ libraries in some way.

The switch when dealing with a combination of C/C++ and Objective-C source was not really a problem. But trying to interface a C++ library into a Swift application is less than a fun experience.

Personally, while the language is fresh and seems pretty good (it has some great additions), I still prefer Objective-C. I guess I'm waiting for better integration with existing libraries.

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

#38

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?

Swift as a language is pretty great, however, the tooling and obj-c interop make it a pain in the ass.

It's hard to realize most of the performance benefits when everything you're interacting with requires objc_msgsend or uses NSArray / NSDictionary.

As well, it's far less 'scripty' than Obj-c. The type system in swift really leaves something to be desired in terms of typing types. The point of Obj-C was kind of to avoid writing the kinds of apps where a great type system would really shine, swift lets you build those kind of apps, but in my opinion most of the time we shouldn't be building them.

Your project probably doesn't need 1,000 developers on it who need solid interfaces and type checking to make sure that everything is going according to the UML diagram. It probably needs 2 or 3 developers who talk to each other, add asserts to their code, and a type system thats a little forgiving.

ObjC is a language that has everything you really really need, and left out the 1 thing you kinda wanted in exchange for leaving out the thousand 1 little things that everyone else wanted too. Like for example exceptions, sure they're there, but it's not idiomatic and when you program without them you realize what a crappy idea they were in practice. In day to day coding NSError is 1000x better than exceptions.

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

#39

Swift interfaces with C and Objective-C natively right? I can't wait to see web servers written with it.

I'm very excited to write web servers in it. I think this is probably how open sourcing it was sold, internally; that it would allow people to develop their entire infrastructure using apple's technologies.
Post reply on HN