Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113489 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 35467 invoked from network); 11 Mar 2021 23:44:06 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 Mar 2021 23:44:06 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 007BA1804B4 for ; Thu, 11 Mar 2021 15:36:43 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mercury.negativeion.net (mercury.negativeion.net [199.38.81.6]) by php-smtp4.php.net (Postfix) with ESMTP for ; Thu, 11 Mar 2021 15:36:43 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by mercury.negativeion.net (Postfix) with ESMTP id A15AD20CC235BD; Thu, 11 Mar 2021 18:36:42 -0500 (EST) Received: from mercury.negativeion.net ([127.0.0.1]) by localhost (mercury.negativeion.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FXlDHYWqhGDz; Thu, 11 Mar 2021 18:36:42 -0500 (EST) Received: from [10.0.1.101] (unknown [173.225.146.47]) by mercury.negativeion.net (Postfix) with ESMTPSA id 1F3F320CC235A6; Thu, 11 Mar 2021 18:36:42 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) X-Priority: 3 In-Reply-To: Date: Thu, 11 Mar 2021 17:36:41 -0600 Cc: PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: <303A46ED-EB81-40D3-828A-2033BA3E4762@trowski.com> References: To: Ben Ramsey X-Mailer: Apple Mail (2.3608.120.23.2.4) Subject: Re: [PHP-DEV] [VOTE] Fibers From: aaron@trowski.com (Aaron Piotrowski) > On Mar 11, 2021, at 10:41 AM, Ben Ramsey wrote: >=20 >> On Mar 11, 2021, at 10:29, Aaron Piotrowski = wrote: >>=20 >> There is not an internal API to create fibers at this time. However, = I planned to collaborate with other internals developers to add this API = (and of course with feedback from swoole developers), so this will be a = feature available to PHP extensions. >>=20 >=20 >=20 > I know voting is currently on-going, but would it be out of order to = add a section to the RFC that states what you=E2=80=99ve said here? >=20 > Cheers, > Ben >=20 Hi Ben, I think this is appropriate, as it is merely adding information to the = RFC to answer a question that was raised on the list. I added a =E2=80=9CFuture Scope=E2=80=9D section with the following = text: The current implementation does not provide an internal API for fibers = for PHP extensions. This RFC focuses on the user space fiber API. An = internal fiber APIwill be added, collaborating with other internal = developers and using feedback from PHP extension developers, including = Swoole, so fibers can be created and controlled from PHP extensions. An = extension may still optionally provide their own custom fiber = implementation, but an internal API would allow the extension to use the = fiber implementation provided by PHP. Cheers, Aaron Piotrowski