freckle - meetupfiles.meetup.com/10193032/freckle.pdf · freckle sampling. thank you for listening!...
TRANSCRIPT
FreckleSimple Monadic Functional Reactive Programming for F#
What is Functional Reactive Programming?● Coined by Elliott Conal
○ Values over time (Behaviors)
○ Resolution- Independence
○ Extended: Push-Pull FRP (2009)
● 2012: Elm (javascript)○ Inventor: Evan Czaplicki
○ Signals (Event Streams)
○ Simplifies Javascript
○ Not “real” FRP according to Conal
○ Hidden state approach (foldp)
FRP is● Declarative● Time manipulation● Resolution Independence● Events as messages
FRP is not● Behaviors● Inherently time leaking● Hidden state
My View on FRP
FRP Dream
Freckle version
Mouse Position
Freckle Core Types
"Perfection is Achieved Not When There Is Nothing More to Add, But When There Is Nothing Left to Take Away"
- Antoine de Saint-Exupery
Search with suggestions
FRP: Debouncing
The Game Loop
Sampling - Understanding the basics
What we want What we get
Sampling - The naïve solution
Freckle Sampling
Thank you for listening! ^.^