Functional reactive programming, continued
Functional reactive programming, continued
复制标题
DOI:
10.1145/581690.581695
复制
发表时间:
2002-10
影响因子:
1.5
通讯作者:
Henrik Nilsson;A. Courtney;John Peterson
中科院分区:
文献类型:
--
作者:
Henrik Nilsson;A. Courtney;John Peterson
Functional Reactive Programming (FRP) extends a host programming language with a notion of time flow. Arrowized FRP (AFRP) is a version of FRP embedded in Haskell based on the arrow combinators. AFRP is a powerful synchronous dataflow programming language with hybrid modeling capabilities, combining advanced synchronous dataflow features with the higher-order lazy functional abstractions of Haskell. In this paper, we describe the AFRP programming style and our Haskell-based implementation. Of particular interest are the AFRP combinators that support dynamic collections and continuation-based switching. We show how these combinators can be used to express systems with an evolving structure that are difficult to model in more traditional dataflow languages.