Componentizing D's garbage collector

Walter Bright newshound2 at digitalmars.com
Tue Jan 14 14:10:18 PST 2014


On 1/14/2014 1:10 PM, Benjamin Thaut wrote:
> Am 14.01.2014 21:28, schrieb Walter Bright:
>> On 1/14/2014 3:02 AM, Benjamin Thaut wrote:
>>> Am 14.01.2014 11:05, schrieb Walter Bright:
>>>> This is not true, I've implemented one for Java.
>>>
>>> So how do you implement a semi-space GC with pinned objects?
>>
>> Be more flexible in what the semi-spaces are.
>
> So you just don't. Effectivley you work around the problem.

My experience with book algorithms is they usually require some adjustments when 
working with real problems in the real world. I was well aware of how moving GCs 
worked when I set the semantics of D objects, since I'd implemented one, and was 
careful to make them possible with D.


> I would still prefer that specifing a scanning function for unions becomes mandatory.

I already agreed that there are better ways.



More information about the Digitalmars-d mailing list