Async programming in f

658 views
595 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
658
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Async programming in f

  1. 1. Async Programming in F#<br />LiuYanJiang - June 2010<br />Work In:<br />山东泰迪计算机软件工程师学校<br />
  2. 2. About Me<br />刘晏江/刘校长/BeauLiu<br />Microsoft Most Valuable Professiona<br />Programmer<br />F#,Scala,JavaScript,Pytho,.NET,mono<br />Java(as the language) hater<br />
  3. 3. What's F#<br />Languages by Don Syme,MS Research<br />Strongly Statically Typed Language<br />Functional Language with OO Ability<br />General Purpose Language<br />
  4. 4. Async Programming is complex……<br />
  5. 5. Four Big Concurrency Challenges<br />Shared State<br />Code Locality<br />I/O Parallelism<br />Scaling Up<br />
  6. 6. Shared State<br />Difficult to maintain and test<br />Very difficult to parallelize<br />Locking is fundamentally error prone<br />
  7. 7. Immutability in F#<br />Immutable Union<br />Immutable Record<br />Immutable Set<br />Immutable Objects<br />Immutable Tuple<br />Immutable List<br />Immutable Map<br />
  8. 8. Code Locality<br />Used to expressing algorithms linearly<br />Async requires logical division of algorithms<br />
  9. 9. Scaling to Multi-Machine<br />To scale up,must to go beyond a single machine<br />Multi-machine resources becoming common<br />Roll-you-own clusters with cheap hardware<br />Shared memory doesn't scale<br />
  10. 10. F#<br />Modern,simple,powerful and prductive<br />Ready for production use with VS 2010<br />Simplified parallel and async programming for today and tomorrow<br />Support .NET 4.0/3.5 and mono<br />Open Source<br />
  11. 11. Q & A<br />

×