English

Session Types Go Dynamic or How to Verify Your Python Conversations

Programming Languages 2013-12-11 v1

Abstract

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.

Keywords

Cite

@article{arxiv.1312.2704,
  title  = {Session Types Go Dynamic or How to Verify Your Python Conversations},
  author = {Rumyana Neykova},
  journal= {arXiv preprint arXiv:1312.2704},
  year   = {2013}
}

Comments

In Proceedings PLACES 2013, arXiv:1312.2218

R2 v1 2026-06-22T02:24:22.651Z