| Embedded typesafe domain specific languages for Java |
| Full text |
Pdf
(346 KB)
|
Source
|
ACM International Conference Proceeding Series; Vol. 347
archive
Proceedings of the 6th international symposium on Principles and practice of programming in Java
table of contents
Modena, Italy
SESSION: Java language issues
table of contents
Pages 189-197
Year of Publication: 2008
ISBN:978-1-60558-223-8
|
|
Authors
|
|
| Sponsor |
|
| Publisher |
|
| Bibliometrics |
Downloads (6 Weeks): 5, Downloads (12 Months): 53, Citation Count: 0
|
|
|
ABSTRACT
Projects like jMock and Hibernate Criteria Query introduced embedded DSLs into Java. We describe two case studies in which we develop embedded typesafe DSLs for building SQL queries and engineering Java bytecode. We proceed to extract several patterns useful for developing typesafe DSLs for arbitrary domains. Unlike most previous Java DSLs we find that mixing the Fluent Interface idiom with static functions, metadata and closures provides for a better user experience than pure method chaining. We also make very liberal use of the Java 5 Generics to improve the type safety properties of the DSLs.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
1
|
J. Aasaru. Typesafe DSL for Relational Data Manipulation in Java. Master's thesis, University of Tartu, 2008.
|
| |
2
|
|
 |
3
|
|
 |
4
|
Björn Bringert , Anders Höckersten , Conny Andersson , Martin Andersson , Mary Bergman , Victor Blomqvist , Torbjörn Martin, Student paper: HaskellDB improved, Proceedings of the 2004 ACM SIGPLAN workshop on Haskell, p.108-115, September 22-22, 2004, Snowbird, Utah, USA
[doi> 10.1145/1017472.1017473]
|
| |
5
|
E. Bruneton, R. Lenglet, and T. Coupaye. ASM: a code manipulation tool to implement adaptable systems. Adaptable and Extensible Component Systems, 2002.
|
| |
6
|
|
| |
7
|
M. Fowler and E. Evans. Fluentlnterface at http://www.martinfowler.com/bliki/FluentInterface.html, 2005.
|
 |
8
|
Steve Freeman , Tim Mackinnon , Nat Pryce , Joe Walnes, jMock: supporting responsibility-based design with mock objects, Companion to the 19th annual ACM SIGPLAN conference on Object-oriented programming systems, languages, and applications, October 24-28, 2004, Vancouver, BC, CANADA
[doi> 10.1145/1028664.1028667]
|
| |
9
|
|
 |
10
|
|
| |
11
|
|
 |
12
|
|
|