Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129040 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id 434A71A00BC for ; Sat, 1 Nov 2025 13:15:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1762002946; bh=3OdlfjBruJAlHEAGl5CVtTm234whIuE/BJo9sWd7/x4=; h=Date:Subject:To:References:From:In-Reply-To:From; b=bO+Y17a3FWYchMM3Hf7o1XLzSfJ1dXfUdsS96mNfx1TwAyGHeKqKj5tugNKiw1qZa RW+OMuIg7qXBn4DHoZQexHZ0CRd0+D1npHEDCAooU7BBcRCy4Nwu0hMkymT/K9e6mg WR5qV83s96+ocbrx8bIdNPGV9Ttr+X9cC7wy9QqZD0uXF9jZsSXc0GQ4VqTzNn6ON9 e0bIzCFdTv1gUH52O8Y3ejH0V+nSuOSxYM3PEr8RIk8FrDaPJyajK1Z7QlshmCB3xR imSnMJeBWYO61LK+7DtgeLyplOR++uF9PlHbNYJZeyGTMD7WjXHftbmCEA+CHQq6aD tJF8MguSqgQGg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 84F2918003F for ; Sat, 1 Nov 2025 13:15:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_40,DKIM_INVALID, DKIM_SIGNED,DMARC_MISSING,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail.yourprovider.de (mail.yourprovider.de [157.90.159.104]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 1 Nov 2025 13:15:16 +0000 (UTC) Received: from [192.168.178.35] (xdsl-78-35-246-69.nc.de [78.35.246.69]) (Authenticated sender: dennis@birkholz.biz) by mail.yourprovider.de (Postfix) with ESMTPSA id 4F9019C4AE for ; Sat, 1 Nov 2025 14:15:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dennis.birkholz.biz; s=default; t=1762002910; bh=3OdlfjBruJAlHEAGl5CVtTm234whIuE/BJo9sWd7/x4=; h=Date:Subject:To:References:From:In-Reply-To:From; b=M2wiRxW6uB0KTWcTeG7LL4SotJQ5AJBn67ol9JdR0+22e1WkPAa1Keq/9ahxMe6zp B/qXq2Z0wStvsWtVVsz8S4MrvAXSU7MKTOBFQRIrJYomtdnrHbsTPup7DItn+O/gFB pjcwrRfjbjL+oVTYIYfvmyh1uSxvjlLz/nR3YFl0UV/3NM/yc1z+yFKHOYqofprnmu Yov4d6TcwvJj3By+Wtu86FwODhp7zbCEEUkisE8TK6W71qVk9SkgwXaRNasLcbv24j qbTIH8i4O8FpwZwXNyjb3zgf5gEnU8vk2hEcfUoRPSi4P4DofxuAmQ7dT2drpU6JQM yqQrldwYFP1Mw== Message-ID: Date: Sat, 1 Nov 2025 14:15:09 +0100 Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] PHP True Async RFC Stage 5 To: internals@lists.php.net References: <2441aa9c-41c8-4ce1-b9c0-67136e5f97da@dennis.birkholz.biz> Content-Language: de-DE, en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: php@dennis.birkholz.biz (Dennis Birkholz) 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