An Introduction to        F#            Horacio Nunez   {hnh12358@gmail.com, horatio.info}
What is F#?F# InteractiveF# 101 (less than 10 minutes!)Walkthrough: FunctionalNumerical MatrixesOnline Resources
F# is multi-paradigmprogramming language targeting      the .NET framework
functionalobject orientedimperative          F#language oriented
Immutable values and data types(No State => No Shared Memory)let x = 10x = 10 //<!-- boolean
High Order Functions(functions can be parameters and     results of other functions)
Type InferenceThink in C#’s var… everywhere
DeclarativeExpress the desired result, not the        step-by-step recipe
Lazy EvaluationUse values only when you really             need it
Pattern MatchingThe compiler “understands” types
Imperative
Mutable values and data types(State => Probable Shared Memory)let mutable x = 10x <- 10
ObjectOriented
F# can consume and create OOP        designs seamlessly
also…F# becomes MSIL, hard    to read, but MSIL
F# is fully supported in VisualStudio except for GUI Designers
What is F#?F# InteractiveF# 101 (less than 10 minutes!)Walkthrough: FunctionalNumerical MatrixsOnline Resources
What is F#?F# InteractiveF# 101 (less than 10 minutes!)Walkthrough: FunctionalNumerical MatrixsOnline Resources
What is F#?F# InteractiveF# 101 (less than 10 minutes!)Walkthrough: FunctionalNumerical MatrixsOnline Resources
Functional Abstractions for    Numerical Matrixes
Have you ever tried to create aMatrix of order Int32.MaxValue?
Out of Memory Exception!
What is F#?F# InteractiveF# 101 (less than 10 minutes!)Walkthrough: FunctionalNumerical MatrixsOnline Resources
ONLINE RESOURCESDon Syme’ Blog (F# Designer)http://blogs.msdn.com/b/dsyme/Tomas Petriceks’ Bloghttp://tomasp.net/
ONLINE RESOURCESF# Snippetshttp://fssnip.net/Channel 9http://channel9.msdn.com/StackOverflowhttp://stackoverflow.com/
Upcoming SlideShare
Loading in …5
×

dotNet Miami - April 19, 2012: Horacio Nunez: Introduction to F#

512 views

Published on

dotNet Miami - April 19, 2012: Presented by Horacio Nunez: In this talk we are going to learn the basics of programming with F# from Visual Studio 2010. After talking a bit about the genesis of F# we will go through some examples illustrating the functional ways of F# and how it aligns with the other citizens of the managed world. Among the F# features we will visit are High Order Functions, Pattern Matching and the Asynchronous workflows.

Published in: Technology
1 Comment
1 Like
Statistics
Notes
No Downloads
Views
Total views
512
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
2
Comments
1
Likes
1
Embeds 0
No embeds

No notes for slide
  • That’s a lot of responsibility for just one compiler!
  • That’s a lot of responsibility for just one compiler!
  • That’s a lot of responsibility for just one compiler!
  • That’s a lot of responsibility for just one compiler!
  • dotNet Miami - April 19, 2012: Horacio Nunez: Introduction to F#

    1. 1. An Introduction to F# Horacio Nunez {hnh12358@gmail.com, horatio.info}
    2. 2. What is F#?F# InteractiveF# 101 (less than 10 minutes!)Walkthrough: FunctionalNumerical MatrixesOnline Resources
    3. 3. F# is multi-paradigmprogramming language targeting the .NET framework
    4. 4. functionalobject orientedimperative F#language oriented
    5. 5. Immutable values and data types(No State => No Shared Memory)let x = 10x = 10 //<!-- boolean
    6. 6. High Order Functions(functions can be parameters and results of other functions)
    7. 7. Type InferenceThink in C#’s var… everywhere
    8. 8. DeclarativeExpress the desired result, not the step-by-step recipe
    9. 9. Lazy EvaluationUse values only when you really need it
    10. 10. Pattern MatchingThe compiler “understands” types
    11. 11. Imperative
    12. 12. Mutable values and data types(State => Probable Shared Memory)let mutable x = 10x <- 10
    13. 13. ObjectOriented
    14. 14. F# can consume and create OOP designs seamlessly
    15. 15. also…F# becomes MSIL, hard to read, but MSIL
    16. 16. F# is fully supported in VisualStudio except for GUI Designers
    17. 17. What is F#?F# InteractiveF# 101 (less than 10 minutes!)Walkthrough: FunctionalNumerical MatrixsOnline Resources
    18. 18. What is F#?F# InteractiveF# 101 (less than 10 minutes!)Walkthrough: FunctionalNumerical MatrixsOnline Resources
    19. 19. What is F#?F# InteractiveF# 101 (less than 10 minutes!)Walkthrough: FunctionalNumerical MatrixsOnline Resources
    20. 20. Functional Abstractions for Numerical Matrixes
    21. 21. Have you ever tried to create aMatrix of order Int32.MaxValue?
    22. 22. Out of Memory Exception!
    23. 23. What is F#?F# InteractiveF# 101 (less than 10 minutes!)Walkthrough: FunctionalNumerical MatrixsOnline Resources
    24. 24. ONLINE RESOURCESDon Syme’ Blog (F# Designer)http://blogs.msdn.com/b/dsyme/Tomas Petriceks’ Bloghttp://tomasp.net/
    25. 25. ONLINE RESOURCESF# Snippetshttp://fssnip.net/Channel 9http://channel9.msdn.com/StackOverflowhttp://stackoverflow.com/

    ×