特设多态定界续延
Ad-hoc polymorphic delimited continuations
AI总结:
本文设计并实现了一个由库定义关键字组成的创建可扩展领域特定语言的框架,其核心概念类型类 Dsl 既是定界续延的特设多态版本,也是 Monad 的更通用版本,可用作比现有系统更高效简洁的静态类型可扩展效应系统。
摘要:
我们设计并实现了一个由库定义关键字组成的、用于创建可扩展领域特定语言的框架。借助我们的框架,其他编程语言中的一等语言特性可以作为库来实现。我们框架中的核心概念是类型类 Dsl,它既可以被视为定界续延的特设多态版本,也可以被视为 Monad 的更通用版本。因此,它也可以用作一个静态类型的可扩展效应系统,比现有的基于 Monad 的效应系统更高效、更简洁。
英文摘要:
We designed and implemented a framework for creating extensible domain-specific languages that consists of library-defined keywords. First-class language features in other programming languages can be implemented as libraries with the help of our framework. The core concept in our framework is the type class Dsl, which can be considered as both the ad-hoc polymorphic version of a delimited continuation and a more generic version of Monad. Thus it can be also used as a statically typed extensible effect system that is more efficient and more concise than existing Monad-based effect systems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。