Phobos v3 idea: File interface

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Fri Sep 20 18:03:28 UTC 2024


On 21/09/2024 5:34 AM, Paul Backus wrote:
> On Thursday, 19 September 2024 at 21:43:42 UTC, Richard (Rikki) Andrew 
> Cattermole wrote:
>> System handles must be deterministically cleaned up. If you do not do 
>> this, you can run out of handles and then crash.
>>
>> This is very easy especially for the 100k req/s target, think 10 
>> seconds, not 2 minutes to run out of handles.
>>
>> I am very willing to say, that RC types cannot go into GC memory (the 
>> memory itself can be GC, but the cleanup must be done via RC).
>>
>> Right now RC is blocked by Walter on owner escape analysis. This is 
>> why I'm pushing so hard on this design wise currently.
> 
> I don't see why this has to be a hard blocker. D is already perfectly 
> capable of using RC for the object lifetime (construction and 
> destruction) and GC for the memory lifetime (allocation and deallocation).

For structs yes.

But this thread is all about system handles being owned by classes, 
which don't offer this capability (currently).


More information about the Digitalmars-d mailing list