Implementing Algebraic Effects in C - "Monads for Free in C"
Implementing Algebraic Effects in C - "Monads for Free in C"
复制标题
在 C 中实现代数效应 - “Monads for Free in C”
DOI:
10.1007/978-3-319-71237-6_17
复制
发表时间:
2017
期刊:
影响因子:
--
通讯作者:
Daan Leijen
中科院分区:
文献类型:
--
作者:
Daan Leijen
We describe an implementation of algebraic effects and handlers as a library in standard and portable C99, where effect operations can be used just like regular C functions. We use a formal operational semantics to guide the C implementation at every step where an evaluation context corresponds directly to a particular C execution context. Finally we show a novel extension to the semantics for optimized tail resumptions and prove it sound. This gives two orders of magnitude improvement to the performance of tail resumptive operations (up to about 150 million operations per second on a Core i7@2.6GHz).
DOI:
10.1145/2500365.2500590
发表时间:
2013
期刊:
--
影响因子:
--
作者:
Kammar O
通讯作者:
Kammar O
影响因子:
--
作者:
Forster Y
通讯作者:
Forster Y
DOI:
10.1145/3009837.3009897
发表时间:
2017
期刊:
--
影响因子:
--
作者:
Lindley S
通讯作者:
Lindley S