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.
Swift is Open Source
171–180 of 458 posts
Re: Swift is Open Source
#172Earlier 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.
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
#173Would anyone use Swift if it wasn't necessary for iOS?
Re: Swift is Open Source
#174Re: Swift is Open Source
#175Somebody compare and contrast swift for backend development with golang, node, etc. Google is giving me nothing useful.
Re: Swift is Open Source
#176What 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/
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
#177I 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…
Re: Swift is Open Source
#178What 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.
var name : String
func nameMe(name: String) : String
Re: Swift is Open Source
#179Shameless self-promotion: Here is a great way to learn Swift on your phone: http://swifty-app.com/
Re: Swift is Open Source
#180It 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...