Back to the future: time travel in FRP
Back to the future: time travel in FRP
复制标题
回到未来:FRP 中的时间旅行
DOI:
10.1145/3122955.3122957
复制
发表时间:
2017
期刊:
影响因子:
--
通讯作者:
Ivan Perez
中科院分区:
文献类型:
--
作者:
Ivan Perez
Functional Reactive Programming (FRP) allows interactive applications to be modelled in a declarative manner using time-varying values. For practical reasons, however, operational constraints are often imposed, such as having a fixed time domain, time always flowing forward, and limiting the exploration of the past. In this paper we show how these constraints can be overcome, giving local control over the time domain, the direction of time and the sampling step. We study the behaviour of FRP expressions when time flows backwards, and demonstrate how to synchronize subsystems running asynchronously and at different sampling rates. We have verified the practicality of our approach with two non-trivial games in which time control is central to the gameplay.