Complex Meta Programming

BCS ao at pathlink.com
Sun May 18 19:07:42 PDT 2008


Reply to Chris,

> Manfred Nowak wrote:
> 
>> In http://www.digitalmars.com/webnews/newsgroups.php?
>> art_group=digitalmars.D.learn&article_id=12478
>> BCS describes an example for which more complex features in the
>> metalanguage seem to be a requirement, if one wants to have short
>> compile times.
>> Is the current approach good enough?
>> 
>> -manfred
>> 
> If you could do everything at runtime, you could store the results as
> you chose. Then you would get significantly better runtime in many
> cases, as well as enabling some things that aren't currently possible.
> 
> Of course, if you could simply store results at compiletime instead,
> you'd get the same benefits.
> 

IMNSHO within reason, compile times are not an issue. The longest compile 
time I've seen with DMD (dparse processing the full D grammar so I don't 
expect to see it go much higher) was 14min. That's about par for finding 
bugs. I'm willing to run with longer compile times if it generates faster 
or more bug free code.

The only reason I'll back a change in meta land would be to make more robust, 
readable or capable code.





More information about the Digitalmars-d mailing list