Automatic compiler/interpreter generation from programs for Domain-Specific Languages: Code bloat problem and performance improvement

Željko Kovačević,Miha Ravber,Shih-Hsi Liu,Matej Črepinšek
DOI: https://doi.org/10.1016/j.cola.2022.101105
IF: 1.778
2022-06-01
Journal of Computer Languages
Abstract:Using advanced AI approaches, the development of Domain-Specific Languages (DSLs) can be facilitated for domain experts who are not proficient in programming language development. In this paper, we first addressed the aforementioned problem using Semantic Inference. However, this approach is very time-consuming. Namely, a lot of code bloat is present in the generated language specifications, which increases the time required to evaluate a solution. To improve this, we introduced a multi-threaded approach, which accelerates the evaluation process by over 9.5 times, while the number of fitness evaluations using the improved Long Term Memory Assistance (LTMA) was reduced by up to 7.3%. Finally, a reduction in the number of input samples (fitness cases) was proposed, which reduces CPU consumption further.
computer science, software engineering
What problem does this paper attempt to address?