Type-Based Analysis for Session Inference (Extended Abstract)

被引:1
作者
Spaccasassi, Carlo [1 ]
Koutavas, Vasileios [1 ]
机构
[1] Trinity Coll Dublin, Dublin, Ireland
来源
FORMAL TECHNIQUES FOR DISTRIBUTED OBJECTS, COMPONENTS, AND SYSTEMS (FORTE 2016) | 2016年 / 9688卷
关键词
CALCULUS; LANGUAGE;
D O I
10.1007/978-3-319-39570-8_17
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
We propose a type-based analysis to infer the session protocols of channels in an ML-like concurrent functional language. Combining and extending well-known techniques, we develop a type-checking system that separates the underlying ML type system from the typing of sessions. Without using linearity, our system guarantees communication safety and partial lock freedom. It also supports provably complete session inference for finite sessions with no programmer annotations. We exhibit the usefulness of our system with interesting examples, including one which is not typable in substructural type systems.
引用
收藏
页码:248 / 266
页数:19
相关论文
共 19 条
[1]  
Amtoft Torben, 1999, Type and effect systems: behaviours for concurrency
[2]  
Caires L, 2010, LECT NOTES COMPUT SC, V6269, P222, DOI 10.1007/978-3-642-15375-4_16
[3]   Foundations of Session Types [J].
Castagna, Giuseppe ;
Dezani-Ciancaglini, Mariangiola ;
Giachino, Elena ;
Padovani, Luca .
PPDP'09: PROCEEDINGS OF THE 11TH INTERNATIONAL ACM SIGPLAN SYMPOSIUM ON PRINCIPLES AND PRACTICE OF DECLARATIVE PROGRAMMING, 2009, :219-230
[4]   Subtyping for session types in the pi calculus [J].
Gay, S ;
Hole, M .
ACTA INFORMATICA, 2005, 42 (2-3) :191-225
[5]   Linear type theory for asynchronous session types [J].
Gay, Simon J. ;
Vasconcelos, Vasco T. .
JOURNAL OF FUNCTIONAL PROGRAMMING, 2010, 20 :19-50
[6]  
Honda K, 1998, LECT NOTES COMPUT SC, V1381, P122, DOI 10.1007/BFb0053567
[7]  
Honda Kohei., 1993, CONCUR'93, 4th International Conference on Concurrency Theory, Hildesheim, Germany, August 23-26, 1993, V715, P509, DOI DOI 10.1007/3-540-57208-2_
[8]  
Huttel H., ACM COMP SU IN PRESS
[9]   Type reconstruction for linear π-calculus with I/O subtyping [J].
Igarashi, A ;
Kobayashi, N .
INFORMATION AND COMPUTATION, 2000, 161 (01) :1-44
[10]  
Mezzina LG, 2008, LECT NOTES COMPUT SC, V5052, P216, DOI 10.1007/978-3-540-68265-3_14