Memoization in DMD

via Digitalmars-d digitalmars-d at puremagic.com
Sun Jul 6 14:08:52 PDT 2014


On Sunday, 6 July 2014 at 20:34:31 UTC, Nordlöw wrote:
> Generated machine code.

You can detect similarities on the AST level, but that demands 
some kind of normalization process which may or may not work out 
for the language. More likely to work of for functional style 
generic code than optimized imperative code.

For floating point it becomes especially problematic since 
reordering changes the result accuracy.


More information about the Digitalmars-d mailing list