arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2105.06973cs.PL
收藏

Actor语言中安全自适应的多方会话类型(扩展版)

Multiparty Session Types for Safe Runtime Adaptation in an Actor Language (Extended version)

Paul Harvey, Simon Fowler, Ornela Dardha, Simon J. Gay

摘要:

人类的易犯错性,不可预测的操作环境以及硬件设备的异构性正在推动软件能够适应物联网或电信网络的需求。不幸的是,主流程序设计语言不容易允许软件组件通过发现、替换并与不是原始系统设计的一部分的组件通信来感测并响应于其操作环境,同时保持静态正确性保证。特别是,如果在运行时发现新组件,则不能保证其通信行为与现有组件兼容。我们通过使用具有显式连接操作的多方会话类型来解决这个问题,这是一种用于对分布式通信协议建模的类型形式。通过将会话类型与软件组件相关联,发现过程可以检查协议兼容性,并且在需要时正确地替换组件而不会危及安全性。我们提出的设计和实现的EnsembleS,第一个演员为基础的语言与自适应功能和静态会话类型系统,并将其应用到一个案例研究的基础上自适应DNS服务器。我们正式的类型系统的EnsembleS和证明的安全性良好的类型的程序,利用非经典的多方会话类型的最新进展。

英文摘要:

Human fallibility, unpredictable operating environments, and the heterogeneity of hardware devices are driving the need for software to be able to adapt as seen in the Internet of Things or telecommunication networks. Unfortunately, mainstream programming languages do not readily allow a software component to sense and respond to its operating environment, by discovering, replacing, and communicating with components that are not part of the original system design, while maintaining static correctness guarantees. In particular, if a new component is discovered at runtime, there is no guarantee that its communication behaviour is compatible with existing components. We address this problem by using multiparty session types with explicit connection actions, a type formalism used to model distributed communication protocols. By associating session types with software components, the discovery process can check protocol compatibility and, when required, correctly replace components without jeapordising safety. We present the design and implementation of EnsembleS, the first actor-based language with adaptive features and a static session type system, and apply it to a case study based on an adaptive DNS server. We formalise the type system of EnsembleS and prove the safety of well-typed programs, making essential use of recent advances in non-classical multiparty session types.

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

↑