Sharding Phobos an alternative to sharding druntime

Alexandru Ermicioi alexandru.ermicioi at gmail.com
Sat Jun 22 08:16:52 UTC 2024


On Friday, 21 June 2024 at 16:39:43 UTC, Richard (Rikki) Andrew 
Cattermole wrote:
>
> I proposed this many many months ago, right back at the start 
> of PhobosV3 work that we "shard" Phobos, of course back then I 
> didn't call it as such.

Those shards might also be published on dub. This could in 
principle allow patches and improvements to shards without 
waiting for D release.

Each shard could have it's own versioning, and releases, so 
people needing a change won't need to wait much.

There might also be a meta package that imports other shards, and 
is locked with D release versions. This meta package would sort 
of work like bom projects in maven, i.e. it's dependencies would 
specify versions of shards that are guaranteed to work with 
specific D version.

Ofc, a reference phobos version should be shipped with D 
installation. The build system for D installers could then just 
pull a version of phobos meta package and include it as part of D 
installers.

Note: it would be nice if in dub you could specify the language 
version the library was written in. This defined on shards would 
also allow easier phobos meta package build.


More information about the Digitalmars-d mailing list