Causal commutative arrows revisited
Causal commutative arrows revisited
复制标题
重新审视因果交换箭头
DOI:
--
复制
发表时间:
2016
期刊:
影响因子:
--
通讯作者:
Hai Liu
中科院分区:
文献类型:
--
作者:
J. Yallop;Hai Liu
Causal commutative arrows (CCA) extend arrows with additional constructs and laws that make them suitable for modelling domains such as functional reactive programming, differential equations and synchronous dataflow. Earlier work has revealed that a syntactic transformation of CCA computations into normal form can result in significant performance improvements, sometimes increasing the speed of programs by orders of magnitude. In this work we reformulate the normalization as a type class instance and derive optimized observation functions via a specialization to stream transformers to demonstrate that the same dramatic improvements can be achieved without leaving the language.