Live data from Hacker News

The Swift Programming Language

developer.apple.com

51–60 of 970 posts

Re: The Swift Programming Language

#51
post #2

As someone who always disliked Objective C, I think Swift looks very promising. I'll check it out right away :) Software-wise, I feel these current WWDC announcements are the most exciting in years. Looking at the Swift docs right now, I can see many interesting inspirations at work: there's some Lua/Go in there (multiple return values), some Ruby (closure passed as the last argument to a function can appear immediat…

He mentioned the desire to drop the "C" from objective-c, but I'm curious what this means for using c/c++ libraries now. Do they need to be wrapped by objective-c before being visible in swift?

Re: The Swift Programming Language

#53

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 can see a reason: it's gunning for the mindshare of the kind of developers who like the features in Python. But you're right that performing faster than Objective-C tells you what you need to know, and showing the Python comparison first was just showmanship.

I would have been interested in a JavaScript comparison, which I'm sure we'll be seeing from third parties soon.

Re: The Swift Programming Language

#57

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 a comparison of how fast they made a dynamically typed language. (Yes, Objective-C is considered dynamically typed as well.)

Re: The Swift Programming Language

#58
Looks a lot like golang meets haskell:

func makeIncrementer() -> (Int -> Int)

EDIT: Why the downvotes? was just an observation not a criticism. Looking forward to using it instead of Objective-C.

Re: The Swift Programming Language

#60

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).

Swift looks a lot like a scripting/dynamic programming language. For e.g. this is a complete Swift program:

    println("Hello")
I think the idea was that Swift will be as easy to code as Python and faster than Objective-C.
Post reply on HN