kmclib:会话类型的自动推理和验证
kmclib: Automated Inference and Verification of Session Types
摘要:
基于多方会话类型的理论和工具为使用消息传递进行通信的并发程序提供了正确性保证。这些保证通常以本质上自顶向下的方法为代价,这种方法需要将整个程序的通信行为指定为全局类型。本文介绍了kmclib:一个OCaml库,它支持开发正确的消息传递程序,而无需编写任何类型。该库利用OCaml的元编程工具来自动推断并发程序的会话类型并验证其兼容性(k-MC)。用kmclib编写的类型良好的程序不会导致通信错误,也不会卡住。
英文摘要:
Theories and tools based on multiparty session types offer correctness guarantees for concurrent programs that communicate using message-passing. These guarantees usually come at the cost of an intrinsically top-down approach, which requires the communication behaviour of the entire program to be specified as a global type. This paper introduces kmclib: an OCaml library that supports the development of correct message-passing programs without having to write any types. The library utilises the meta-programming facilities of OCaml to automatically infer the session types of concurrent programs and verify their compatibility (k-MC). Well-typed programs, written with kmclib, do not lead to communication errors and cannot get stuck.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。