Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MacRumors

macrumors bot
Original poster
Apr 12, 2001
63,506
30,781



swift.png
The Swift programming language was as close to a "One More Thing" as there was at the WWDC Keynote this week, debuting to significant cheers from the developers in the audience. Immediate reaction after the keynote suggested Swift was "huge news" and the future of development on Apple products.

Apple says Swift code is "concise yet expressive", interactive and fun. For coders, the introduction to Swift is available on the iBooks Store but Chris Lattner, head of Apple's Developer Tools department, shared additional information on Swift on his personal webpage (via TechCrunch).

Now that Swift is public, Lattner revealed that he began working on Swift in mid-2010, with a team of coders "contributing in earnest" late in 2011. Last July, Swift finally became the major focus of Lattner's Developer Tools Group.
The Swift language is the product of tireless effort from a team of language experts, documentation gurus, compiler optimization ninjas, and an incredibly important internal dogfooding group who provided feedback to help refine and battle-test ideas. Of course, it also greatly benefited from the experiences hard-won by many other languages in the field, drawing ideas from Objective-C, Rust, Haskell, Ruby, Python, C#, CLU, and far too many others to list.

The Xcode Playgrounds feature and REPL were a personal passion of mine, to make programming more interactive and approachable. The Xcode and LLDB teams have done a phenomenal job turning crazy ideas into something truly great. Playgrounds were heavily influenced by Bret Victor's ideas, by Light Table and by many other interactive systems.
Lattner says that he hopes to make programming "more approachable and fun" with Swift, getting rid of extraneous materials to make programming easier to learn.

"We'll appeal to the next generation of programmers and to help redefine how Computer Science is taught," Lattner writes.

Article Link: 'Swift' Programming Language in Development for Four Years, "Major Focus" Since 2013
 

-LikesMac-

macrumors 6502
Jun 20, 2010
429
23
This changes everything. Again.

Predicting Mac OS XI and iOS X to be built from the ground up using Swift.
 

charlieegan3

macrumors 68020
Feb 16, 2012
2,394
17
U.K
Has anyone else been trying to pick this up? I'm finding the lack of any real documentation a bit of an issue.
 

bushido

Suspended
Mar 26, 2008
8,070
2,755
Germany
maybe my uni should pick this over java as i still have to pass that one ... uhm 7 semesters later sigh lol
 

HMI

Contributor
May 23, 2012
838
319
Swift looks pretty cool, and I'm excited to start learning it at some point.....

.....but the visual part of me wishes that the white bird in the icon were flying upwards towards the top right corner instead downwards towards the bottom right corner. I guess I just have to deal with it!
 
Haven't looked at a piece of code in 6 years (took C++ and C in college), but this almost makes me want to learn another programing language. It would be pretty cool to a) learn something that seems so fun/simple b) be at the beginning of the learning curve c) actually try and make some fun apps for my iPhone as a hobby
 

ArtOfWarfare

macrumors G3
Nov 26, 2007
9,559
6,059
Has anyone else been trying to pick this up? I'm finding the lack of any real documentation a bit of an issue.

Where you see issue, I see opportunity. I'm picking this up as quickly as possible and hoping to whip off a much more friendly book. The book Apple offers starts off with a well organized tutorial for people who already know 5+ languages, but then it goes into the nitty gritties in an almost random order. At no point is the book suitable for someone who doesn't know at least one programming language, and rarely is it suitable for people who don't know several programming languages.
 

charlieegan3

macrumors 68020
Feb 16, 2012
2,394
17
U.K
Where you see issue, I see opportunity. I'm picking this up as quickly as possible and hoping to whip off a much more friendly book. The book Apple offers starts off with a well organized tutorial for people who already know 5+ languages, but then it goes into the nitty gritties in an almost random order.

That's a good point. Stackoverflow is starting to pick up a little which is helping a lot. I've watched the first WWDC video and that was good, I'm hoping the next ones will be a little more hands on.

----------


Have you read it?
 

Programmer421

macrumors newbie
Apr 5, 2014
5
0
Swift

I can't wait to start. Swift is a loosely typed programming language, which makes it easier for us to declare constants and variables without specifying the type. The problem is just getting used to the changes and using .swift and .h and .m files together with mix and match. And then not being able to release apps if you downloaded Xcode 6 or Yosemite -_-
 

charlieegan3

macrumors 68020
Feb 16, 2012
2,394
17
U.K
How can I learn the language without having any other programming experience? Is there a class I can take in university?

This isn't really a good one to pick up as a first language yet, and it likely won't be in uni courses for quite a while.

If you've never programmed a scripting language like Ruby or Python is a good starting point.
 

akuma13

macrumors 6502a
Jan 10, 2006
928
424
How can I learn the language without having any other programming experience? Is there a class I can take in university?

I'm curious about this too. Will doing some of the older iTunes University Stanford iOS help. Or is Swift completely different?
 

doelcm82

macrumors 68040
Feb 11, 2012
3,754
2,775
Florida, USA
Today's programmers have it easy.

We programmers from the 80s used to have to build linked lists from dirt and bits of string we found on the ground.

The programmers from the 70s had to punch their code out on cards and feed the cards into the machine.

Inferred variable types...pshaw.
 

kalsta

macrumors 68000
May 17, 2010
1,677
577
Australia
The Swift programming language was as close to a "One More Thing" as there was at the WWDC Keynote this week, debuting to significant cheers from the developers in the audience. Immediate reaction after the keynote suggested Swift was "huge news" and the future of development on Apple products.

Absolutely! There wasn't a murmur of this leading up to WWDC. I watched the keynote, and my jaw just about hit the floor when they announced Swift. Yes, definitely could have been a 'one more thing' if Jobs had been around to deliver the keynote. And it's interesting to know that this was started under his watch.

John Siracusa at Ars Technica has been talking for years about Objective-C becoming obsolete and Apple's dilemma in transitioning to something new. I guess a lot of us hoped that might be MacRuby, until Apple ditched it in 2011. Now we know why.
 
Last edited:

DaveMcM76

macrumors 6502
Mar 13, 2012
439
397
Scottish Highlands
Have you read it?

I've had a brief glance but have to admit I've not had the time to go into any detail with it yet... it seems to be the main information source that Apple are pushing people towards other than the documentation in the (very crashy) Xcode 6 beta which again I've sadly not had the time to look at in any real depth.

I'm currently downloading session 402 Introduction to Swift video in the WWDC app - is that the video you were referring to?
 

doelcm82

macrumors 68040
Feb 11, 2012
3,754
2,775
Florida, USA
Absolutely! There wasn't a murmur of this leading up to WWDC. I watched the keynote, and my jaw just about hit the floor when they announced Swift. Yes, definitely could have been a 'one more thing' if Jobs had been around to deliver the keynote. And it's interesting to know that this was started under his watch.
No overseas partners to leak it to sites like this one.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.