Re: add Fiber (sackful coroutine) support

From: Date: Sat, 09 Sep 2017 06:07:38 +0000
Subject: Re: add Fiber (sackful coroutine) support
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-100479@lists.php.net to get a copy of this message
> On 1 Sep 2017, at 22:25, Niklas Keller <me@kelunik.com> wrote: > > A potential way around that (might be a stupid idea I just had): Allow > defining "wrappers" per file, that auto-wrap marked functions. Amp need these wrapper functions because we cannot yield a generator from its sub function call. So if we introduce fiber, these wrapper is needless. > > I don't see an event loop or promises being built-in soon, but something > like that could provide async with userland magic. Not the best > thing, > but maybe better than preprocessing, don't know. Fiber is asymmetric coroutine, and the PHP kernel has no duty to schedule them. So a built-in event loop is no needed.

« previous php.internals (#100479) next »