Reactive Single-Page Applications with Dynamic Dataflow
- Cite this paper as:
- Fowler S., Denuzière L., Granicz A. (2015) Reactive Single-Page Applications with Dynamic Dataflow. In: Pontelli E., Son T. (eds) Practical Aspects of Declarative Languages. PADL 2015. Lecture Notes in Computer Science, vol 9131. Springer, Cham
Modern web applications are heavily dynamic. Several approaches, including functional reactive programming and data binding, allow a presentation layer to automatically reflect changes in a data layer. However, many of these techniques are prone to unpredictable memory performance, do not make guarantees about node identity, or cannot easily express dynamism in the dataflow graph.
We identify a point in the design space for the creation of statically-typed, reactive, dynamic, single-page web applications for the WebSharper framework in the functional-first language F#. We provide an embedding abstraction to link a dynamic dataflow graph to a DOM presentation layer in order to implement dynamic single-page applications, and show how the technique can be used to support declarative animation.
KeywordsFunctional programming Reactive web applications F#
Unable to display preview. Download preview PDF.