Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

The past, present and future of swift, Voxxed Belgrade 2016

112 views

Published on

Whilst open sourcing a language is nothing new, Apple's unprecedented step has caused massive excitement and activity for this new language, with a flurry of development and contributions.

In this presentation I would like to explore the current potential of Swift and what's going to be possible in the future.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

The past, present and future of swift, Voxxed Belgrade 2016

  1. 1. The Past, Present and Future of Swift Voxxed Belgrade @chrischinch
  2. 2. MyApple Adventure
  3. 3. The Past of Swift Objective-C
  4. 4. Score Card + Thin Runtime + Leverage GCC and Libraries + Low barrier to entry (At the time) - Larger than C / C++ - Namespace support - Optimisation - High barrier to entry (Now) - Closed Source
  5. 5. The Past Release
  6. 6. –Not everyone is a fan… “Type a quote here.”
  7. 7. 2.2+ Apache License 2.0 December 3, 2015
  8. 8. The Present
  9. 9. What’s Included? • Compiler • Standard Library • SDK Overlays • Debugger • Package Manager
  10. 10. Who’s using it? • Libraries (Alamo, Vapor, Perfect etc) • Swift AI • Duolingo, Dub Smash, EyeEm* • Pandora, Twitter, FitBit, Groupon
  11. 11. Installation - MacOS swiftenv install 2.2
  12. 12. Installation - Linux sudo apt-get install clang libicu-dev
 
 wget https://swift.org/builds/swift-3.0-release/ ubuntu1404/swift-3.0-RELEASE/swift-3.0-RELEASE- ubuntu14.04.tar.gz tar -xvf xxx.tar.gz export PATH=~/swift-3.0-RELEASE-ubuntu14.04/usr/ bin
  13. 13. Compile & Run swiftc helloworld.swift
 ls -al
 ./helloworld
  14. 14. The Future …And maybe some of the present
  15. 15. Server-side Swift • REST • JSON • Cookies • Database connectors • Web Servers • Templates
  16. 16. And there’s more… • Vapor - RoR for Swift • Kitura - IBM
  17. 17. Tools, tools, tools • Package Manager • swiftenv • http servers, markdown parsers, connectors…
  18. 18. The Future …Maybe
  19. 19. In Theory… • Leverage NDK • Generate an object file from the LLVM-IR • Package that object file in an Android app (Likely C) • Pack in a Shared Library and run • The future…? (Search if you really want to)
  20. 20. Swift for Windows • github.com/tinysun212/swift-windows • swiftforwindows.codeplex.com • Microsoft Visual C++ and Cygwin binaries • No UI or platform libraries (yet)
  21. 21. Score Card + Type, generics, optionals, chaining, Protocol-oriented + Simple(ish) and clean(ish) + Memory management + Big backer - Support (Docs, Tools) - Fast development* - www.linkedin.com/pulse/who-said-swift-better-than-objective-c- willie-shi
  22. 22. Yet to come • Even more stable ABI • Platform independence • Better C++ compatibility • General stability • Concurrency
  23. 23. Thanks! Chris Ward
 @chrischinch
 
 Contentful
 gregariousmammal.com I have stickers and merchandise!

×