danr / koka-slides

Talk about Leijen's "Type Directed Compilation of Row-Typed Algebraic Effects"

Home Page:http://demo.spraakdata.gu.se/dan/koka-slides/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Type Directed Compilation of Row-Typed Algebraic Effects

Daan Leijen, POPL 2017

"Papers we love" presentation by Dan Rosén

The paper

The slides

Related reading

Algebraic effects

Algebraic Effects offer a simple and uniform interface to program effects. They are very expressive: they can capture patterns usually hard-wired into programming languages, such as exceptions, generators (yield), asynchronicity (async and await). Further, they offer a principled approach to impurity: state, heap effects and IO. In comparison to monads they compose in the sense that they can be run in any order (without quadratic encodings such mtl's), and the run functions are easier to implement.

Algebraic Effects were introduced by Plotkin and Power in 2003, and Algebraic Effect Handlers by Plotkin and Pretnar in 2009 and have gained in popularity and implementations in the recent years, in dedicated languages such as Eff, Links, Frank and Koka, and in libraries for Haskell and Idris. The paper we will give some love this meeting is Daan Leijen's "Type directed compilation of row-typed algebraic effects" from POPL 2017. This article gives an excellent introduction to algebraic effects from a programmer's perspective. It describes his language Koka and shows how to effectively compile it into JavaScript.

About

Talk about Leijen's "Type Directed Compilation of Row-Typed Algebraic Effects"

http://demo.spraakdata.gu.se/dan/koka-slides/


Languages

Language:TypeScript 90.2%Language:JavaScript 7.7%Language:HTML 2.1%