Civility

mee6 mee6 at lookat.me
Sun Jun 26 11:51:31 UTC 2022


On Saturday, 25 June 2022 at 13:14:46 UTC, Ola Fosheim Grøstad 
wrote:
> On Saturday, 25 June 2022 at 12:56:37 UTC, mee6 wrote:
>> D has a worse GC than java, that's a fact. You can do manual 
>> memory management in D, even though it isn't really supported 
>> by its own feature set. Using something like C++ and Java 
>> together is the better option as it provides the best of both 
>> worlds. Like what Android did. D went a direction that 
>> provides a worse GC without providing the tools needed for the 
>> alternative it claims to support.
>
> IIRC Atila Neves has expressed some positivity towards having 
> some kind of actor model with local GC per actor in the forums. 
> That in combination with ARC for shared objects could be an 
> interesting direction.
>
> Applications have to be given control over scheduling though, 
> and actors should be written to have short life times so that 
> you can bypass garbage collection as long as you have low 
> memory usage. (The GC heap then becomes an area-collector in 
> practice, so everything is freed wholesale when the actor 
> dies.).
>
> LLVM also makes it possible to do 100% precise collection, but 
> the current blocker is the C union. It would also help to ban 
> destructors on GC-allocated objects.
>
> So the main issue isn't that there are no options, but that 
> there are no signs of future movement towards something better 
> beyond those very sparse positive bleeps from Atil

All of the options you mentioned probably won't happen, 
especially the LLVM option is never going to happen.


More information about the Digitalmars-d mailing list