On Monday, 2 January 2017 at 21:52:05 UTC, Meta wrote:
There's something I've been wondering about. NewCTFE is
basically just another backend, right? Does this mean that
you'll have to implement various optimizations such as
tail-call elision independently from what DMD with the default
backend currently does?
Yes, I could borrow analysis passes from dmd however to check if
the optimization is applicable.
However I do not intend to do so.
CTFE is mostly used for small one-shot things.
There is no point in eliding calls.
Executing the code as soon as possible is often faster then doing
the optimization.