Loading...
Please wait, while we are loading the content...
Similar Documents
Directembedding: Concealing the Deep Embedding of DSLs
| Content Provider | Semantic Scholar |
|---|---|
| Author | Geirsson, Ólafur Páll |
| Copyright Year | 2015 |
| Abstract | Authors of embedded domain-specific languages (EDSLs) commonly struggle to find the right balance between the capability and usability of their DSL. On one hand, deeply embedded DSLs give great power to the DSL author but have a steep learning curve for end users. On the other hand, shallowly embedded DSLs are more limiting for the DSL author but offer a more familiar interface to the end users that enables them to quickly become productive with the DSL. This report presents work on Directembedding, a Scala library to implement a thin user-friendly layer on top of an existing deeply embedded DSL1. The library accomplishes this using annotations and macros, and requires little to no knowledge of the Scala reflection API. We used Directembedding to implement slick-direct, a front-end for the functional relational mapping library Slick. Leveraging Directembedding features, slick-direct is able to support a large feature set of Slick in under 300 lines of code. |
| File Format | PDF HTM / HTML |
| Alternate Webpage(s) | https://geirsson.com/assets/directembedding-beamer.pdf |
| Alternate Webpage(s) | https://geirsson.com/assets/directembedding-report.pdf |
| Language | English |
| Access Restriction | Open |
| Content Type | Text |
| Resource Type | Article |