core.thread.Fiber --- runtime stack overflow unlike goroutines

Carl Sturtivant via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Aug 15 13:09:26 PDT 2014


On Thursday, 14 August 2014 at 18:52:00 UTC, Sean Kelly wrote:
> On 64 bit, reserve a huge chunk of memory, set a SEGV handler 
> and commit more as needed. Basically how kernel thread stacks 
> work. I've been meaning to do this but haven't gotten around to 
> it yet.

Very nice; the hardware VM machinery takes care of it and there's 
only overhead when overflow occurs. D's Fibers will really be 
something remarkable for user-space with this facility.


More information about the Digitalmars-d-learn mailing list