What are AST Macros?

bearophile bearophileHUGS at lycos.com
Tue Jul 13 01:58:04 PDT 2010


Don:
> CTFE isn't intrinsically slow. The reason it's so slow in DMD right now 
> is that the treatment of CTFE variables is done in an absurdly 
> inefficient way.

Are those arrays managed like immutable arrays in a functional language? :-)
To implement mutable arrays with an immutable data structure you need a GC designed for it (like the Haskell one) and a different underlying implementation, like a finger tree, that avoids most of the copying and allocations :-)

Bye,
bearophile


More information about the Digitalmars-d mailing list