Algebraic effects and handlers for arrows

被引:0
|
作者
Sanada, Takahiro [1 ]
机构
[1] Kyoto Univ, Res Inst Math Sci, Kyoto, Japan
关键词
MONADS;
D O I
10.1017/S0956796824000066
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We present an arrow calculus with operations and handlers and its operational and denotational semantics. The calculus is an extension of Lindley, Wadler and Yallop's arrow calculus.The denotational semantics is given using a strong (pro)monad $\mathcal{A}$ in the bicategory of categories and profunctors. The construction of this strong monad $\mathcal{A}$ is not trivial because of a size problem. To build denotational semantics, we investigate what $\mathcal{A}$ -algebras are, and a handler is interpreted as an $\mathcal{A}$ -homomorphisms between $\mathcal{A}$ -algebras.The syntax and operational semantics are derived from the observations on $\mathcal{A}$ -algebras. We prove the soundness and adequacy theorem of the operational semantics for the denotational semantics.
引用
收藏
页数:57
相关论文
共 50 条
  • [1] Handlers of Algebraic Effects
    Plotkin, Gordon
    Pretnar, Matija
    PROGRAMMING LANGUAGES AND SYSTEMS, PROCEEDINGS, 2009, 5502 : 80 - 94
  • [2] Programming with algebraic effects and handlers
    Bauer, Andrej
    Pretnar, Matija
    JOURNAL OF LOGICAL AND ALGEBRAIC METHODS IN PROGRAMMING, 2015, 84 (01) : 108 - 123
  • [3] AN EFFECT SYSTEM FOR ALGEBRAIC EFFECTS AND HANDLERS
    Bauer, Andrej
    Pretnar, Matija
    LOGICAL METHODS IN COMPUTER SCIENCE, 2014, 10 (04)
  • [4] Contextual Modal Types for Algebraic Effects and Handlers
    Zyuzin, Nikita
    Nanevski, Aleksandar
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2021, 5
  • [5] Trace Effects for a Language with Algebraic Effect Handlers
    Kawamata F.
    Terauchi T.
    Computer Software, 2023, 40 (02) : 19 - 48
  • [6] No value restriction is needed for algebraic effects and handlers
    Kammar, Ohad
    Pretnar, Matija
    JOURNAL OF FUNCTIONAL PROGRAMMING, 2017, 27
  • [7] Handle with Care Relational Interpretation of Algebraic Effects and Handlers
    Biernacki, Dariusz
    Pirog, Maciej
    Polesiuk, Piotr
    Sieczkowski, Filip
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2018, 2
  • [8] An Introduction to Algebraic Effects and Handlers Invited tutorial paper
    Pretnar, Matija
    ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2015, 319 : 19 - 35
  • [9] Parallel Algebraic Effect Handlers
    Xie, Ningning
    Johnson, Daniel d.
    Maclaurin, Dougal
    Paszke, Adam
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2024, 8 (ICFP):
  • [10] Answer Refinement Modification: Refinement Type System for Algebraic Effects and Handlers
    Kawamata, Fuga
    Unno, Hiroshi
    Sekiyama, Taro
    Terauchi, Tachio
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2024, 8 (POPL): : 115 - 147