arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1604.02480cs.PL
收藏

TypeScript的细化类型

Refinement Types for TypeScript

Panagiotis Vekris, Benjamin Cosman, Ranjit Jhala

摘要:

我们提出了Refined TypeScript(RSC),这是一个轻量级的TypeScript细化类型系统,可以对高阶命令式程序进行静态验证。我们开发了一个正式的RSC核心,描绘了细化类型和可变性之间的相互作用。接下来,我们扩展核心来解释TypeScript的命令式和动态特性。最后,我们在一组真实世界的基准测试中评估了RSC,包括Octane基准测试、D3、Transducers和TypeScript编译器的一部分。

英文摘要:

We present Refined TypeScript (RSC), a lightweight refinement type system for TypeScript, that enables static verification of higher-order, imperative programs. We develop a formal core of RSC that delineates the interaction between refinement types and mutability. Next, we extend the core to account for the imperative and dynamic features of TypeScript. Finally, we evaluate RSC on a set of real world benchmarks, including parts of the Octane benchmarks, D3, Transducers, and the TypeScript compiler.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑