Live data from Hacker News

The Swift Programming Language

developer.apple.com

101–110 of 970 posts

Re: The Swift Programming Language

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

Re: The Swift Programming Language

#103

What kind of benchmark produced 220 times something faster than Python? My guess is that they did it on a mobile device and used an application like this: https://itunes.apple.com/us/app/python-2.7-for-ios/id4857298...

What kind of benchmark produced 220 times something faster than Python?

Python and Ruby are resource profligate dynamic languages in comparison to other dynamics langs like Lua and Smalltalk. If you are surprised that someone could come up with a benchmark that disadvantages Python by a factor of 200, then you have a lot of neat reading to look forward to in language implementation and Python internals. For some reason speed is easy for our reptilian brains to grasp at. It's not the be-all end-all of a language.

Re: The Swift Programming Language

#107
post #33
post #5

Anybody have any reference to language docs?

It just became available in the US ibook store https://itunes.apple.com/us/book/swift-programming-language/...

And if anyone else accidentally tried to get it in the UK store first follow these instructions to get the use store back:https://discussions.apple.com/message/22116986#22116986

basically you just need to scroll to the bottom of the bookstore front page and touch your username to logout and then log back in.

Re: The Swift Programming Language

#108
post #37

I'm not even an iOS developer but this is by far the most exciting thing I heard in the keynote. As an amatuer/hobbyist programmer who's self-taught with Ruby, JavaScript, etc., the one thing that was keeping me from experimenting with iOS apps was Objective-C. I know I could tackle it, but it's been hard to take the plunge. I don't know much about Swift yet, but from what I've seen it looks very exciting. So if Appl…

I spent a lot of time trying to do stuff with ObjectiveC, but just hated the syntax. That's been the biggest thing keeping me from developing Mac OSX apps; I just prefer Ruby's simplicity. I'm going to seriously give Swift a try.

Yep, same here. It looks pretty JavaScript-y, which is familiar at least. I think this is a good move on Apple's part.
Post reply on HN