跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 软件工程

arXiv:2509.15150 (cs)
[提交于 2025年9月18日]

标题:Code Less to Code More: Streamlining Language Server Protocol and Type System Development for Language Families

作者:Federico Bruzzone, Walter Cazzola, Luca Favalli
查看论文《Code Less to Code More: Streamlining Language Server Protocol and Type System Development for Language Families》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Developing editing support for $L$ languages in $E$ editors is complex and time-consuming. Some languages do not provide dedicated editors, while others offer a single native editor. The $\textit{language server protocol}$ (LSP) reduces the language-editor combinations $L \times E$ to $L + E$, where a single language server communicates with editors via LSP plugins. However, overlapping implementations of linguistic components remain an issue. Existing language workbenches struggle with modularity, reusability, and leveraging type systems for language server generation. In this work, we propose: (i) Typelang, a family of domain-specific languages for modular, composable, and reusable type system implementation, (ii) a modular language server generation process, producing servers for languages built in a modular workbench, (iii) the variant-oriented programming paradigm and a cross-artifact coordination layer to manage interdependent software variants, and (iv) an LSP plugin generator, reducing $E$ to $1$ by automating plugin creation for multiple editors. To simplify editing support for language families, each language artifact integrates its own Typelang variant, used to generate language servers. This reduces combinations to $T \times 1$, where $T = L$ represents the number of type systems. Further reuse of language artifacts across languages lowers this to $N \times 1$, where $N << T$, representing unique type systems. We implement Typelang in Neverlang, generating language servers for each artifact and LSP plugins for three editors. Empirical evaluation shows a 93.48% reduction in characters needed for type system implementation and 100% automation of LSP plugin generation, significantly lowering effort for editing support in language families, especially when artifacts are reused.
评论: 34 pages, 10 figures, Journal of Systems and Software, June 2025, for the replication package, see https://doi.org/10.5281/zenodo.15276991
主题: 软件工程 (cs.SE); 程序设计语言 (cs.PL)
引用方式: arXiv:2509.15150 [cs.SE]
  (或者 arXiv:2509.15150v1 [cs.SE] 对于此版本)
  https://doi.org/10.48550/arXiv.2509.15150
期刊参考: 10.1016/j.jss.2025.112554
相关 DOI: https://doi.org/10.1016/j.jss.2025.112554

提交历史

来自:Federico Bruzzone
[v1] 2025年9月18日 星期四 16:57:01 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.SE
< 上一篇   |   下一篇 >
最新 | 近期 | 2025-09
切换浏览方式为:
cs
cs.PL

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站