Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Isomorphic Swift: A Myth or Reality?

Isomorphic Swift: A Myth or Reality?

Swift continues to grow in popularity and is now one of the most used programming languages for mobile. Since the introduction of open source Swift for Linux, IBM has been enabling the language on the Server side. This session clarifies whether Swift is Isomorphic or not?

Vidyasagar Machupalli

April 25, 2017
Tweet

More Decks by Vidyasagar Machupalli

Other Decks in Programming

Transcript

  1. Why Am I here? • Isomorphism !! • Why Swift?

    • Swift on Server-side - Kitura • Tools • Code!!
  2. ISOMORPHISM Isomorphism is a very general concept that appears in

    several areas of mathematics. The word derives from the Greek iso, meaning "equal," and morphosis, meaning "to form" or "to shape.” Source: Wolfram MathWorld
  3. Kitura: An intro Kitura.io “A high performance and simple to

    use web framework for building modern Swift applications.”
  4. Routing with Kitura import Kitura // Create a new router

    let router = Router() // Handle HTTP GET requests to / router.get("/") { request, response, next in response.send("Hello, World!") next() } // Add an HTTP server and connect it to the router Kitura.addHTTPServer(onPort: 8080, with: router) // Start the Kitura runloop (this call never returns) Kitura.run()
  5. Leverage Docker For Your Development docker pull ibmcom/swift-ubuntu:latest docker run

    -i -t -v <absolute path to the swift package>:/root/ <swift package name> ibmcom/swift-ubuntu:latest /bin/bash