This Is Driving Me Loopy: Efficient Loops in Arrowized Functional Reactive Programs
This Is Driving Me Loopy: Efficient Loops in Arrowized Functional Reactive Programs
复制标题
这让我抓狂:箭头化功能反应程序中的高效循环
DOI:
10.1145/3609026.3609726
复制
发表时间:
2023
期刊:
影响因子:
--
通讯作者:
Keating F
中科院分区:
文献类型:
--
作者:
Keating F
Arrowized Functional Reactive Programming (AFRP) is one approach to writing reactive programs declaratively, based on the arrows abstraction in Haskell. While AFRP elegantly expresses the relationships between inputs and outputs of a reactive system, na'ive implementations suffer from poor performance. In particular, theloopcombinator depends on lazy semantics: this inflicts the overheads of lazy evaluation and simultaneously prevents existing optimisation techniques from being applied to it.We present a novel program transformation which utilises the Arrow and ArrowLoop laws to transform typical uses ofloopinto restricted forms that have an execution order that is known at compile-time and therefore can be executed strictly. We evaluate the performance gained from our transformations and prove that the transformations are correct.
登录
查看更多内容
影响因子:
1.5
作者:
Henrik Nilsson;A. Courtney;John Peterson
通讯作者:
Henrik Nilsson;A. Courtney;John Peterson
DOI:
--
发表时间:
2014
期刊:
ACM SIGPLAN International Conference on Functional Programming
影响因子:
--
作者:
Daniel Winograd;P. Hudak
通讯作者:
P. Hudak
DOI:
10.1007/978-3-540-44833-4_6
发表时间:
2002
期刊:
Proceedings of the 16th ACM SIGPLAN international conference on Functional programming
影响因子:
--
作者:
P. Hudak;A. Courtney;H. Nilsson;J. Peterson
通讯作者:
J. Peterson
DOI:
--
发表时间:
2016
期刊:
ACM SIGPLAN Symposium/Workshop on Haskell
影响因子:
--
作者:
J. Yallop;Hai Liu
通讯作者:
Hai Liu
DOI:
--
发表时间:
--
期刊:
影响因子:
--
作者:
Neil Sculthorpe;Henrik Nilsson
通讯作者:
Henrik Nilsson