Akademska digitalna zbirka SLovenije - logo
(UL)
PDF
  • Asynchronous effects [Elektronski vir]
    Ahman, Danel ; Pretnar, Matija, 1982-
    We explore asynchronous programming with algebraic effects. We complement their conventional synchronous treatment by showing how to naturally also accommodate asynchrony within them, namely, by ... decoupling the execution of operation calls into signalling that an operation's implementation needs to be executed, and interrupting a running computation with the operation's result, to which the computation can react by installing interrupt handlers. We formalise these ideas in a small core calculus, called ▫$\lambda_{\text{\ae}}$▫. We demonstrate the flexibility of ▫$\lambda_{\text{\ae}}$▫ using examples ranging from a multi-party web application, to preemptive multi-threading, to remote function calls, to a parallel variant of runners of algebraic effects. In addition, the paper is accompanied by a formalisation of ▫$\lambda_{\text{\ae}}$▫'s type safety proofs in A▫$\textsc{gda}$▫, and a prototype implementation of ▫$\lambda_{\text{\ae}}$▫ in OC▫$\textsc{aml}$▫.
    Vir: Proceedings of the ACM on Programming Languages [Elektronski vir]. - ISSN 2475-1421 (Vol. 5, iss. POPL, Jan. 2021, art. 24 (28 str.))
    Vrsta gradiva - e-članek ; neleposlovje za odrasle
    Leto - 2021
    Jezik - angleški
    COBISS.SI-ID - 45728771