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

模态反应器

Modal Reactors

Alexander Schulz-Rosengarten, Reinhard von Hanxleden, Marten Lohstroh, Soroush Bateni, Edward A. Lee

摘要:

复杂的软件系统通常具有不同的操作模式,每个模式都被设计为处理可能需要系统以某种方式响应的特定场景。将系统行为分解为相互排斥的模式和模式之间的离散转换是一种常用的策略,可以降低实现复杂性并提高代码可读性。然而,这样的能力通常以自包含的特定于领域的语言或特定于语言的框架的形式出现。本文中的工作旨在通过遵循Lingua Franca(LF)的多语言协调方法,将模态模型的优点带到主流程序设计语言中,其中逐字目标代码(例如,C、C++、Python、Typescript或Rust)封装在称为反应器的可组合反应组件中。反应器可以形成一个分布式网络,由定时和偶发事件触发,并发执行,并且可以分布在网络上的节点上。在LF模态模型,我们引入了精益扩展的概念,反应堆,使反应任务的协调工作模式的基础上。本文中概述的模态反应器的实现一般化到任何LF支持的语言,只有适度的修改,通用的运行时系统。

英文摘要:

Complex software systems often feature distinct modes of operation, each designed to handle a particular scenario that may require the system to respond in a certain way. Breaking down system behavior into mutually exclusive modes and discrete transitions between modes is a commonly used strategy to reduce implementation complexity and promote code readability. However, such capabilities often come in the form of self-contained domain specific languages or language-specific frameworks. The work in this paper aims to bring the advantages of modal models to mainstream programming languages, by following the polyglot coordination approach of Lingua Franca (LF), in which verbatim target code (e.g., C, C++, Python, Typescript, or Rust) is encapsulated in composable reactive components called reactors. Reactors can form a dataflow network, are triggered by timed as well as sporadic events, execute concurrently, and can be distributed across nodes on a network. With modal models in LF, we introduce a lean extension to the concept of reactors that enables the coordination of reactive tasks based on modes of operation. The implementation of modal reactors outlined in this paper generalizes to any LF-supported language with only modest modifications to the generic runtime system.

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

↑