arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.09090cs.SE
收藏

Crème de la Crem:可组合、可表示、可执行的机器(架构瑰宝)

Crème de la Crem: Composable Representable Executable Machines (Architectural Pearl)

Marco Perone, Georgios Karachalias

AI总结:

本文提出将软件架构构建为可组合、可表示的状态机,并推出基于 Haskell 类型级特性的 Crem 库,以约束状态转换、编码领域属性并自动生成图形表示。

摘要:

在本文中,我们描述了如何运用领域驱动设计领域的思想与原则,将软件架构构建为状态机的组合。根据定义,我们的方法是模块化的,允许人们组合独立子组件以创建更大的系统;同时也是可表示的,允许系统实现与其图形表示保持同步。除设计本身外,我们还介绍了 Crem 库,它提供了一种既可组合又可表示的具体状态机实现。Crem 使用 Haskell 先进的类型级特性,使用户能够指定允许和禁止的状态转换,并编码复杂的状态机属性——从而编码特定领域属性。此外,由于 Crem 的状态机是可表示的,Crem 能够根据系统的领域实现自动生成系统的图形表示。

英文摘要:

In this paper we describe how to build software architectures as a composition of state machines, using ideas and principles from the field of Domain-Driven Design. By definition, our approach is modular, allowing one to compose independent subcomponents to create bigger systems, and representable, allowing the implementation of a system to be kept in sync with its graphical representation. In addition to the design itself we introduce the Crem library, which provides a concrete state machine implementation that is both compositional and representable, Crem uses Haskell's advanced type-level features to allow users to specify allowed and forbidden state transitions, and to encode complex state machine -- and therefore domain-specific -- properties. Moreover, since Crem's state machines are representable, Crem can automatically generate graphical representations of systems from their domain implementations.

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

↑