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

monkyyy crazymonkyyy at gmail.com
Tue Nov 24 15:54:56 UTC 2026


On Tuesday, 24 November 2026 at 12:39:39 UTC, user1234 wrote:
> On Tuesday, 24 November 2026 at 05:04:34 UTC, monkyyy wrote:
>> On Tuesday, 24 November 2026 at 03:01:21 UTC, user1234 wrote:
>>> On Monday, 23 November 2026 at 05:55:49 UTC, monkyyy wrote:
>>>>
>>>> "once a project gets big enough it becomes reasonable to ask 
>>>> 8 women to have 1 baby in 8 months". No the natural 
>>>> conclusion of how they are solving that problem is to expect 
>>>> medical malpractice.
> So the problem is now "speculative instantiation" and not "the 
> C linkers".

Its always been templates *vs* linkers 
https://forum.dlang.org/post/ikuzqeynqbdxzlyjnrvw@forum.dlang.org

A compiler produces blocks of asm with some kind of lookup, the c 
abi assumes an eager compiler that gives a pile of all possible 
code blocks, templates are lazy in how they generate code blocks.

Push vs pull logistics, compression vs tension of materials; 
theres some fundamental law here. A linker and template initing 
are dealing with the same material, labeling code blocks and 
adding them to an asm translation todo list, but have different 
directionality.

A naive non-unified compile is pushing a rope. Whichever the 
members of the community who manage to get 1 hour compile times 
and blame it on templates, while Im using template bugs to make 
mutable compile time state with fast compiles; have a stupid 
mental model to this system.

The compiler initing templates and linking are both imparitive 
process that have not changed meaningfully but the docs prefer 
being declarative and avoid communicating rather simple details 
about how it must work. Im going to cast pearls before swine, 
before we have yet another lost soul happy with their 5 minute 
dub compile time.


More information about the Digitalmars-d mailing list