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

会话类型动态化或如何验证您的Python对话

Session Types Go Dynamic or How to Verify Your Python Conversations

Rumyana Neykova

摘要:

本文介绍了动态类型语言Python中会话类型的第一个实现。整个系统的通信安全在运行时由监视器保证,监视器检查执行跟踪是否符合相关协议。协议是用Scribble编写的,Scribble是一种基于多方会话类型的编排描述语言,添加了逻辑公式以获得更精确的行为属性。所提出的框架克服了以前的工作的局限性,所有端点的会话类型应该是静态类型的,使他们不允许与无类型的参与者的互操作性。通过用例和基准测试,展示了动态协议检测的优势、表现力和性能。

英文摘要:

This paper presents the first implementation of session types in a dynamically-typed language - Python. Communication safety of the whole system is guaranteed at runtime by monitors that check the execution traces comply with an associated protocol. Protocols are written in Scribble, a choreography description language based on multiparty session types, with addition of logic formulas for more precise behaviour properties. The presented framework overcomes the limitations of previous works on the session types where all endpoints should be statically typed so that they do not permit interoperability with untyped participants. The advantages, expressiveness and performance of dynamic protocol checking are demonstrated through use case and benchmarks.

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

↑