hn-classics/_stories/2009/8342830.md

52 lines
2.1 KiB
Markdown
Raw Normal View History

2018-02-23 18:19:40 +00:00
[Source](http://conal.net/papers/push-pull-frp/ "Permalink to ")
# Push-pull functional reactive programming
### [Haskell Symposium 2009][1]
### [Conal Elliott][2]
### **Abstract**
> Functional reactive programming (FRP) has simple and powerful semantics, but has resisted efficient implementation. In particular, most past implementations have used demand-driven sampling, which accommodates FRPs continuous time semantics and fits well with the nature of functional programming. Consequently, values are wastefully recomputed even when inputs dont change, and reaction latency can be as high as the sampling period.
> This paper presents a way to implement FRP that combines data- and demand-driven evaluation, in which values are recomputed only when necessary, and reactions are nearly instantaneous. The implementation is rooted in a new simple formulation of FRP and its semantics and so is easy to understand and reason about.
> On the road to a new implementation, well meet some old friends (monoids, functors, applicative functors, monads, morphisms, and improving values) and make some new friends (functional future values, reactive normal form, and concurrent “unambiguous choice”).
[Paper (292K PDF)][3]
See also:
* [Video of ICFP talk][4]
* [Slides for ICFP talk][5]
**Note:** This paper supercedes the technical report [_Simply efficient functional reactivity][6]_.
### BibTex
@InProceedings {Elliott2009-push-pull-frp,
author = {Conal Elliott},
title = {Push-pull functional reactive programming},
booktitle = {Haskell Symposium},
url = {http://conal.net/papers/push-pull-frp},
year = 2009
}
### **Errata**
Ill list errors and corrections are listed here as they are reported.
![simple hit counter][7]
[1]: http://haskell.org/haskell-symposium/2009/
[2]: http://conal.net
[3]: http://conal.net/push-pull-frp.pdf
[4]: http://www.vimeo.com/6686570
[5]: http://conal.net/push-pull-frp-slides.pdf
[6]: http://conal.net/papers/simply-reactive/
[7]: http://c14.statcounter.com/counter.php?sc_project=1463941&java=0&security=f946058f&invisible=1