Live data from Hacker News

The Swift Programming Language

developer.apple.com

71–80 of 970 posts

Re: The Swift Programming Language

#72

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 think it's the most popular obj-c/cocoa binding.

Re: The Swift Programming Language

#73
This is probably the biggest announcement from a developer perspective. Swift looks like a language in which you can code as fast as you code in languages like Ruby or Python, while having the speed and performance of a language like Objective-C.

Re: The Swift Programming Language

#74
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?

It seemed like it could interoperate with C just fine based on the slide talking about all three. Also because it uses the Objective-C runtime and compiles to native, it might just see C functions as normal functions. Though what little I've looked at the free book hasn't given me any hints about that yet.

Re: The Swift Programming Language

#76
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/...

I'm in the UK and this link is working for me, but the one posted earlier with "gb" in the URL isn't.

Re: The Swift Programming Language

#77

Earlier quoted context omitted.

Supposed to be on ibooks

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

Your other post is dead, just FYI. The filters will kill duplicate posts from the same user (within a time period?)even if under different threads.

Re: The Swift Programming Language

#78

The demo from the WWDC keynote is quite impressive. Unfortunately, this site seems to have been slashdotted. (Basically, Swift is "Apple acquires their own LightTable.") It's touted as a language for parallelism. I'm curious about its concurrency primitives. Since distribution is shown as a top feature, I'm going to guess that it has an Erlang-like actor model. Having ARC and not needing GC will end up being a big fu…

Swift doesn't seem to have anything to do with the parallel language at swift-lang.org. In any case, reference counting is disastrous for the parallelism story. GC thread coming along and causing an additional cache miss is way better than having to do atomic operations on reference counts all the time.
Post reply on HN