面向定时交互的安全异步混合选择
Safe asynchronous mixed-choice for timed interactions
AI总结:
本文提出 TOAST 异步定时会话类型,通过时间约束安全支持混合选择并保证进展性,还基于进程定时器和 receive-after 模式建模超时。
摘要:
长期以来,混合选择一直被排除在异步通信模型之外,因为它会破坏通信有限状态机的关键性质。会话类型继承了这一限制,导致其无法对超时进行完整建模——而超时是处理故障的一项关键编程特性。为弥补这一缺陷,我们提出(二元)TimeOut Asynchronous Session Types(TOAST),作为(二元)异步定时会话类型的扩展,以允许混合选择。TOAST 利用时间约束来规范混合选择的使用,从而保持通信安全性。我们为 TOAST 提供了一种新的行为语义,可在存在混合选择的情况下保证进展性。在 TOAST 的基础上,我们给出了一种具有进程定时器的演算,该演算能够使用与 Erlang 非常相似的 receive-after 模式对超时进行建模,并不正式地说明了其与 TOAST 规范之间的对应关系。
英文摘要:
Mixed-choice has long been barred from models of asynchronous communication since it compromises key properties of communicating finite-state machines. Session types inherit this restriction, which precludes them from fully modelling timeouts -- a key programming feature to handle failures. To address this deficiency, we present (binary) TimeOut Asynchronous Session Types ({TOAST}) as an extension to (binary) asynchronous timed session types to permit mixed-choice. {TOAST} deploy timing constraints to regulate the use of mixed-choice so as to preserve communication safety. We provide a new behavioural semantics for {TOAST} which guarantees progress in the presence of mixed-choice. Building upon {TOAST}, we provide a calculus featuring process timers which is capable of modelling timeouts using a $\mathtt{receive\text{-}after}$ pattern, much like Erlang, and informally illustrate the correspondence with TOAST specifications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。