Domain specific embedded compilers
Daan Leijen, Erik Meijer · 1999
Domain-specific embedded languages (DSELs) expressed in higher-order, typed (HOT) languages provide a composable framework for domain-specific abstractions. Such a framework is of greater utility than a collection of stand-alone domain-specific languages. Usually, embedded domain specific languages are build on top of a set of domain specific primitive functions that are ultimately implemented using some form of foreign function call. We sketch a general design pattern/or embedding client-server style services into Haskell using a domain specific embedded compiler for the server's source language. In particular we apply this idea to implement Haskell/DB, a domain specific embdedded compiler that dynamically generates of SQL queries from monad comprehensions, which are then executed on an arbitrary ODBC database server.
Cited by 249 works. doi:10.1145/331960.331977 Open-access PDF
Authors
References
- STANDARD FOR THE FORMAT OF ARPA INTERNET TEXT MESSAGES
- The next 700 programming languages
- Simple Mail Transfer Protocol
- Imperative functional programming
- Introduction to Database Systems
- AntiPatterns: Refactoring Software, Architectures, and Projects in Crisis
- Inside COM
- Comprehension syntax
- An introduction to Database Systems, 8th ed
- Modular domain specific languages and tools