We all know what a DSL is, so what's about a domain specific compiler (DSC)?
I've just accidentally seen Grails 1.0-RC1's been invoking its compiler during my work. So I think it's possible to have a DSC to support Grails in someway. It could be definitely based on the Groovy compiler with addition Grails knowledge. For example, in a Grails controller, we can use "render" method to render things like XML, JSON. What if we can compile this render block into a real XML, or JSON chunk embedded in the controller, rather than invoking the dynamic method.
In the development time, we've got Grails running fine and it offers us a great rapid environment. So we just keep using the original Groovy here. And if we have DSC, and it works just before grails war, then our Grails apps performance will be really great during its execution.
Wednesday, November 07, 2007
Does Grails need a real compiler?
Posted by chanwit at 4:48 AM
Labels: Grails, Groovy, Optimisation
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment