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

基于 Xtext 的 DSL 在 GitHub 上的开发与演化:一项实证研究

Development and Evolution of Xtext-based DSLs on GitHub: An Empirical Investigation

Weixing Zhang, Daniel Strüber, Regina Hebig

AI总结:

本文对 GitHub 上 1002 个基于 Xtext 的 DSL 项目进行实证研究,分析了其开发实践、演化活动与协同演化,发现特定领域 DSL 演化更快且多为完善型变更,并贡献了相关仓库元信息数据集。

摘要:

领域特定语言(DSL)在促进模型驱动工程(MDE)背景下的广泛软件开发活动中发挥着关键作用。然而,目前缺乏对其演化的系统理解,这阻碍了方法论和工具的开发。为了填补这一空白,我们对使用 Xtext(MDE 中一种被广泛使用的语言工作台)创建的文本 DSL 的开发和演化进行了全面调查。我们系统地识别并分析了 1002 个包含 Xtext 相关项目的 GitHub 仓库。通过对仓库进行人工分类,筛选出 226 个包含完整开发语言的仓库。这些仓库被进一步划分为 18 个应用领域,我们在此检查了 DSL 制品及示例实例的可用性。我们探索了 DSL 的开发实践,包括开发场景、演化活动以及相关制品的协同演化。我们观察到,在数据管理和数据库等特定领域中,DSL 的使用更多、演化更快且维护时间更长。我们在 722 个仓库中识别出了 DSL 语法定义,但仅有三分之一提供了文本实例,其中大多数使用了超过 60% 的语法规则。我们发现大多数被分析的 DSL 遵循语法驱动方法,尽管部分采用了元模型驱动方法。此外,我们观察到在 Xtext 中改造现有语言的趋势,展示了其在创建新 DSL 之外的灵活性。我们发现,在大多数 DSL 开发项目中,语法定义和示例实例的更新非常频繁,且大多数演化活动可归类为“完善型”变更。为了支持模型驱动工程社区的研究,我们贡献了一个包含元信息的仓库数据集,以帮助开发改进的 DSL 演化工具。

英文摘要:

Domain-specific languages (DSLs) play a crucial role in facilitating a wide range of software development activities in the context of model-driven engineering (MDE). However, a systematic understanding of their evolution is lacking, which hinders methodology and tool development. To address this gap, we performed a comprehensive investigation into the development and evolution of textual DSLs created with Xtext, a particularly widely used language workbench in the MDE. We systematically identified and analyzed 1002 GitHub repositories containing Xtext-related projects. A manual classification of the repositories brought forward 226 ones that contain a fully developed language. These were further categorized into 18 application domains, where we examined DSL artifacts and the availability of example instances. We explored DSL development practices, including development scenarios, evolution activities, and co-evolution of related artifacts. We observed that DSLs are used more, evolve faster, and are maintained longer in specific domains, such as Data Management and Databases. We identified DSL grammar definitions in 722 repositories, but only a third provided textual instances, with most utilizing over 60% of grammar rules. We found that most analyzed DSLs followed a grammar-driven approach, though some adopted a metamodel-driven approach. Additionally, we observed a trend of retrofitting existing languages in Xtext, demonstrating its flexibility beyond new DSL creation. We found that in most DSL development projects, updates to grammar definitions and example instances are very frequent, and most of the evolution activities can be classified as ``perfective'' changes. To support the research in the model-driven engineering community, we contribute a dataset of repositories with meta-information, helping to develop improved tools for DSL evolution.

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

↑