John Lam got in contact with me about code generation last night. He pointed me towards GSLgen, which I had never heard of. I contact the author of GSlgen to get some information and in return got a full article about code generation, and an offer on the content for half of a book! Amazing.