First-Class Runtime Generation of High-Performance Types Using Exotypes [pdf]
theory.stanford.edu
theory.stanford.edu
Terra seems to grant a lot of the benefits of writing a compiler for your problem with much less of the pain. A high-level dynamic language for metaprogramming and scaffolding paired with a low-level static language for performance-critical sections.