Go Back   MacRumors Forums > News and Article Discussion > MacRumors.com News Discussion

Reply
 
Thread Tools Search this Thread Display Modes
Old Jun 2, 2014, 03:51 PM   #1
MacRumors
macrumors bot
 
Join Date: Apr 2001
Apple Announces Significant SDK Improvements with New 'Swift' Programming Language, CloudKit and More




Apple devoted the last third of its keynote address at the Worldwide Developer Conference today to improvements for its Software Development Kit (SDK), launching a new programming language called Swift, and development kits for health, home automation, iCloud and inter-app operability.

The announcement that got the biggest reaction from developers was Swift, a new programming language for Cocoa and Cocoa Touch that Apple calls modern, fast and powerful and designed for safety.
Quote:
Swift is the result of the latest research on programming languages, combined with decades of experience building Apple platforms. Named parameters brought forward from Objective-C are expressed in a clean syntax that makes APIs in Swift even easier to read and maintain. Inferred types make code cleaner and less prone to mistakes, while modules eliminate headers and provide namespaces. Memory is managed automatically, and you don't even need to type semi-colons.
Swift also includes "Playgrounds", which allows developers to see the results of their code in a side panel in real time. The developer community appears extremely excited about Swift, with Realmac's Nik Fletcher saying he had "no words". Notable Apple pundit and developer John Gruber said that Swift is "huge, huge news" and the "future of all Apple development".

iCloud has also been partly opened up for developers with a powerful new framework for developers called CloudKit. It allows developers to avoid costly and time-consuming coding the server-side of applications, with Apple providing huge amounts of cloud storage and computing power for free, albeit with extremely high limits to encourage tight coding.
Quote:
Leverage the full power of iCloud and build apps with the new CloudKit framework. Now you can easily and securely store and efficiently retrieve your app data like structured data in a database or assets right from iCloud. CloudKit also enables your users to anonymously sign in to your apps with their iCloud Apple IDs without sharing their personal information.
Additionally, Apple announced lots of new APIs for developers to take further advantage of iOS. Extensibility allows apps from the App Store, which are usually isolated in sandboxes, to communicate with each other. For instance, the Pinterest app could be updated to provide a sharing option in Safari, or Bing could be updated to provide translations within Safari. Another example includes the Photos app, which can use filters from third-party apps like VSCO.

Apps from the App Store can send widgets to the Today pane in the Notification Center. For instance, ESPN's SportsCenter could add a widget within the Today pane that allows users to easily check the latest sports scores without having to open the app. Widgets are also interactive, allowing users to, for example, bid for an item on eBay from within the Notification Center.

Other parts of iOS have been opened up to developers as well, including the ability for users to swap out the default iOS keyboard for third-party options like Swype. Touch ID has also been opened up to developers, allowing apps like Mint to use fingerprint scans instead of passwords.

Apple also announced its rumored home automation platform, called HomeKit. Previously, each home automation app used its own security protocols. Now, after working together with leaders in the home automation field, all apps can work together with a single protocol and secure pairings. This allows automated home devices, like Phillips' Hue lights, to work with Siri. Users can now tell Siri something like "Siri, get ready for bed" to turn off the lights, close the garage and whatever other functions are automated in a users' home.

Apple has also improved things for game developers, announcing Metal, which frees up resources for game developers to make better looking and more powerful games for iOS devices. For instance, EA would now be able to use its Frostbite engine for console games for games meant for iOS, like the upcoming Plants vs Zombies: Garden Warfare.

Xcode has been updated with live rendering, view debugging, performance testing, storyboards and more.

All of these SDK features are available for developers in the iOS 8 beta today, and will be available for consumers later this year in the fall. Much more information is available at Apple's Developer website.

Article Link: Apple Announces Significant SDK Improvements with New 'Swift' Programming Language, CloudKit and More
MacRumors is offline   2 Reply With Quote
Old Jun 2, 2014, 03:53 PM   #2
Watabou
macrumors 68030
 
Watabou's Avatar
 
Join Date: Feb 2008
Location: United States
Swift book link: [iBooks]
Overview: [link]

From a quick glance, I can see there's some Scala influence in there, which is awesome!
__________________
Haswell 15" rMBP (2.3Ghz, 16GB, 750M GT) | iPhone 5 | Check out Lyrical on the MAS! | Last.fm
Watabou is offline   5 Reply With Quote
Old Jun 2, 2014, 03:53 PM   #3
Parasprite
macrumors 68000
 
Parasprite's Avatar
 
Join Date: Mar 2013
This is both exciting and really daunting.

At least it gets easier the more of them you learn...
__________________
Has anyone, anywhere, ever actually used ~/Pictures/iPod Photo Cache/ for anything besides deleting or hiding it?
Parasprite is offline   0 Reply With Quote
Old Jun 2, 2014, 03:54 PM   #4
AdonisSMU
macrumors 68030
 
Join Date: Oct 2010
I personally like the idea of Swift. It makes me wonder about the future of the web. I know the web isn't going anywhere anytime soon. However, Swift really tries to capture the benefit of web technologies and traditional programing paradigms. I am going to spend the next few months on this but hmmmm....
AdonisSMU is offline   1 Reply With Quote
Old Jun 2, 2014, 03:54 PM   #5
Doctor Q
Administrator
 
Doctor Q's Avatar
 
Join Date: Sep 2002
Location: Los Angeles
The Dummies-series book will be named Swift for the Not-So-Swift!

Meanwhile, we have The Swift Programming Language book.
__________________
Oh do pay attention 007. In the wrong hands, this cylindrical 12-core Mac Pro with three 4K displays, FirePro graphics, and Thunderbolt 2 could be very dangerous.
Doctor Q is offline   3 Reply With Quote
Old Jun 2, 2014, 04:02 PM   #6
ianray
macrumors 6502
 
Join Date: Jun 2010
Location: @
"The Swift Programming Language" on iBooks is nicely typeset, and nicely paced. (But clearly aimed at a less experienced audience than K&R...)

At first glance I have mixed feelings about the language. Swift is less opinionated than Go, and as such that gives an initial feeling of 'design by committee'. But, I will dig deeper... :-)
__________________
My App Store Apps: Dashometer, Exinf, Score&Grade
ianray is offline   0 Reply With Quote
Old Jun 2, 2014, 04:04 PM   #7
Bhatu
macrumors regular
 
Join Date: Apr 2013
The best part so far..
Bhatu is offline   18 Reply With Quote
Old Jun 2, 2014, 04:10 PM   #8
iGuyS
macrumors newbie
 
Join Date: Nov 2013
These were pretty major announcements. Some of these things were assumed to simply never be a part of what Apple would do for developers or users. For example, people were assuming that a replacement for Obj. C would be years in the future, if ever. Likewise with allowing developers hooks directly into system apps to improve them.

Kind of thrilling. Not sure what to think about Apple now, to be honest. And I mean that in a good way.

Last edited by iGuyS; Jun 2, 2014 at 05:30 PM.
iGuyS is offline   10 Reply With Quote
Old Jun 2, 2014, 04:13 PM   #9
ianray
macrumors 6502
 
Join Date: Jun 2010
Location: @
The Swift playground calls to mind some of the concepts explored here: http://worrydream.com/LearnableProgramming/

Exciting times
__________________
My App Store Apps: Dashometer, Exinf, Score&Grade
ianray is offline   1 Reply With Quote
Old Jun 2, 2014, 04:15 PM   #10
kwokaaron
macrumors regular
 
Join Date: Sep 2013
This was one of the few things I wasn't expecting.
__________________
15" Macbook Pro With Retina Display | iPhone 5 | iPad Mini With Retina Display | iPod Classic
kwokaaron is offline   1 Reply With Quote
Old Jun 2, 2014, 04:21 PM   #11
wilhoitm
macrumors 6502
 
Join Date: Jul 2002
Quote:
Originally Posted by kwokaaron View Post
This was one of the few things I wasn't expecting.
Wow, this changes everything! Swift!

A 21st Century programming language!

Apple just might crash the Internet today!

Swift was the most important announcement today!

How come this is not on the front page?
wilhoitm is offline   8 Reply With Quote
Old Jun 2, 2014, 04:25 PM   #12
ppc_michael
Guest
 
Join Date: Apr 2005
Location: Los Angeles, CA
Send a message via AIM to ppc_michael
Quote:
Originally Posted by Bhatu View Post
The best part so far..
Image
Oh my god, please don't do this.
ppc_michael is offline   3 Reply With Quote
Old Jun 2, 2014, 04:29 PM   #13
Bevz
macrumors 6502a
 
Join Date: Oct 2007
Location: UK
Great to see Apple doing something really fundamental in software and making a large part of the WWDC keynote about Software, Programming and the SDK!
I think there was some really important stuff announced today which really nailed the direction of travel for the next few years. It looks really exciting! Best keynote i've seen in a long time!
__________________
27" iMac (2010) | 13" MacBook Pro | TV2 | iPhone 4 32gb | iPad3
If you work in the NHS in the UK, you may want to check out my app: NHS Reference
Bevz is offline   3 Reply With Quote
Old Jun 2, 2014, 04:32 PM   #14
djtech42
macrumors 65816
 
djtech42's Avatar
 
Join Date: Jun 2012
Location: West Chester, OH
Amazing part of the keynote! We certainly didn't see it coming.

Quote:
Originally Posted by Bhatu View Post
The best part so far..
Image
Emoji variables, the most ridiculous thing to come to programming haha
__________________
2012 15" rMBP, 16 GB RAM, OS X Mavericks ; 2009 24" iMac C2Duo, 8 GB RAM ; 32 GB Black Verizon iPhone 5 ; 32 GB White iPad rMini ; Apple TV (2nd Gen) ;
djtech42 is offline   4 Reply With Quote
Old Jun 2, 2014, 04:34 PM   #15
aaronvan
macrumors 6502a
 
aaronvan's Avatar
 
Join Date: Dec 2011
Location: Washington State
Cool!

Is Swift an full-blown language or something like AppleScript.

Either way, I like the direction Apple is going.
__________________
Dixon lay sprawled like a broken spider-crab. His mouth had been used as a latrine by some small creature of the night, and then as its mausoleum. He felt bad.
aaronvan is offline   0 Reply With Quote
Old Jun 2, 2014, 04:38 PM   #16
-LikesMac-
macrumors 6502
 
Join Date: Jun 2010
Quote:
Originally Posted by aaronvan View Post
Is Swift an full-blown language or something like AppleScript.

Either way, I like the direction Apple is going.
Swift is supposed to be full-blown.

From the intro:
“Swift is a new programming language for iOS and OS X apps that builds on the best of C and Objective-C, without the constraints of C compatibility. Swift adopts safe programming patterns and adds modern features to make programming easier, more flexible, and more fun. Swift’s clean slate, backed by the mature and much-loved Cocoa and Cocoa Touch frameworks”

Excerpt From: Apple Inc. “The Swift Programming Language.” iBooks. https://itun.es/us/jEUH0.l
__________________

13'' MBP, 2.7GHz i7, 4GB RAM, 500GB HDD, HD3000
-LikesMac- is offline   2 Reply With Quote
Old Jun 2, 2014, 04:46 PM   #17
mbh
macrumors 6502
 
Join Date: Jul 2002
Quote:
Originally Posted by Bhatu View Post
The best part so far..
Image
And thus was born the International Obfuscated Swift Code Contest (IOSCC).

(For reference: http://www.ioccc.org/)
mbh is offline   0 Reply With Quote
Old Jun 2, 2014, 04:51 PM   #18
Ralf The Dog
macrumors regular
 
Join Date: May 2008
Metal blew me away. I thought it would be the IOS announcement of the decade. Then they hit us with Swift. (One more thing!)

I only wish Swift was available for server side development.
Ralf The Dog is offline   6 Reply With Quote
Old Jun 2, 2014, 04:54 PM   #19
plutonium
macrumors newbie
 
Join Date: Jan 2011
Expect a name change...

There was already a programming language named Swift for scientific computing (http://swift-lang.org) that has very different goals (highly parallel, clusters, etc.).

Since the publications about Swift are over a year old, it was written by University of Chicago and Argonne National Lab, and is funded by the NSF -- and in use for HPC now, Apple will likely not use the name swift after the lawyers are done.

I have no idea how they missed that one. It's not like iPhone, where they chose to violate Cisco and just pay them off. Not going to be able to pay off a national lab or the NSF as easily.

Language looks interesting, though.
plutonium is offline   0 Reply With Quote
Old Jun 2, 2014, 05:00 PM   #20
wilhoitm
macrumors 6502
 
Join Date: Jul 2002
Quote:
Originally Posted by -LikesMac- View Post
Swift is supposed to be full-blown.

From the intro:
“Swift is a new programming language for iOS and OS X apps that builds on the best of C and Objective-C, without the constraints of C compatibility. Swift adopts safe programming patterns and adds modern features to make programming easier, more flexible, and more fun. Swift’s clean slate, backed by the mature and much-loved Cocoa and Cocoa Touch frameworks”

Excerpt From: Apple Inc. “The Swift Programming Language.” iBooks. https://itun.es/us/jEUH0.l

Full blown! And at first glance it looks like it is a mixture of Java, Ruby, C, C++, Python, and JavaScript and a few other languages. It looks extremely powerful and concise. I only had 4 hours of sleep so it is making my head hurt right now but I am loving what I see.

I am not sure if it is compiled or interpreted or both but it has realtime interactive output of UI and even of graphics so they must be doing something pretty interesting!

It also has all of the epic expressive language constructs like:

Closures unified with function pointers
Tuples and multiple return values
Generics
Fast and concise iteration over a range or collection
Structs that support methods, extensions, protocols.
Functional programming patterns, e.g.: map and filter
wilhoitm is offline   1 Reply With Quote
Old Jun 2, 2014, 05:03 PM   #21
ianray
macrumors 6502
 
Join Date: Jun 2010
Location: @
Quote:
Originally Posted by djtech42 View Post
Emoji variables, the most ridiculous thing to come to programming haha
More correctly, unicode

See also Go. http://golang.org/ref/spec#Identifiers
__________________
My App Store Apps: Dashometer, Exinf, Score&Grade
ianray is offline   1 Reply With Quote
Old Jun 2, 2014, 05:03 PM   #22
wilhoitm
macrumors 6502
 
Join Date: Jul 2002
Quote:
Originally Posted by plutonium View Post
There was already a programming language named Swift for scientific computing (http://swift-lang.org) that has very different goals (highly parallel, clusters, etc.).

Since the publications about Swift are over a year old, it was written by University of Chicago and Argonne National Lab, and is funded by the NSF -- and in use for HPC now, Apple will likely not use the name swift after the lawyers are done.

I have no idea how they missed that one. It's not like iPhone, where they chose to violate Cisco and just pay them off. Not going to be able to pay off a national lab or the NSF as easily.

Language looks interesting, though.
No name change! Apple knew about it!

Apple has a little note at the bottom of their Swift page!

I am sure they worked this out.

https://developer.apple.com/swift/

Looking for the Swift parallel scripting language? Please visit http://swift-lang.org
wilhoitm is offline   3 Reply With Quote
Old Jun 2, 2014, 05:03 PM   #23
atrevers
macrumors member
 
Join Date: May 2007
I'm a .NET developer, and I have to say I'm pretty excited about Swift. I've always found the syntax of Objective-C to be a little inaccessible in terms of it's differences to C# (certainly when it comes to switching from one language to another - whenever I've tried, it's always been hard to turn my brain around!). Swift on the other hand looks very familiar. A lot of it's features are straight out of C# with a bit of scripting thrown in - type inference (dynamics), generics, closures. Scanning the book, I can already write a fairly well featured Swift program despite having never heard of the language until about 2 hours ago. Well played Apple...
atrevers is offline   2 Reply With Quote
Old Jun 2, 2014, 05:06 PM   #24
-LikesMac-
macrumors 6502
 
Join Date: Jun 2010
Can anyone comment on the potential difficulty of learning Objective-C and Swift at the same time? I was planning to learn Objective-C this summer...
__________________

13'' MBP, 2.7GHz i7, 4GB RAM, 500GB HDD, HD3000
-LikesMac- is offline   0 Reply With Quote
Old Jun 2, 2014, 05:14 PM   #25
wilhoitm
macrumors 6502
 
Join Date: Jul 2002
Quote:
Originally Posted by -LikesMac- View Post
Can anyone comment on the potential difficulty of learning Objective-C and Swift at the same time? I was planning to learn Objective-C this summer...
They have a Objective C to Swift Migration Guide which should help.

I wouldn't waste my time learning Objective C though... unless you want to do it for your own edification!

Would you rather have a 2014 Corvette or a 1983 Corvette? Objective C debuted way back in 1983 and it has a lot of legacy baggage.

Apple realized that to move forward agressively they needed a 21st Century programming language!
wilhoitm is offline   3 Reply With Quote

Reply
MacRumors Forums > News and Article Discussion > MacRumors.com News Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump

All times are GMT -5. The time now is 04:57 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC