paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Modal Effect Types

模态效应类型
OOPSLA 9(OOPSLA1)2025匹配度 2/10 · 该论文属于纯PL类型系统与效应处理方向,研究如何用模态效应类型静态保证效应操作被处理,不涉及LLM/Agent、机器学习系统静态分析、浮点程序分析或贝叶斯程序分析等用户画像的核心交叉点。引用 3 inbox
Wenhao Tang, Leo White, Stephen Dolan, Daniel Hillerström, Sam Lindley, Anton Lorenzen
crossref: 2026-09-10

AI 速览

一句话:提出基于模态效应类型的新方法,无需显式效应多态即可静态保证效应操作均被处理。

Effect handlers 是定义、定制与组合计算效应的强大抽象。要在静态上保证所有效应操作都被处理,通常需要效应系统,但传统效应系统会要求在语言已有的数百万行代码中添加大量效应标注。近期方案试图消除显式效应多态的需求,但它们往往依赖脆弱的语法机制,或引入独立的二等函数概念。本文提出一种基于模态效应类型(modal effect types)的新方法,旨在以类型系统方式解决上述问题。摘要未给出具体形式化细节、实现或评估结果,核心贡献是提出这一新方向。

问题
在已有大量代码中静态保证所有效应操作都被处理,传统效应系统需要大量效应标注,而近期无需显式效应多态的替代方案依赖脆弱语法或二等函数。
方法
提出基于模态效应类型的新方法,以避免传统效应标注和现有替代方案的脆弱机制。
评估
摘要未报告具体评估或形式化结果;论文的贡献集中于提出模态效应类型这一新方法。
原文摘要(Abstract)

Effect handlers are a powerful abstraction for defining, customising, and composing computational effects. Statically ensuring that all effect operations are handled requires some form of effect system, but using a traditional effect system would require adding extensive effect annotations to the millions of lines of existing code in these languages. Recent proposals seek to address this problem by removing the need for explicit effect polymorphism. However, they typically rely on fragile syntactic mechanisms or on introducing a separate notion of second-class function. We introduce a novel approach based on modal effect types.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@article{paperbot3186,
  title = {Modal Effect Types},
  author = {Wenhao Tang and Leo White and Stephen Dolan and Daniel Hillerström and Sam Lindley and Anton Lorenzen},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {9},
  number = {OOPSLA1},
  year = {2025},
  doi = {10.1145/3720476}
}