Effect Systems Revisited - Control-Flow Algebra and Semantics
Effect Systems Revisited - Control-Flow Algebra and Semantics
复制标题
重温效应系统 - 控制流代数和语义
DOI:
--
复制
发表时间:
2015
期刊:
影响因子:
--
通讯作者:
T. Petříček
中科院分区:
文献类型:
--
作者:
A. Mycroft;Dominic A. Orchard;T. Petříček
Effect systems were originally conceived as an inference-based program analysis to capture program behaviour--as a set of representations of effects. Two orthogonal developments have since happened. First, motivated by static analysis, effects were generalised to values in an algebra, to better model control flow e.g. for may/must analyses and concurrency. Second, motivated by semantic questions, the syntactic notion of set- or semilattice- based effect system was linked to the semantic notion of monads and more recently to graded monads which give a more precise semantic account of effects.
We give a lightweight tutorial explanation of the concepts involved in these two threads and then unify them via the notion of an effect-directed semantics for a control-flow algebra of effects. For the case of effectful programming with sequencing, alternation and parallelism--illustrated with music--we identify a form of graded joinads as the appropriate structure for unifying effect analysis and semantics.