Really Embedding Domain-Specific Languages into C++
Preprint
Abstract
Domain-specific languages (DSLs) are both pervasive and powerful, but remain difficult to integrate into large projects. As a result, while DSLs can bring distinct advantages in performance, reliability, and maintainability, their use often involves trading off other good software-engineering practices. In this paper, we describe an extension to the Clang C++ compiler to support syntax plugins, and we demonstrate how this mechanism allows making use of DSLs inside of a C++ code base without needing to separate the DSL source code from the surrounding C++ code.Keywords
All Related Versions
This publication has 14 references indexed in Scilit:
- Compressing deep neural networks by matrix product operatorsPhysical Review Research, 2020
- XACC: a system-level software infrastructure for heterogeneous quantum–classical computingQuantum Science and Technology, 2020
- Matrix product operators, matrix product states, and ab initio density matrix renormalization group algorithmsThe Journal of Chemical Physics, 2016
- Tree tensor networks and entanglement spectraPhysical Review B, 2013
- Efficient tree tensor network states (TTNS) for quantum chemistry: Generalizations of the density matrix renormalization group algorithmThe Journal of Chemical Physics, 2013
- Matrix product states, projected entangled pair states, and variational renormalization group methods for quantum spin systemsAdvances in Physics, 2008
- Entanglement RenormalizationPhysical Review Letters, 2007
- Kranc: a Mathematica package to generate numerical codes for tensorial evolution equationsComputer Physics Communications, 2006
- Tensor Contraction Engine: Abstraction and Automated Parallel Implementation of Configuration-Interaction, Coupled-Cluster, and Many-Body Perturbation TheoriesThe Journal of Physical Chemistry A, 2003
- ANTLR: A predicated‐LL(k) parser generatorSoftware: Practice and Experience, 1995