Type reconstruction for linear π-calculus with I/O subtyping
Type reconstruction for linear π-calculus with I/O subtyping
复制标题
DOI:
10.1006/inco.2000.2872
复制
发表时间:
2000-08-25
影响因子:
1
通讯作者:
Kobayashi, N
中科院分区:
文献类型:
--
作者:
Igarashi, A;Kobayashi, N
Powerful concurrency primitives in recent concurrent languages and thread libraries provide great flexibility about implementation of high-level features like concurrent objects. However, they are so low-level that they often make it difficult to check global correctness of programs or to perform nontrivial code optimization, such as elimination of redundant communication. In order to overcome those problems, advanced type systems for input-only/output-only channels and linear (use-once) channels have been recently studied, but the type reconstruction problem for those type systems remained open, and therefore, their applications to concurrent programming languages have been limited. In this paper, we develop type reconstruction algorithms for variants of Kobayashi, Pierce, and Turner's linear channel type system with Pierce and Sangiorgi's subtyping based on input-only/output-only channel types and prove correctness of the algorithms. To our knowledge, no complete type reconstruction algorithm has been previously known for those type systems. We have implemented one of the algorithms and incorporated it into the compiler of the concurrent language HACL. This paper also shows some experimental results on the algorithm and its application to compile-time optimizations. (C) 2000 Academic Press.