Asynchronous programming in F# (QCon 2012)
Upcoming SlideShare
Loading in...5
×
 

Asynchronous programming in F# (QCon 2012)

on

  • 2,679 views

Asynchronous programming on the server (using F# agents) and on the client (using Pit framework to translate F# to JavaScript).

Asynchronous programming on the server (using F# agents) and on the client (using Pit framework to translate F# to JavaScript).

Statistics

Views

Total Views
2,679
Views on SlideShare
2,669
Embed Views
10

Actions

Likes
2
Downloads
15
Comments
0

2 Embeds 10

https://twitter.com 9
http://www.linkedin.com 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Asynchronous programming in F# (QCon 2012) Asynchronous programming in F# (QCon 2012) Presentation Transcript

  • Asynchronous programming on the server and the client in F# Tomas Petricek @tomaspetricek
  • In Visual Studio since 2010
  • Asynchronous programmingOn the server side On the client side
  • Demo: Social drawing app
  • Demo: Social drawing appServer Agents Browser Client
  • Async on the ServerReactive programming without the inversion of control
  • Async on the ServerReactive model is important Node.js and C# 5.0F# asynchronous workflows Keep standard programming model Standard exception handling and loops Sequential and parallel composition
  • Agents and message-passingProtected * ( Behaviour + State )
  • F# and the BrowserF# and Silverlight Both compiler and libraries Interactive Try F#F# and JavaScript Translating since 2006! Open-source Pit, commercial WebSharper
  • Event handling in F#Data flow using combinatorsand control flow using async
  • Asynchronous GUIUser interactions = State machines
  • Asynchronous GUIUpdating rectangles Drawing rectangles waiting waiting up down after 500ms drawing
  • Asynchronous GUIUpdating rectangles Drawing rectangles waiting waiting up down after 500ms drawing move
  • What else is there?F# Interactive in your web browser www.tryfsharp.orgType providers in F# 3.0 Integrating data in the languageBridges an important mismatch Data and services use REST, XML, … Languages use types and objects
  • Type providers
  • Where to learn more?Functional and F# trainings http://functional-programming.net In London and New YorkFunctional Programming eXchange http://skillsmatter.com Next Friday (March 16th)
  • SummaryAsynchronous programming Writing non-blocking code Without the inversion of controlApplication areas Server-side – reactive request processing Client-side – encoding state machines