Live data from Hacker News

Inside Swift

eswick.com

1–10 of 25 posts

Re: Inside Swift

#2
I also covered some of this (in fact, last I saw this article, much more than is here, but I can't see the article right now because it is just saying there is a database error) in my talk at AltConf (during WWDC), where I used Hopper and Cycript (my Objective-C/JavaScript hybrid debug REPL) to demonstrate the layout of a Swift object (as well as taking some questions afterwards from the audience).

https://www.youtube.com/watch?v=Ii-02vhsdVk

Re: Inside Swift

#4
post #2

I also covered some of this (in fact, last I saw this article, much more than is here, but I can't see the article right now because it is just saying there is a database error) in my talk at AltConf (during WWDC), where I used Hopper and Cycript (my Objective-C/JavaScript hybrid debug REPL) to demonstrate the layout of a Swift object (as well as taking some questions afterwards from the audience). https://www.youtub…

All the 'I also _____' and 'me too me too!!!' comments are so distasteful.

Re: Inside Swift

#5
post #4
post #2

I also covered some of this (in fact, last I saw this article, much more than is here, but I can't see the article right now because it is just saying there is a database error) in my talk at AltConf (during WWDC), where I used Hopper and Cycript (my Objective-C/JavaScript hybrid debug REPL) to demonstrate the layout of a Swift object (as well as taking some questions afterwards from the audience). https://www.youtub…

All the 'I also _____' and 'me too me too!!!' comments are so distasteful.

I'm new to HN, but are you new to the internet? Saurik knows a few things about iOS, google him.

Re: Inside Swift

#6
"Swift is Apple’s new programming language, said by many to ‘replace’ Objective-C. This is not the case. I’ve spent some time reverse engineering Swift binaries and the runtime, and I’ve found out quite a bit about it."

Correct me if I'm wrong (and my point certainly isn't meant to detract from the interest of looking more in-depth at Swift internals), but this article doesn't appear to support this claim at all. It seems equivalent to saying Scala isn't meant to replace Java, or C assembly, because at the end of compilation it's all just Java. Abstraction is real. Also, Apple is providing a "migration guide" for porting Objective-C apps over to Swift. Nothing is conclusive, obviously, but certainly the article does not show that Apple doesn't intend for Swift to ultimately replace Objective-C as the primary language of Mac development.

Re: Inside Swift

#7
If you have Xcode 6 installed this is the binary to actual Swift REPL:

    /Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift
Also try :gui command inside the REPL

Re: Inside Swift

#8
post #5
post #4

Earlier quoted context omitted.

All the 'I also _____' and 'me too me too!!!' comments are so distasteful.

I'm new to HN, but are you new to the internet? Saurik knows a few things about iOS, google him.

Grandparent was probably out of line (saurik's comment provided useful information that went beyond me too-ism), but I can understand why one would be wary. Its hard to keep up with who is legit, and there has been a lot of me tooism lately.

At least no one has started writing any horrible books on Swift yet.

Re: Inside Swift

#9
post #7

If you have Xcode 6 installed this is the binary to actual Swift REPL: /Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift Also try :gui command inside the REPL

Give it the -i argument when you invoke it and you can use it for a #! shell

Re: Inside Swift

#10

"Swift is Apple’s new programming language, said by many to ‘replace’ Objective-C. This is not the case. I’ve spent some time reverse engineering Swift binaries and the runtime, and I’ve found out quite a bit about it." Correct me if I'm wrong (and my point certainly isn't meant to detract from the interest of looking more in-depth at Swift internals), but this article doesn't appear to support this claim at all. It…

Yeah, the article's technical analysis is good but I'm not sure what this line was supposed to say: what it actually says is wrong. Swift is definitely intended to replace Objective-C.

Perhaps that line in article meant that it's not binary identical to Objective-C. Swift classes definitely use different method invocation semantics (unless you adorn the class with the @objc attribute).

Post reply on HN