Phobos v3 idea: File interface
Paul Backus
snarwin at gmail.com
Fri Sep 20 17:34:48 UTC 2024
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).
More information about the Digitalmars-d
mailing list