Isn't it about time for D3?

Nick Treleaven via Digitalmars-d digitalmars-d at puremagic.com
Mon Jun 19 01:45:12 PDT 2017


On Wednesday, 14 June 2017 at 12:08:16 UTC, Mike wrote:
> * Drop the GC or at a minimum make it opt-in.  Add a borrow 
> checker, automatic reference counting, or some other GC 
> alternative that doesn't require a separate thread.

AIUI D's GC doesn't use a separate thread:
https://dlang.org/spec/garbage.html#how_gc_works

"1. Stopping all other threads than the thread currently trying 
to allocate GC memory.
2. ‘Hijacking’ the current thread for GC work."

An earlier bullet point is confusing:
"Normally, all threads other than the collector thread must be 
halted while the collection is in progress."

Probably 'other than the collector thread' should be removed - 
'collector thread' implies asynchronous collections.


More information about the Digitalmars-d mailing list