Toward live domain-specific languages: From text differencing to adapting models at run time

Riemer van Rozen*, Tijs van der Storm

*Corresponding author for this work

Research output: Contribution to journalArticleAcademicpeer-review

16 Citations (Scopus)
86 Downloads (Pure)

Abstract

Live programming is a style of development characterized by incremental change and immediate feedback. Instead of long edit-compile cycles, developers modify a running program by changing its source code, receiving immediate feedback as it instantly adapts in response. In this paper, we propose an approach to bridge the gap between running programs and textual domain-specific languages (DSLs). The first step of our approach consists of applying a novel model differencing algorithm, TMDIFF, to the textual DSL code. By leveraging ordinary text differencing and origin tracking, TMDIFF produces deltas defined in terms of the metamodel of a language. In the second step of our approach, the model deltas are applied at run time to update a running system, without having to restart it. Since the model deltas are derived from the static source code of the program, they are unaware of any run-time state maintained during model execution. We therefore propose a generic, dynamic patch architecture, RMPATCH, which can be customized to cater for domain-specific state migration. We illustrate RMPATCH in a case study of a live programming environment for a simple DSL implemented in RASCAL for simultaneously defining and executing state machines.

Original languageEnglish
Pages (from-to)195-212
Number of pages18
JournalSoftware and systems modeling
Volume18
Issue number1
DOIs
Publication statusPublished - Feb-2019

Keywords

  • Live programming
  • Domain-specific languages
  • Text differencing
  • Model patching
  • Adapting models
  • Models at run time
  • DESIGN

Fingerprint

Dive into the research topics of 'Toward live domain-specific languages: From text differencing to adapting models at run time'. Together they form a unique fingerprint.

Cite this