What’s New in Swift 3

Tim, Jon, and I have been working with O’Reilly Media on a free report covering the latest version of Apple’s programming language, Swift 3.

What's New In Swift 3

You can download it, for free, over at the O’Reilly website. The report covers:

  • a high-level view of Swift 3’s changes and new features, and learn how this version differs from Swift 2
  • the Swift Evolution Process and the full list of accepted proposals—including those not yet implemented
  • Swift 3’s changes to the language’s syntax, standard library features, and other areas
  • Swift 3’s use on the server, and use a simple program to learn about Swift’s use on Linux
  • further resources for learning about, working with, and converting projects to Swift 3

Swift for Linux, on a Mac

This is what a computer linux hacker looks like

This is what a computer linux hacker looks like.

I’ve been working with Swift for Linux, as part of a bunch of teaching material, as well as some conference talks that we’re working on. It’s not super easy to figure out, from searching, the best way to install Swift and Linux, if you’re a Mac user who wants to have a go with it. Here’s what I’ve found.

As it turns out, after extensive research, my feeling is that the best way to run Swift on Linux (on a Mac) is using Vagrant and VirtualBox. I’ve looked at a variety of options, including setting it up manually in a VM, using Docker for Mac, and so on, but this turned out to be the easiest way to do it, and maintain it.

To get Swift on Linux running, on your Mac:

  1. Download and install VirtualBox.
  2. Download and install Vagrant.
  3. Make sure you have Git installed, and clone the following repository: https://github.com/IBM-Swift/vagrant-ubuntu-swift-dev.git
  4. Once you’ve cloned the repository, change directory into it: vagrant-ubuntu-swift-dev
  5. Run the command: vagrant up
  6. Wait. The vagrantfile included in the repository you cloned, which tells Vagrant what to do, downloads Ubuntu 15.10, the Swift prerequisites, the prerequisites for libdispatch, the Swift concurrency library, the Sphinx documentation system, and then clones the Swift repository and creates a script that allows you to build Swift. (This might take a while, and will download a few gigabytes of stuff.)
  7. Once Vagrant is done, you can run the following command to connect to the Linux installation: vagrant ssh
  8. Then, once in Linux, run the following script to build Swift: /vagrant/swift-dev/swift/utils/build-script (This might also take a while, depending on the speed/capabilities of your computer.)
  9. You can then run the following command to verify Swift is up and running: swift –version
  10. You can then create some .swift files, and compile them with the swiftc command.

Easy! Hope that was helpful to someone.

Melbourne iOS Developer Training

We’ll be running our fantastic 2-day iOS developer training in Melbourne next month! Join us on the 2nd and 3rd of May, and learn all you need to know for iOS development. Only a few tickets left! Everyone gets an electronic copy of our new  book, Learning SwiftEmail me if you have any questions.

Secret Lab Developer Training

iOS Developer Training in Melbourne

Secret Lab Developer TrainingHello! We’re running our famous iOS Developer Training again in Melbourne, on May 2 and May 3 this year. We’ll be teaching the latest iOS app development techniques, with Swift. We’re taking expressions of interest, which require no commitment, and will get you a discount code for when registrations actually open! If you have any questions, feel free to email me. Check it, and register your interest, over at the Secret Lab site: http://www.secretlab.com.au/training/ios-mel-2016

Swift is open source!

… and I’ll have more to say on that topic soon! In the mean time:Learning Swift

More soon!

Online Swift Training

This event has now passed! But there’ll be more in the future! If you want to learn Swift, check out our brand new book: Learning Swift.

Online Swift TrainingSuper awesome! Next week we’ll be running live online Swift programming training through O’Reilly Media. You can learn more and sign up over on the O’Reilly Media site.

The gist of it is: you’ll join us live online for a day of Swift programming, where we’ll teach you the language, how to use it for iOS (or OS X) programming, and where to learn more. Everyone will get a video of the training afterwards, as well as an ebook copy of our brand new Learning Swift book.

Swift Training – Melbourne, Sydney, Brisbane

Hi all!

Swift Developer Lab by Secret LabWe’re going to be running a 1-day Swift Developer Lab in Melbourne, Sydney, and Brisbane in the coming months. These labs are designed for existing iOS developers to get up to speed with Swift development for iOS 8.

You can learn more about the labs over at Secret Lab’s training page. Tickets are available at $250 (which is half price) until 10 November 2014. We’d love to see you there!

If you have any questions, feel free to email me: paris AT paris.id.au