[SAOC 2026] DMD CTFE Performance Weekly Update #6

Abul Hossain Khan abulkhan19175 at gmail.com
Mon Nov 16 16:56:53 UTC 2026


Hi everyone,

This one covers the last week and a half.

#### The design doc

The design doc for the CTFE interface is done.

In short: an engine gets a whole top-level call (the function and 
its arguments) and gives back the result, or says no and the AST 
interpreter runs it like today. `ctfeInterpret` and its call 
sites don't change. Values cross as `Expression`, and the doc 
writes down which node each type comes as.

Stefan and Dennis both reviewed it. Stefan pointed out that the 
ABI should be documented, so I added that. One thing that came 
out of both reviews is that we need to get rid of semantic during 
CTFE. That is a hard job though, so it is for later.

#### First Step

https://github.com/dlang/dmd/pull/24365

#### CTFE bug fixes


- https://github.com/dlang/dmd/pull/24217
- https://github.com/dlang/dmd/pull/24230
- https://github.com/dlang/dmd/pull/24246
- https://github.com/dlang/dmd/pull/24248
- and cauple of more


#### What's next

- The hook for top-level calls, with a small test engine.
- The rest of the bug list on the side.

Thanks to Dennis and Stefan for the reviews. As always, feel free 
to leave any feedback or suggestions!



More information about the Digitalmars-d mailing list