Executing pure D at compile-time - Someone needs to write a D interpreter using templates!

Tom S h3r3tic at remove.mat.uni.torun.pl
Thu Feb 8 13:01:01 PST 2007


Chad J wrote:
> Hmmm, why doesn't someone write a D interpreter using templates?


I'd say it's impractical with the current implementation of templates. 
Each template instantiation is remembered. You can't just run stuff and 
forget about it. Think, hundreds of megs of ram to 'interpret' a simple 
program. That's one of the reasons why ctrace runs so bloody slow :P


--
Tomasz Stachowiak



More information about the Digitalmars-d mailing list