Swift vs. Language X
-
Upload
scott-wlaschin -
Category
Software
-
view
5.488 -
download
1
description
Transcript of Swift vs. Language X
![Page 1: Swift vs. Language X](https://reader034.fdocuments.in/reader034/viewer/2022051207/53fdcafc8d7f72a81c8b4b20/html5/thumbnails/1.jpg)
vs.
?
Swift
Language X Can you guess what language this is?
![Page 2: Swift vs. Language X](https://reader034.fdocuments.in/reader034/viewer/2022051207/53fdcafc8d7f72a81c8b4b20/html5/thumbnails/2.jpg)
vs.
?
Native development for one mobile platform
Native development for three mobile platforms
![Page 3: Swift vs. Language X](https://reader034.fdocuments.in/reader034/viewer/2022051207/53fdcafc8d7f72a81c8b4b20/html5/thumbnails/3.jpg)
vs.
?
Desktop apps for one OS
Desktop apps for three OSes
![Page 4: Swift vs. Language X](https://reader034.fdocuments.in/reader034/viewer/2022051207/53fdcafc8d7f72a81c8b4b20/html5/thumbnails/4.jpg)
vs.
?
Client only development
Use the same language on client and server
Cloud-ready too
![Page 5: Swift vs. Language X](https://reader034.fdocuments.in/reader034/viewer/2022051207/53fdcafc8d7f72a81c8b4b20/html5/thumbnails/5.jpg)
vs.
?
Closed source
Open source
![Page 6: Swift vs. Language X](https://reader034.fdocuments.in/reader034/viewer/2022051207/53fdcafc8d7f72a81c8b4b20/html5/thumbnails/6.jpg)
vs.
?
Well-designed language
Modern. Designed for safety. Concise yet expressive syntax. Interactive and fun. Fast and powerful.
Well-designed language
Modern. Designed for safety. Concise yet expressive syntax. Interactive and fun. Fast and powerful.
![Page 7: Swift vs. Language X](https://reader034.fdocuments.in/reader034/viewer/2022051207/53fdcafc8d7f72a81c8b4b20/html5/thumbnails/7.jpg)
vs.
?
A low-risk switch
Benefits from an existing eco-system. Can interop with legacy code. Can access a large number of existing libraries.
A low-risk switch
Benefits from an existing eco-system. Can interop with legacy code. Can access a large number of existing libraries.
![Page 8: Swift vs. Language X](https://reader034.fdocuments.in/reader034/viewer/2022051207/53fdcafc8d7f72a81c8b4b20/html5/thumbnails/8.jpg)
vs.
?
Many awesome language features Type inference ∙ Optional types ∙ Interactive REPL Pattern matching ∙ 1st class functions ∙ Concise syntax Functional patterns ∙ Tuples ∙ Immutable data Object orientation ∙ Operator overloading ∙ Closures
Many awesome language features Type inference ∙ Optional types ∙ Interactive REPL Pattern matching ∙ 1st class functions ∙ Concise syntax Functional patterns ∙ Tuples ∙ Immutable data Object orientation ∙ Operator overloading ∙ Closures
And no semicolons!
And no semicolons!
![Page 9: Swift vs. Language X](https://reader034.fdocuments.in/reader034/viewer/2022051207/53fdcafc8d7f72a81c8b4b20/html5/thumbnails/9.jpg)
vs.
?
Missing important things Lacks full type inference ∙ No asynchronous flow No parallelism ∙ Tricky garbage collection
Important things included Excellent type inference ∙ Built-in async flow Parallelism ∙ Algebraic types ∙ Units of measure More powerful pattern matching ∙ Agents One line parsing of JSON, XML, CSV Syntax support for database queries.
Also, a very young language
And a mature language
![Page 10: Swift vs. Language X](https://reader034.fdocuments.in/reader034/viewer/2022051207/53fdcafc8d7f72a81c8b4b20/html5/thumbnails/10.jpg)
? So what is language X?
![Page 11: Swift vs. Language X](https://reader034.fdocuments.in/reader034/viewer/2022051207/53fdcafc8d7f72a81c8b4b20/html5/thumbnails/11.jpg)
? So what is language X?
Language X is F#
![Page 12: Swift vs. Language X](https://reader034.fdocuments.in/reader034/viewer/2022051207/53fdcafc8d7f72a81c8b4b20/html5/thumbnails/12.jpg)
? So what is language X?
Language X is F#
Surprised? Why don't you give F# a try and see for yourself? What do other people say? http://fsharp.org/testimonials/
![Page 13: Swift vs. Language X](https://reader034.fdocuments.in/reader034/viewer/2022051207/53fdcafc8d7f72a81c8b4b20/html5/thumbnails/13.jpg)
Try F#
The F# Software Foundation has links to everything you need: http://fsharp.org/ Learn key principles in just a few minutes: http://www.tryfsharp.org/Learn Play with it in a browser: http://www.tryfsharp.org/Create https://dotnetfiddle.net/
![Page 14: Swift vs. Language X](https://reader034.fdocuments.in/reader034/viewer/2022051207/53fdcafc8d7f72a81c8b4b20/html5/thumbnails/14.jpg)
F# is available "out of the box" on all Xamarin-supported platforms: Android, OS X and iOS. http://developer.xamarin.com/guides/cross-platform/fsharp/ Build better apps for iOS, Android and Mac with Xamarin Studio: http://xamarin.com/studio Or build native iOS, Android and Windows apps in Visual Studio: http://xamarin.com/visual-studio
MonoGame on iOS: http://neildanson.wordpress.com/2013/07/31/f-and-monogame-part-3-ios/
F# on the front end
![Page 15: Swift vs. Language X](https://reader034.fdocuments.in/reader034/viewer/2022051207/53fdcafc8d7f72a81c8b4b20/html5/thumbnails/15.jpg)
10 Reasons Why F# is a Hot Programming Language for Developers: http://bit.ly/10-reasons-why Web Programming with F#: http://fsharp.org/webstacks/ F# on Azure: http://fsharp.org/cloud/ F# for data science: http://fsharp.org/data-science/
... and much more at http://fsharp.org/
F# on the back end