CTFE Status
Stefan Koch via Digitalmars-d
digitalmars-d at puremagic.com
Mon Jan 2 14:43:21 PST 2017
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.
More information about the Digitalmars-d
mailing list