Why is D's GC slower than GO's?

Adam D Ruppe destructionator at gmail.com
Mon Oct 31 16:46:20 UTC 2022


On Sunday, 30 October 2022 at 02:15:06 UTC, Walter Bright wrote:
> Besides, if it was so easy to do, why has nobody produced a C 
> compiler that uses a GC instead of malloc/free?

Well, it has been done with Bohem.

But anyway I wrote up my sketch design in my blog:
http://dpldocs.info/this-week-in-d/Blog.Posted_2022_10_31.html


It is more like bounds checking than a new type. Sure, I do 
propose a new type, but just to locally bypass the thing, not as 
something mandatory. With a compiler switch, you can turn it on 
or off to experiment with different strategies.


More information about the Digitalmars-d mailing list