Domain-specific languages

Unknown author(s)

2012 · 660 citations · 0 references

Concepts

TL;DR

General‑purpose languages are designed to program any application, but many problems are better expressed with domain‑specific languages tailored to particular domains. A well‑designed DSL should capture precisely the semantics of an application domain, no more and no less. Using an appropriate DSL enables faster and more effective development of complete application programs for that domain compared to a general‑purpose language.

Abstract

When most people think of a programming language they think of a general purpose language: one capable of programming any application with relatively the same degree of expressiveness and efficiency. For many applications, however, there are more natural ways to express the solution to a problem than those afforded by general purpose programming languages. As a result, researchers and practitioners in recent years have developed many different domain specific languages, or DSL’s, which are tailored to particular application domains. With an appropriate DSL, one can develop complete application programs for a domain more quickly and more effectively than with a general purpose language. Ideally, a well-designed DSL captures precisely the semantics of an application domain, no more and no less.