The new language integrates with a new development feature of Xcode, called ‘Playgrounds’. Playgrounds is a testing ground that renders developer code in realtime. Developers can jump in and out of game time, for example, whilst typing.
Apple claims Swift brings all of these new realtime development features without bearing any additional cost. In many ways, Swift acts like a modern JavaScript language but runs natively on the device. Developers can start submitting apps written in Swift from day 1 of iOS 8′s and Yosemite’s public release.
iOS 8 will allow users to install systemwide third-party keyboards
--------------------
Can't stop laughing.
Name:
Anonymous2014-06-02 18:06
The company says that Swift apps are significantly faster than Objective-C apps, outperforming them by over 93x.
Macs will also be able to pick up calls from nearby iPhones and function as a speaker phone. Mac desktops will also be able to dial a nearby iPhone, which Federighi demonstrated by placing a call to Dr. Dre.
"What time should I show up for work?" Dr. Dre asked, referring to Apple's recent acquisition of Beats headphones last week.
Name:
Anonymous2014-06-02 18:33
I don’t know if I should be thrilled or pissed. I am a teenage developer who has been learning objective-C for a month (well I tried a few month before and gave up and picked it up after the last exam). And I borrowed a few books to learn about it and paid a online course to learn Objective-C. Now apple is releasing a new language. I was like ..seriously..? I just learnt a part of it and there is a new one???????????
Name:
Anonymous2014-06-02 18:35
Apple is releasing a new programming language? I'm sure people are going to love it just as much as their other languages.
The company says that Swift apps are significantly faster than Objective-C apps
Oh hey, check out our cherry-picked synthetic benchmarks.
Seriously now, these news are mostly worthless without any actual information on what it will look like.
Name:
Anonymous2014-06-02 21:01
>>9 The old language is still there, and is still going to be there for a long time. The new language is designed around the same APIs that you'd be using in the old one; you're still instantiating the same classes, calling the same methods, and so on. That knowledge isn't obsolete. However, the design of Objective-C requires you to write a lot of boilerplate code, and the new language puts most of that "under the hood" so you can focus on your application logic.
>>10 let size = (20, 40) switch size { case let (width, height) where width == height: println("square with sides \(width)") case (1..10, 1..10): println("small rectangle") case let (width, height): println("rectangle with width \(width) and height \(height)") }
func fizzbuzz(end: Int) { for i in 1..end { if i % 15 == 0 { println("FizzBuzz") } else if i % 5 == 0 { println("Buzz") } else if i % 3 == 0 { println("Fizz") } else { println(String(i)) } } }
I've already guessed it will most likely be without pointers and now >>15-san assures me. Wow. It's like most 'modern' langs are actually just C minus 2 or 3 features (mostly pointers, the preprocessor or the typing system) and then some gimmicks tacked on (like string interpolation, half-assed OOP or 'functional' programming -- which C has, to some extent, too).
[..] we wondered what we could do without the baggage of C.
A JavaScript clone?!?
Name:
Anonymous2014-06-03 4:11
So it's basically the Javascript-flavored Obj-C for the LLVM.
Name:
Anonymous2014-06-03 4:38
>>17 That's not really fair. HOP, ADTs and non-nullables are not things you can do satisfactorily in C. From what I see, these are not half-assed either. You can't even do 'protocols' properly with full erasure in C. Maybe Swift doesn't do complete erasure on them either, that's yet to be seen.
Name:
Anonymous2014-06-03 4:55
Mainstream shit is decades behind PL research. Holy crap, they regard Option as an innovation! They're ready to gulp whatever shit they get poured if it has enough marketing buzzwords. Applefags really deserve the way Apple treats them.
Name:
Anonymous2014-06-03 4:57
>>20 it's probably done that way intentionally so that swaths of programmers with little training can be assembled into the workforce.
Name:
Anonymous2014-06-03 5:00
<nothings> Apple email with subject 'Start developing for iOS 8': "With over 4,000 new APIs..." I'm going to stop you right there Apple. No. Just no.
—Sean Barrett
<%yminsky> RT @marius: “4000 new developer APIs” is exactly the opposite of what you want. <yminsky> Joy: Apple's Swift has variants and pattern matching. Sadness: their documentation is only available in the proprietary ibook format. <%yminsky> RT @bos31337: It's interesting to compare Swift and Go. One has caught up to the 1990s in language design, with the other firmly in the 60s. <yminsky> Swift's design is so much less depressing than Go's. Confirmation that algebraic data types are not too hard for real world programmers. <yminsky> I worry though, that Apple's instincts will lead it to keep Swift closed-source. That will surely limit the language's success.