2-展望 Isomorphic Swift

2020-02-27 151浏览

  • 1.ISOMORPHIC SWIFT MDCC2016
  • 2.祁⼀鸣 携程APP 国际机票主流程团队
  • 3.BRIEF HISTORY OF SWIFT • A modern language to develop applications for Apple’s iOS and OS X platforms, as well as on Linux • First Announced by Apple in WWDC 2014 • Version upgrade from Swift 1.0 to Swift 2.0 in one year • Open Sourced in December 2015 • Swift 3.0 officially announced in September 2016
  • 4.SWIFT LANGUAGE STATUShttp://stackoverflow.com/research/developer-survey-2016
  • 5.WHY CLIENT SIDE SWIFT • Expressiveness • Safety • Speed
  • 6.EXPRESSIVENESS • Objective-C NSDate *newDate = [[NSDate alloc] init]; • Swift var newDate = NSDate()
  • 7.SAFETY • Objective-C NSURL *newURL = [[NSURL alloc]initWithString:”http://ww.ctrip. com"]; • Swift var newURL = NSURL(string:”http://ww.ctrip. com")
  • 8."SPEED" • Swift is intended to be a replacement of Objective -C and the runtime performance is comparable if not faster • Developer productivity
  • 9.SPEEDhttps://medium.com/@qutheory/server-side-swift-vs-the-other-guys-2-speed
  • 10.OPEN-SOURCE SWIFT • Compiler and Standard Library • Package Manager • Core Libraries • REPL
  • 11.Swift Node.js • SPM • NPM • Package.swift • package.json • Packages • node_modules • REPL • REPL
  • 12.SERVER-SIDE SWIFT FRAMEWORKS • IBM Kitura • Vapor • Perfect • Zewo
  • 13.IBM KITURA • Kitura • Swift Sandbox • Bluemix (Swift Cloud Hosting)
  • 14.VAPOR Most used web framework for Swift
  • 15.PERFECT First freely available web framework for Swift
  • 16.ZEWO A set of libraries for server-side development
  • 17.SERVER-SIDE SWIFT PROSPECTS Pros • All the good stuff you’ve seen Cons • Core Libraries not quite ready on Linux • Swift version changes
  • 18.Q&A qiym@ctrip.com