What's the current state of the art for module compilation?

monkyyy crazymonkyyy at gmail.com
Thu Nov 19 03:20:24 UTC 2026


On Thursday, 19 November 2026 at 02:17:43 UTC, Walter Bright 
wrote:
> On 11/17/2026 3:55 PM, David Given wrote:
>> - .di files are not to be trusted, as even though the compiler 
>> will generate them, it will silently break things like 
>> templates and functions which return auto.
>
> Is there an issue filed for that?

Theres an issue of poor communication, the existence of .di files 
implies theres magic linking systems that cant exist.

While your not necessarily at fault of the world still using 
ancient c abi, and computer science education not understanding 
linking as an old layers of the pile of historical design. I only 
know about the logical conclusion of how linking and template 
inits must be related by my method of learning(which distinctly 
is not everyone elses suggestion "read the docs")

https://dlang.org/dmd-linux.html#interface-files these are 
"declarative" docs when system are imperative machines, theres 
nothing in there to communicate the mental model of *why*; its 
just the (dubious) claim "it makes compiling faster"

> D interface files are often significantly smaller and much 
> faster to process than the corresponding D source file.

would just be false for anything I write, cause templates. Im 
sure bits and pieces are all in there, but do we actually have 
anywhere that attempts to explain linking vs templates?


More information about the Digitalmars-d mailing list