ranting and raving about the need for data structures

Commander Zot no at no.no
Wed Oct 11 22:35:51 UTC 2023


On Tuesday, 10 October 2023 at 18:00:45 UTC, monkyyy wrote:
> On Tuesday, 10 October 2023 at 15:20:53 UTC, Commander Zot 
> wrote:
>>
>> because even for a circular buffer a single solution is not 
>> enough.
>> you have typed vs unpyped, known length for elements vs 
>> dynamic length, single/multi producer, single/multi consumer, 
>> threat safety, ...
>
> The stated reason is allocators; I believe if the reasoning was 
> typed or void, static or dynamic, you could cover dozens of 
> cases with meta programming that the std likes to over do.
>
> At which point you enumerate these and let people bodge it out, 
> and there would be *progress*, an end point.
>
> Instead theres a dead end project I know of no one caring about 
> and no ones worked on in years, thats stated as a blocker. When 
> I see the work as api design and unit test writing.

i mean, if you think you can write one that covers all the cases, 
go for it. even if it might not end up in std, it would be a 
great addition to dub.
but i honestly don't think it will solve any problems, because 
data structures are just not very generic, and should be 
specialized for the actual problem.


More information about the Digitalmars-d mailing list