It seems like the only way to view the programming language documentation is on iBooks on an iOS device? For a programming book, this is ridiculous. Edit: The latest version of OS X does support iBooks. Lets hope you have that.
The Swift Programming Language
231–240 of 970 posts
Re: The Swift Programming Language
#232“You also don’t need to write semicolons at the end of every statement.” Please. Please. PLEASE don't be whitespace delimited!
One of the prime examples I give for how HN/reddit has gone downhill was being downvoted by some clueless hipsters for suggesting that it would be easy to cross-compile from a whitespace-delimited language to a non-whitespace-delimited one. It's not some kind of huge fundamental divide in languages. For any non-whitespace delimited context free language, it should be possible to write a homomorphic transformation to a whitespace delimited one.
This is something that people should consider trivial and be beyond discussing.
Re: The Swift Programming Language
#233Anyone feel like converting the epub from iBooks to a PDF/HTML page we can read more easily?
Re: The Swift Programming Language
#234Earlier quoted context omitted.
This will also be incredible for ease-of-setup. Install Xcode, and you're ready to go. No other dependencies. Setting up a dev environment can be one of the big reasons people fail to learn to program.
>This will also be incredible for ease-of-setup. Install Xcode, and you're ready to go. No other dependencies. 1. Buy particularly expensive computer 2. Register as an apple developer 3. Install Xcode, and you're ready to go. > Setting up a dev environment can be one of the big reasons people fail to learn to program. Citation needed :)
1. Buy a Mac mini for $600, which doesn't strike me as particularly expensive.
2. There is no step 2.
3. Download Xcode from the Mac App Store for free.
Re: The Swift Programming Language
#235So it looks like the language isn't open source and won't target non-Apple runtimes? I'm not trying to troll, I just think that it's a pity that Apple tends to limit the ecosystem and applications of its otherwise-great languages. Building against LLVM ought to make it fairly trivial to make this cross-platform.
Is there anything to stop a independent implementation? Like C#/.Net and Mono?
Re: The Swift Programming Language
#236Does this mean that we can use the Swift REPL in the Xcode debugger to explore running ObjC programs? That would be enormous fun, not to mention very powerful.
Re: The Swift Programming Language
#237Link to the EBOOK on iTunes: https://itunes.apple.com/nl/book/swift-programming-language/...
Is there any way to get this without installing iTunes?
Re: The Swift Programming Language
#238I 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.
I think it uses the Objective-C runtime directly, so it has access to all the frameworks and Swift classes can be loaded into Objective-C projects as well. There are a few other languages that do this with the Obj-C runtime, for example a Lisp variant called Nu[0]. [0] http://programming.nu/
Re: The Swift Programming Language
#239Re: The Swift Programming Language
#240This will revolutionize programming education. Interestingly enough, the time manipulation in Swift was inspired by a game called Braid ( http://en.wikipedia.org/wiki/Braid_(video_game) ) released back in 2009. This will help young programmers solidify the connection between giving the computer logical commands and what is outputted on the screen immediately. Reminds me of how excited I was when Processing ( http://w…
How do you see it as revolutionizing programming education? I'm pretty ignorant in this area, but it seems like a very high level language that abstracts a ton of stuff - and very platform specific too if I'm not mistaken. Is that really where we want people to start? I would have thought either a highly graphical language with buttons and widgets for early education, then moving onto platform-agnostic stuff like jav…