Live data from Hacker News

The Swift Programming Language

developer.apple.com

31–40 of 970 posts

Re: The Swift Programming Language

#32

Oh God, they just compared the speed of Objective C, Swift and... Python! It's nice to see Swift being faster than Objective C, etc., but what has Python got to do with coding native iOS/OS X apps? Of course it's going to fail at speed when compared to a static compiled language. What a weird and pointless comparison, imo (I mean the inclusion of Python, seems so random to me).

It's neither weird nor pointless. They're going for something that is as comfortable to work with as modern dynamic languages, for something that eschews the cruft of ObjC. Python is simply a very popular representative for this type of language.

Of course, it's an easy target. But I can see why they went for it.

Re: The Swift Programming Language

#34

Oh God, they just compared the speed of Objective C, Swift and... Python! It's nice to see Swift being faster than Objective C, etc., but what has Python got to do with coding native iOS/OS X apps? Of course it's going to fail at speed when compared to a static compiled language. What a weird and pointless comparison, imo (I mean the inclusion of Python, seems so random to me).

Runtime speed is only tangentially related to the fact that they are compiled ahead of time or not.

I guess the comparison with Python is that Swift code looks more like Python than C.

Re: The Swift Programming Language

#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 Apple's goal was to get new devs into the iOS world, at least from 10k feet, it's working.

I'm excited!

Re: The Swift Programming Language

#39
post #29

Earlier quoted context omitted.

Here you go: https://itunes.apple.com/gb/book/swift-programming-language/...

Ugh, not available in Canada. Way to kill my excitement, Apple. Edit: Canadian link worked! Sorry Apple.

Does this one work for Canada?

https://itunes.apple.com/ca/book/swift-programming-language/...

Re: The Swift Programming Language

#40

Oh God, they just compared the speed of Objective C, Swift and... Python! It's nice to see Swift being faster than Objective C, etc., but what has Python got to do with coding native iOS/OS X apps? Of course it's going to fail at speed when compared to a static compiled language. What a weird and pointless comparison, imo (I mean the inclusion of Python, seems so random to me).

I mean the inclusion of Python, seems so random to me It's supposed to be a "mainstream" scripting language. Also, it's an easy way for them to get favorable numbers for their presentation.

Yes. But what has that got to do with writing native apps?
Post reply on HN