Is there any language that native-compiles faster than D?

ketmar ketmar at ketmar.no-ip.org
Wed Aug 26 12:58:38 UTC 2020


Dukc wrote:

> On Wednesday, 26 August 2020 at 04:37:06 UTC, ketmar wrote:
>> H. S. Teoh wrote:
>>
>>>> I wonder if anyone in the D community has the expertise to change
>>>> modify or rewrite DMD's backend to be up to be at most 1.5-2x slower
>>>> at normal, non-SIMD tasks, up to a poor version of LuaJIT or V8 while
>>>> retaining the speed.
>>>
>>> Supposedly Walter is one of the only people who understands the backend
>>> well enough to be able to make significant improvements to it.
>> that's why there is no reason to "improve" current DMD backend at all.
>
> Perhaps we should not be that quick to downplay DMD just because it does 
> not optimize as heavily as GDC and LDC at max settings.
it's not the reason, at least for me. the real reason is that DMD backend 
is virtually impenetrable. it is a giant black box with the label "DO NOT 
ENTER IF YOUR NAME IS NOT WALTER" on its side.

SSA backend is much easier to maintain, much easier to retarget, and 
optimisations over SSA can be nicely layered, from "nothing" to "set of 
aggressive multipass optimisers". the best thing is that those optimisers 
are mostly independent of each other, they only need to maintain SSA 
invariant. so you can write alot of them doing one simple optimisation at a 
time, and run them as long as you want.


More information about the Digitalmars-d mailing list