paperbot · PL 论文追踪

RSS

Simplifying explicit subtyping coercions in a polymorphic calculus with effects

LMCS vol.Volume 21, Issue 42025
Filip Koprivec, Matija Pretnar

尚未生成 AI 速览(可能缺少 API key 或等待下次运行补跑)。

原文摘要(Abstract)

Algebraic effect handlers are becoming an increasingly popular way of structuring effectful computations, and their performance is often a concern. One of the proposed approaches towards efficient compilation is tracking effect information through explicit subtyping coercions. However, in the presence of polymorphism, these coercions are compiled into additional arguments of compiled functions, incurring significant overhead. In this paper, we present a polymorphic effectful calculus, identify simplification phases needed to reduce the number of unnecessary constraints, and prove that they preserve semantics. In addition, we implement the simplification algorithm in the Eff language and evaluate its performance on a number of benchmarks. Though we do not prove the optimality of the presented simplifications, the results show that the algorithm eliminates all coercions, resulting in code as efficient as manually monomorphised one.

链接与引用

DOI 原文 ·

BibTeX
@article{paperbot3345,
  title = {Simplifying explicit subtyping coercions in a polymorphic calculus with effects},
  author = {Filip Koprivec and Matija Pretnar},
  journal = {Logical Methods in Computer Science},
  volume = {Volume 21, Issue 4},
  year = {2025},
  doi = {10.46298/lmcs-21(4:25)2025}
}