Re: PHP True Async RFC Stage 5

From: Date: Sat, 01 Nov 2025 13:15:09 +0000
Subject: Re: PHP True Async RFC Stage 5
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-129040@lists.php.net to get a copy of this message
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

Thread (71 messages)

« previous php.internals (#129040) next »