Nail is a purely declarative query language; Glue is a procedural language used for non-
query activities. The two languages combined are sufficient to write a complete application.
Nail and Glue code are both compiled into the target language IGlue. The Nail compiler
uses variants of the magic sets algorithm and supports well-founded models. The Glue
compiler's static optimizer uses peephole techniques and data flow analysis to improve …