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

使用开放闭包类型跟踪数据流

Tracking Data-Flow with Open Closure Types

Gabriel Scherer, Jan Hoffmann

摘要:

类型系统隐藏由函数类型中的函数闭包捕获的数据。在大多数情况下,这是一个有益的设计,有利于简单性和组合性。但是,有些应用程序需要有关闭包中捕获的数据的显式信息。本文介绍了开放闭包类型,即用类型上下文装饰的函数类型。它们用于跟踪从环境到函数闭包的数据流。利用简单类型的λ演算研究开闭包类型的类型论的性质。这个类型论的一个显著特征是函数的开闭包类型在不同的类型上下文中可以变化。为了提出一个应用程序的类型论,它表明,一个类型推导建立一个简单的非干扰属性的意义上的信息流理论。一个公开的原型系统的实现可以用来实验类型派生的例子程序。

英文摘要:

Type systems hide data that is captured by function closures in function types. In most cases this is a beneficial design that favors simplicity and compositionality. However, some applications require explicit information about the data that is captured in closures. This paper introduces open closure types, that is, function types that are decorated with type contexts. They are used to track data-flow from the environment into the function closure. A simply-typed lambda calculus is used to study the properties of the type theory of open closure types. A distinctive feature of this type theory is that an open closure type of a function can vary in different type contexts. To present an application of the type theory, it is shown that a type derivation establishes a simple non-interference property in the sense of information-flow theory. A publicly available prototype implementation of the system can be used to experiment with type derivations for example programs.

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

↑