Special Issue on Workshop on Advances in Parallel and Distributed Computational Models 2023
A Domain-Specific Language for Reconfigurable, Distributed Software
International Journal of Networking and Computing, Vol. 14, No. 1, pp. 40–80, January 2024
Download PDF DOI: 10.15803/ijnc.14.1_40
Abstract
A program’s architecture—how it organizes the invocation of application-specific logic— influences important program characteristics including its scalability and security. Architecture details are usually expressed in the same programming language as the rest of a program, and can be difficult to distinguish from non-architecture code. Once defined, a program’s architecture is difficult and risky to change because it couples tightly with application logic over time. We introduce C-Saw: an approach to express a software’s architecture using a new embedded domain-specific language (EDSL) designed for that purpose. It decouples application-specific logic from architecture, making it easier to identify architectural details of software. C-Saw leverages three ideas: (i) introducing a new, formally-specified EDSL to separate an application’s architecture description from its programming language; (ii) reducing architecture implementation to the definition and management of distributed key-value tables, and (iii) introducing an expressive state-management abstraction for distributed applications. We describe a prototype implementation of C-Saw for C programs and use its implementation to build end-to-end examples of expressing and changing the architecture of widely-used, third-party software. We evaluate this on Redis, cURL, and Suricata and find that C-Saw provides expressiveness and reusability, requires fewer lines of code when compared to directly using C to express architectural patterns, and imposes low performance overhead on typical workloads.
Keywords
Key-Value TablesProcess AlgebraCoordination LanguageDomain-Specific Language
How to Cite
Henry Zhu, Junyong Zhao and Nik Sultana, "A Domain-Specific Language for Reconfigurable, Distributed Software," International Journal of Networking and Computing, vol. 14, no. 1, pp. 40–80, 2024. doi: 10.15803/ijnc.14.1_40
BibTeX
@article{ijnc.v14n01p04,
author = {Henry Zhu and Junyong Zhao and Nik Sultana},
title = {A Domain-Specific Language for Reconfigurable, Distributed Software},
journal = {International Journal of Networking and Computing},
volume = {14},
number = {1},
pages = {40--80},
year = {2024},
doi = {10.15803/ijnc.14.1_40},
url = {https://ijnc-journal.github.io/articles/v14n01p04/}
}