Live data from Hacker News

Swift is Open Source

swift.org

171–180 of 458 posts

Re: Swift is Open Source

#171
post #131
post #120

Am I the only one who finds it odd that while pushing two high level but performant languages (Objective-C and Swift) Apple wrote their Swift compiler in C++?

Chris Lattner who created Swift wrote LLVM in C++, so it is probably easier to work with and he know C++ very well.

[deleted]

Re: Swift is Open Source

#172
post #88

Earlier quoted context omitted.

> I remember when Steve Jobs went on stage and said that FaceTime would be an open standard. Haven't seen that happen yet. FaceTime has been the subject of multiple patent lawsuits, which is what has prevented it from being opened. See: http://www.bbc.com/news/technology-20236114 and http://www.techzone360.com/topics/techzone/articles/2014/09/...

Why would this affect opening the protocol? Patents aren't about keeping implementations secret.

My understanding is that the patent nonsense forced Apple to transform FaceTime from a peer-to-peer protocol into one that transmitted all data through centralized servers, specifically Apple's servers.

That meant that if the goal was for interoperability, Apple had to either provide server capacity for a bunch of other people's traffic, or they would have had to come up with a way to federate the system.

Federation certainly could have been done, but that's a lot of sudden extra growth in scope compared to just taking what they had and releasing it.

Re: Swift is Open Source

#176

What was the design decision that required function declaration to be : func hello(name: String) -> String { } rather than, func hello(name: String) : String { }

You might find this handy: http://fuckingswiftblocksyntax.com/

Thanks for the link.

I think, the function type :

(Int, Int) -> Int

may have been the main reason, but having

(Int, Int) : Int

func nameMe(name: String, calName: ((Int, Int) : Int))

would still have worked, and made the syntax more aesthetic.

Re: Swift is Open Source

#177

I still remember max howel tweet[1] in which he publicly said that we was rejected by Google. Looking at his linkedin profile[2] , he was later hired by Apple in August 2015. Now he is biggest[3] contributed to Swift package manager. It is good to see that the person who has lot of experience in handing Apple and package system is handing this stuff. I guess, things happens for good. [1] https://twitter.com/mxcl/stat…

It's really great to see Apple investing in package management for Swift. Handling dependencies and versioning well is so important for a language to get right out of the gate.

Re: Swift is Open Source

#178

What was the design decision that required function declaration to be : func hello(name: String) -> String { } rather than, func hello(name: String) : String { }

It seems pretty consistent with functions in a set-notation sense, with functions that map a tuple of stuff to something else. The mapping being indicated by an arrow instead of a colon.

I was thinking more about Types here

var name : String

func nameMe(name: String) : String

Re: Swift is Open Source

#180
post #37

It looks like Apple is also releasing an official package manager for swift.[1] I wonder how that will effect Cocoapods. [1] https://swift.org/package-manager

Also of note, the largest contributor to the package manager is Max Howell (mxcl), the creator of Homebrew: https://github.com/apple/swift-package-manager/graphs/contri...

Interesting to also see Mattt Thompson helped out.
Post reply on HN