Live data from Hacker News

The Swift Programming Language

developer.apple.com

311–320 of 970 posts

Re: The Swift Programming Language

#311

Feels like they looked at a bunch of programming languages, took all their favorite features, and then put them into one which still sits on top of the ObjC runtime. And then added some Apple syntactic craziness. For example: var apples = 3; // mutable let oranges = 5; // immutable let summary = "I have \(apples) apples and \(oranges) oranges";

[deleted]

Re: The Swift Programming Language

#312
post #293

So it looks like the language isn't open source and won't target non-Apple runtimes? I'm not trying to troll, I just think that it's a pity that Apple tends to limit the ecosystem and applications of its otherwise-great languages. Building against LLVM ought to make it fairly trivial to make this cross-platform.

[deleted]

This link is for a previously existing Swift language.

Re: The Swift Programming Language

#313
post #254

Question: It sounds like the Xcode 6 beta is available on the dev center but I can't find it. Do you have to be a paying developer to have access to it, or does anyone know if it's going to be made available for free to (unpaid) registered developers?

I can't think of a reason why they wouldn't allow unpaid devs to play with Swift.

Re: The Swift Programming Language

#314
post #279

So it looks like the language isn't open source and won't target non-Apple runtimes? I'm not trying to troll, I just think that it's a pity that Apple tends to limit the ecosystem and applications of its otherwise-great languages. Building against LLVM ought to make it fairly trivial to make this cross-platform.

You can see first chapter of the book here http://imgur.com/a/AuzGw I've uploaded it just now

Why I get down votes? It's a free book. People on other platforms can't access it.

Re: The Swift Programming Language

#315

I just skimmed the tour, and my impression is: Swift is a compiled, Objective-C compatible Javascript-alike with an ObjC-like object model, generics, and string interpolation. No exceptions. Based on LLVM and appears to inherit the same data structures as Cocoa apps (Dictionaries, Arrays, &c). It feels very lightweight, sort of like an analog to what Javascript is in a browser.

It's also apparently super fast, and implicitly typed, and designed for safety.

Re: The Swift Programming Language

#316
post #256
post #88

Unicode variables, I love it: let 🐶🐮 = "dogcow" Moof!

You can do this in C# (and presumably other languages). I've seen people using Greek symbols in mathy code before. It's kind of fun.

I'm stuck doing most of my work in php, so this is kind of neat. (I also like that the example in the text resurrects the famous 30 year old dogcow joke.)

Re: The Swift Programming Language

#317
post #289

"The company says that Swift apps are significantly faster than Objective-C apps, outperforming them by over 93x." With a graph showing ObjC at 127x faster than Python, Swift 220x faster than Python. Thus the conclusion is 220 - 127, Swift is 93x faster than ObjC. Someone needs to resit their GCSEs.

[deleted]

Re: The Swift Programming Language

#318
post #134
post #79

[deleted]

> language website: http://swift-lang.org/ Nope, completely different. Really scummy of Apple to just nick the name of an existing language for their new one, it's been five minutes and people are already confused.

I don't know if it's scummy, but at least they link to the swift-lang.org website at the bottom of the page.
Post reply on HN