Publication | Open Access
Domain specific embedded compilers
249
Citations
10
References
1999
Year
Unknown Venue
EngineeringForeign Function CallCompiler TechnologyComputer ArchitectureSoftware EngineeringEmbedded SystemsSoftware AnalysisFormal VerificationDomain SpecificDependently Typed ProgrammingCompilersDynamic CompilationCompiler SupportSql QueriesComputer EngineeringComputer ScienceDomain-specific LanguageExtensible LanguageFunctional ProgrammingSoftware DesignFunctional Programming LanguageProgram AnalysisFormal Methods
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.
| Year | Citations | |
|---|---|---|
Page 1
Page 1