Domain-Specific Program Checking

被引:0
作者
Renggli, Lukas [1 ]
Ducasse, Stephane [2 ]
Girba, Tudor [3 ]
Nierstrasz, Oscar [1 ]
机构
[1] Univ Bern, Software Composit Grp, CH-3012 Bern, Switzerland
[2] INRIA, RMoD, Lille, France
[3] Software Engn GmbH, Sw eng, Bern, Switzerland
来源
OBJECTS, MODELS, COMPONENTS, PATTERNS | 2010年 / 6141卷
基金
瑞士国家科学基金会;
关键词
D O I
暂无
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Lint-like program checkers are popular tools that ensure code quality by verifying compliance with best practices for a particular programming language. The proliferation of internal domain-specific languages and models, however, poses new challenges for such tools. Traditional program checkers produce many false positives and fail to accurately check constraints, best practices, common errors, possible optimizations and portability issues particular to domain-specific languages. We advocate the use of dedicated rules to check domain-specific practices. We demonstrate the implementation of domain-specific rules, the automatic repair of violations, and their application to two case-studies: (1) Seaside defines several internal DSLs through a creative use of the syntax of the host language; and (2) Magritte adds meta-descriptions to existing code by means of special methods. Our empirical validation demonstrates that domain-specific program checking significantly improves code quality when compared with general purpose program checking.
引用
收藏
页码:213 / +
页数:3
相关论文
共 50 条
[31]   Domain-specific ontology of botany [J].
Gu, F ;
Cao, CG ;
Sui, YF ;
Wen, TA .
JOURNAL OF COMPUTER SCIENCE AND TECHNOLOGY, 2004, 19 (02) :238-248
[32]   HYBRID DOMAIN-SPECIFIC KITS [J].
GRISS, ML ;
WENTZEL, KD .
JOURNAL OF SYSTEMS AND SOFTWARE, 1995, 30 (03) :213-230
[33]   Macros for Domain-Specific Languages [J].
Ballantyne, Michael ;
King, Alexis ;
Felleisen, Matthias .
PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2020, 4 (OOPSLA)
[34]   Domain-specific XML compression [J].
Moore, John P. T. ;
Kheirkhahzadeh, Antonio D. ;
Bagale, Jiva N. .
2013 DATA COMPRESSION CONFERENCE (DCC), 2013, :510-510
[35]   A Domain-Specific Language for Microservices [J].
Donham, Jacob .
PROCEEDINGS OF THE 9TH ACM SIGPLAN INTERNATIONAL SYMPOSIUM ON SCALA (SCALA '18), 2018, :2-12
[36]   The Open Domain-Specific Architecture [J].
Drucker, Kevin ;
Jani, Dharmesh ;
Agarwal, Ishwar ;
Miller, Gary ;
Mittal, Millind ;
Wang, Robert ;
Vinnakota, Bapiraju .
2020 IEEE SYMPOSIUM ON HIGH-PERFORMANCE INTERCONNECTS (HOTI 2020), 2020, :25-32
[37]   Domain-Specific Hardware Accelerators [J].
Dally, William J. ;
Turakhia, Yatish ;
Han, Song .
COMMUNICATIONS OF THE ACM, 2020, 63 (07) :48-57
[38]   On the Globalization of Domain-Specific Languages [J].
Cheng, Betty H. C. ;
Combemale, Benoit ;
France, Robert B. ;
Jezequel, Jean-Marc ;
Rumpe, Bernhard .
GLOBALIZING DOMAIN-SPECIFIC LANGUAGES, 2015, 9400 :1-6
[39]   Modeling Domain-Specific Profilers [J].
Ressia, Jorge ;
Bergel, Alexandre ;
Nierstrasz, Oscar ;
Renggli, Lukas .
JOURNAL OF OBJECT TECHNOLOGY, 2012, 11 (01)
[40]   DOMAIN-SPECIFIC AUTOMATIC PROGRAMMING [J].
BARSTOW, DR .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1985, 11 (11) :1321-1336