Hi Edmond,

thank you for your reply.

Am 01.11.25 um 8:32 AM schrieb Edmond Dantes:
A Fiber in PHP is a context that stores a pointer to the C stack, CPU
registers, and part of the VM state, combined with a generator.
Fibers cannot be used as coroutines because this approach is
inefficient in terms of performance and memory.
The reason is that a Fiber is an extremely low-level primitive — only
slightly higher than assembly.

Therefore, Fibers violate the **Strict Layering** principle ...

From the standpoint of PHP language user, I have a completely different view on Fibers vs. Corotines. They look very similar from the outside and if we talk about abstractions, that is the point that matters as the inner workings are hidden.

I really belief we should avoid fragmentation and enhance/adjust Fibers to meet the memory and performance requirements of a Coroutine.

Thanks
Dennis

Reply via email to