An Introduction to FSharp

horationunez 510 views 25 slides Jun 26, 2012
Slide 1
Slide 1 of 25
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25

About This Presentation

This is the companion slides of a talk I gave for the .NET Miami user group on April 19th, 2012.


Slide Content

An Introduction to F# Horacio Nunez {[email protected], horatio.info}

What is F#? F# Interactive F# 101 (less than 10 minutes!) Walkthrough: Functional Numerical Matrixes Online Resources

F# is multi-paradigm programming language targeting the .NET framework

functional object oriented imperative language oriented F#

Immutable values and data types (No State => No Shared Memory) let x = 10 x = 10 //<!-- boolean

High Order Functions (functions can be parameters and results of other functions)

Type Inference Think in C#’s var … everywhere

Declarative Express the desired result, not the step-by-step recipe

Lazy Evaluation Use values only when you really need it

Pattern Matching The compiler “understands” types

Mutable values and data types (State => Probable Shared Memory) let mutable x = 10 x <- 10

F# can consume and create OOP designs seamlessly

also… F# becomes MSIL , hard to read, but MSIL

F# is fully supported in Visual Studio except for GUI Designers

What is F#? F# Interactive F# 101 (less than 10 minutes!) Walkthrough: Functional Numerical Matrixs Online Resources

What is F#? F# Interactive F# 101 (less than 10 minutes!) Walkthrough: Functional Numerical Matrixs Online Resources

What is F#? F# Interactive F# 101 (less than 10 minutes!) Walkthrough: Functional Numerical Matrixs Online Resources

Functional Abstractions for Numerical Matrixes  

Have you ever tried to create a Matrix of order Int32.MaxValue ?

Out of Memory Exception!

What is F#? F# Interactive F# 101 (less than 10 minutes!) Walkthrough: Functional Numerical Matrixs Online Resources

ONLINE RESOURCES Don Syme’ Blog (F# Designer) http :// blogs.msdn.com/b/dsyme/ Tomas Petricek's ’ Blog http ://tomasp.net/

ONLINE RESOURCES F# Snippets http://fssnip.net/ Channel 9 http://channel9.msdn.com/ StackOverflow http://stackoverflow.com/