[Haskell-cafe] DSL implementation

Kyle Marek-Spartz kyle.marek.spartz at gmail.com
Mon Sep 22 01:31:46 UTC 2014


You may be interested in using C-DSL to generate your DSL’s output. It should keep your output readable.  

https://bitbucket.org/jozefg/c-dsl

–  
Kyle Marek-Spartz
  
  
  
  
  
On Sep 18, 2014, 8:18:10 AM, Dr Christopher Anand <anandc at mcmaster.ca> wrote: Hi Felipe,  

We performed an (unplanned) experiment relevant to your case.  We developed a DSL in Haskell and a library of math functions while IBM was doing the same thing in C.  

http://doi.ieeecomputersociety.org/10.1109/TC.2008.223  

The C library was 4X slower, and less accurate.  

More recently we have wrapped-up a prototype for type-safe physical models and there is a preprint and three example implementations which might be of help in constructing your own.   

http://www.cas.mcmaster.ca/~anand/papers/preprints.html  

Good luck explaining why Haskell is so good for DSLs.  You might find  

http://cacm.acm.org/magazines/2011/7/109910-dsl-for-the-uninitiated/fulltext  

helpful.  

Christopher  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140921/3ded69a3/attachment.html>


More information about the Haskell-Cafe mailing list