
On 12/10/10 18:40, Simonson, Lucanus J wrote:
Having done expression templates and meta programming (including expression templates for vector primitives) I can honestly say that I wouldn't want to implement an optimizing compiler as a template meta-program. It would be a very tedious and painful task with the end result being something that is thoroughly impractical due to long compile times and the impossibility of maintaining it.
Really ? try perusing proto to its fullest, it's not that hard to maintain as soon as oyu have a neat generic package around and use it to geenrate a proper intermediate representation of your code fragment.
It could not compete with the quality and speed of compilers programmed in C.
Compile time is an expendable ressources, runtime is not.