Analysis of D GC

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Mon Jun 19 21:54:27 PDT 2017


Dmitry Olshansky wrote:

> My take on D's GC problem, also spoiler - I'm going to build a new one 
> soonish.
>
> http://olshansky.me/gc/runtime/dlang/2017/06/14/inside-d-gc.html

"...the dubious optimization of no interior pointers..."

this is the ONLY (i emphasise it!) way i were able to make my e-mail and 
irc clients to not leak memory, and keep using GC. on 32-bit systems false 
pointers *is* a problem, and NO_INTERIOR really helps.

turning NO_INTERIOR into something dog-slow (or noop) will make D unusable 
on 32-bit systems for anything more complex than helloworld and throwaway 
scripts. particularly, any app that should work for weeks or monthes 
without restart (yep, i want my mail client to Just Work, and i'm not 
rebooting my PC that often) will be *forced* to ditch GC.

while NO_INTERIOR requires some coding discipline, it is invaluable in IRL apps.


More information about the Digitalmars-d mailing list