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 条
[12]  
Palsberg J, 2001, ACM SIGPLAN NOTICES, P20
[13]  
Pucella R, 2008, HASKELL'08: PROCEEDINGS OF THE ACM SIGPLAN 2008 HASKELL SYMPOSIUM, P25
[14]  
Shivers Olin Grigsby, 1991, THESIS
[15]  
Tofte M., 1994, Conference Record of POPL '94: 21st ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, P188, DOI 10.1145/174675.177855
[16]  
Toninho B, 2013, LECT NOTES COMPUT SC, V7792, P350, DOI 10.1007/978-3-642-37036-6_20
[17]  
Tov Jesse A., 2012, THESIS
[18]   Type checking a multithreaded functional language with session types [J].
Vasconcelos, Vasco T. ;
Gay, Simon J. ;
Ravara, Antonio .
THEORETICAL COMPUTER SCIENCE, 2006, 368 (1-2) :64-87
[19]   Propositions as Sessions [J].
Wadler, Philip .
ACM SIGPLAN NOTICES, 2012, 47 (09) :273-285