Sharding Phobos an alternative to sharding druntime

Paolo Invernizzi paolo.invernizzi at gmail.com
Sun Jun 23 15:59:59 UTC 2024


On Saturday, 22 June 2024 at 10:28:10 UTC, Richard (Rikki) Andrew 
Cattermole wrote:
> On 22/06/2024 8:37 PM, Paolo Invernizzi wrote:
>> Independent ... but with dependency?
>> The impression is that everything in D-lanD is moving towards 
>> an over-eng complexity ...
>
> No no.
>
> Its literally just the event loop shard depends upon base shard.
>
> Explicit dependencies, no accidental importing something that 
> you shouldn't be able to without clear stated intention.
>
> This is a key goal of PhobosV3 work, was to break the 
> interdependencies of modules.

I still think it's over-eng.

Indirect dependencies of module are direct dependencies of the 
imported module, that means that the opinion is that the imported 
module is using another module without a valid good reason. So, 
the only thing to do is "just" (well, "just" ...) improve the 
quality of imported module itself, cleaning it. Why is it 
necessary to have another abstraction, shard, in a already 
complicated language like D?

Another thing is the policy to "forbid the usage of a module" in 
a project. For example, we forbid to import directly "std.stdio", 
but the task is handled by our custom builder, that just enforce 
that.


More information about the Digitalmars-d mailing list