![]() |
Optimising Embedded DSLs using Template Haskell |
Speaker: Sean Seefried (University of New South Wales)
When: 4:00, Friday, 22 October 2004
Venue: 78-622
Embedded domain specific languages (EDSLs) provide a specialised language for a particular application area while harnessing the infrastructure of an existing general purpose programming language. The reduction in implementation costs that results from this approach comes at a price: the EDSL often compiles to inefficient code since the host language's compiler only optimises at the level of host language constructs. In this talk I will present an approach to solving this problem based on compile-time meta-programming which retains the simplicity of the embedded approach. I'll use PanTHeon, my implementation of an existing EDSL for image synthesis to demonstrate the benefits and drawbacks of this approach. Additionally I will suggest potential improvements to Template Haskell, the meta-programming language, which would greatly improve its applicability to this kind of task.
Hospitality: Phil Cook
Contact: Phil Cook (SSE seminar co-ordinator) (philc@itee.uq.edu.au)
SSE seminar web page: http://www.itee.uq.edu.au/~sse/Seminars.html

