Skip to main content
Kent Academic Repository

Erlang on TOAST: Generating Erlang Stubs with Inline TOAST Monitors

Pears, Jonah, Bocchi, Laura, Hu, Raymond (2024) Erlang on TOAST: Generating Erlang Stubs with Inline TOAST Monitors. In: Erlang 2024: Proceedings of the 23rd ACM SIGPLAN International Workshop on Erlang. . pp. 33-44. ACM ISBN 979-8-4007-1098-8. (doi:10.1145/3677995.3678192) (KAR id:107136)

Abstract

In this work, we consider the formal framework TOAST for timed asynchronous interactions featuring mixed-choice states. TOAST extends the theory of timed asynchronous session types to support modelling of communication protocols featuring timeouts, which despite being commonplace in practice were previously out of reach for session type theory. We present ongoing work towards a practical toolchain that (a) automates the generation of correct-by-construction program stubs with timeouts in Erlang from TOAST processes that implement a TOAST protocol, and (b) provides an inline monitoring framework for TOAST protocols integrated with Erlang supervisors. Our toolchain generates Erlang code with a close correspondence to the source TOAST model by building on a formal correspondence between session types and Communicating Finite State Machines. The monitoring framework can be configured to perform either runtime verification or enforcement with respect to the source protocol, ensuring communication safety.

Item Type: Conference or workshop item (Proceeding)
DOI/Identification number: 10.1145/3677995.3678192
Uncontrolled keywords: Code generation, Erlang, Timed Protocols, Runtime monitors, Asynchronous Communication
Subjects: Q Science > QA Mathematics (inc Computing science)
Divisions: Divisions > Division of Computing, Engineering and Mathematical Sciences > School of Computing
Funders: Engineering and Physical Sciences Research Council (https://ror.org/0439y7842)
European Union (https://ror.org/019w4f821)
SWORD Depositor: JISC Publications Router
Depositing User: JISC Publications Router
Date Deposited: 11 Oct 2024 14:41 UTC
Last Modified: 05 Nov 2024 13:12 UTC
Resource URI: https://kar.kent.ac.uk/id/eprint/107136 (The current URI for this page, for reference purposes)

University of Kent Author Information

  • Depositors only (login required):

Total unique views for this document in KAR since July 2020. For more details click on the image.