Live data from Hacker News

“Swift will be open source later this year”

apple.com

141–150 of 573 posts

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

#141
post #77

Earlier quoted context omitted.

They said it will happen by the end of 2015.

Which is still not "pulling it off", which is my point.

Which is not a very interesting thing to gripe over.. there's nothing wrong with being excited about the announcement, why don't we stop with the pedantry?

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

#144
post #122
post #38

Earlier quoted context omitted.

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 a…

> 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. Can you clarify this? What is the kind of apps where a "type system would really shine"? How can you avoid writing them?

Type systems really shine in apps that you maintain. You avoid writing them by writing shovelware that intends to extract the maximum amount of money in a short term and be replaced by something else in the long term.

I don't think that's really what Obj-C was designed for.

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

#145
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.

I've been wondering for a while now why no one builds an Obj C backend for their apps:

https://news.ycombinator.com/item?id=9500855

Being able to deploy on Linux might be what it takes!

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

#148

Earlier quoted context omitted.

The same was said about FaceTime... http://www.fiercedeveloper.com/story/facetime-open-standard-... Sadly, this never came to fruition, supposedly due to legal complications. Since they own Swift, and the underlying compiler infrastructure this may be simpler to pull off.

FaceTime was my first thought, too. An awesome promise that failed to deliver. It'll be really interesting to see if a video chat format ever becomes a standard, or if we're all forced to keep accounts with multiple vendors for interoperability (skype, hangouts, facetime, etc).

WebRTC is works under Firefox and Chrome, and is standardized.

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

#149
post #122
post #38

Earlier quoted context omitted.

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 a…

> 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. Can you clarify this? What is the kind of apps where a "type system would really shine"? How can you avoid writing them?

Apps that have a lot of YAGNI features.

eg. For some reason your app has the ability to use Postgres instead of SQLite, even though you always use SQLite.

eg. For some reason your app supports Postgres/MYSQL/SQL Server because every enterprise you sell to wants to run their preferred database instead of the one that works best with your product.

In short 'enterprise' apps.

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

#150
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…

ObjC is really just plain C, plus some Smalltalk-like semantics within the square brackets. This means you end up with all the "footguns" of C, plus dynamic OO behavior. Swift is like Rust in that it's intended to be fast, "safer", and compiles to LLVM bytecode. Also, Swift and Rust both use Option types for error reporting rather than exceptions or error codes. In the same sense that Rust is a way to leave behind ol…

I wouldn't say optionals are necessarily for error reporting. According to this slide[0], actually, we're going to be getting a proper error-handling model in Swift 2— we'll hear more either today or tomorrow.

[0] http://www.apple.com/live/2015-june-event/eda6e3f7-0fda-4b46...

Post reply on HN