D on next-gen consoles and for game development

Michel Fortin michel.fortin at michelf.ca
Thu May 30 10:49:36 PDT 2013


On 2013-05-30 12:04:09 +0000, "Diggory" <diggsey at googlemail.com> said:

> If you can modify the DMD compiler to output a special sequence of 
> instructions whenever you assign to a pointer type then you can do a 
> concurrent/incremental GC with minimal OS or hardware support.

This also happens to be the same requirement for automatic reference 
counting. I thought about implementing that for my D/Objective-C 
compiler (which is stalled since a while). The job isn't that big: just 
replace any pointer assignments/initialization by a call to a template 
function (that can be inlined) doing the assignment and it becomes very 
easy to implement such things by tweaking a template in druntime.

-- 
Michel Fortin
michel.fortin at michelf.ca
http://michelf.ca/



More information about the Digitalmars-d mailing list