vix.ing · top · new · best · stats · spec

Free Variable as Effect, in Practice

2023/12/27 by Oleg Kiselyov, Kiselyov, Oleg
Computer Science · #D.3.1 #D.3.4 #FOS: Computer and information sciences #Logic, programming, and type systems #Programming Languages (cs.PL)

paper · pdf · doi:10.48550/arxiv.2312.16446

openalex publication_date 2023/12/27 · openalex created_date 2025/10/10 · openalex updated_date 2026/07/28

Abstract

Variable environment is the time-honored way of making sense of free variables, used in programming language theory as well when writing interpreters and some compilers. Algebraic effects give another way, as was pointed already at HOPE 2017. Although a theoretical curiosity, it may have surprising practical benefits: a new way of writing compilers, with the incremental type-checking, with easy variable usage, leaf function analyses. This work-in-progress report prototypes and illustrates the idea.

Related