Do you think if statement as expression would be nice to have in D?

Guillaume Piolat first.last at gmail.com
Tue Jun 7 09:41:43 UTC 2022


On Tuesday, 7 June 2022 at 08:44:27 UTC, max haughton wrote:
> dmd should just focus on being the debug compiler i.e. be fast. 
> I would much rather have the codebase be clean enough that I 
> could easily get it generating code on my AArch64 Mac than have 
> it chase after being able to do xyz. I will never actually care 
> about dmds ability to optimize something.

I did left DMD because of unreliable codegen. But I do miss the 
build times dearly.
It seems to me things are actually getting better in DMD over 
time and my pan is to enable D_SIMD in intel-intrinsics ASAP (or 
at least try).
The reason is that DMD generates surprisingly usable code in no 
time when you use D_SIMD.
Builtins like in D_SIMD are interesting because they require less 
optimizer busy work,
making it especially useful for debug builds.

But, yeah, it's not sure the improved performance is worth the 
backend churn, just for debug builds, so not sure.


More information about the Digitalmars-d mailing list