On Thursday, 10 July 2025 at 14:28:31 UTC, Bienlein wrote:
Thanks, Jonathan. The send and receive functions might do the job for some specific purpose, but I would like to have some general blockinglist class like an abstract data type.
It sounds like you have in mind shared memory coding techniques. If you haven't yet, I suggest you write a number of applications in this style before you settle on an API. D's view of multi-threaded shared memory is much less casual than what you're accustomed to in, say, C. You can indeed write all the usual types of shared memory algorithms, but if your experience is like mine, the presence of the type system (and the "shared" type modifier) will make it a much more demanding experience.
And thus, by default, you'll often find recommendations leading to messaging rather than shared memory.
$0.02, Andy