Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128841 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 76E7C1A00BC for ; Wed, 15 Oct 2025 06:44:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1760510691; bh=ba68+IKyRDi6WQWTHMEA11/OusEhQOZnpqiihLp7KS0=; h=Date:From:To:In-Reply-To:References:Subject:From; b=TSS+0MLeC3tiBe6G2vtJ5f1Ql4vxs0gvZRUPM1KNIympv+UMYSvLBMv8iZ9G0bCjw NhC+xhNXPrOcYgsX17WFINn2wbgzZbYVl0+scmRc8mybcHOBA/och6tTNHqD8lYLRA aeH3HTUE5/Qgo0vfw+4EJlzSqlmZ1bR1zwNrNnM4d3q/4XB/zyl82ctiDNv9qGdcR6 qid+hndnfoOB202AwXSRUbsqMVPbbZfirqC3Ztm0qk2yXGZivT6OZ7TPA/dz2y0yre 3CBNSjBVVzHlbg8VDnlSJhARk288az+fY452QcmI7jHG5Xc98CQeDAwcRxxEI/twgt Fw5hKb5Ui0h7A== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 15D6D180032 for ; Wed, 15 Oct 2025 06:44:50 +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=-1.4 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,HTML_MESSAGE, RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from fhigh-a5-smtp.messagingengine.com (fhigh-a5-smtp.messagingengine.com [103.168.172.156]) (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 ; Wed, 15 Oct 2025 06:44:49 +0000 (UTC) Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfhigh.phl.internal (Postfix) with ESMTP id ECDC61400129 for ; Wed, 15 Oct 2025 02:44:43 -0400 (EDT) Received: from phl-imap-05 ([10.202.2.95]) by phl-compute-05.internal (MEProxy); Wed, 15 Oct 2025 02:44:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bottled.codes; h=cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1760510683; x=1760597083; bh=ba68+IKyRD i6WQWTHMEA11/OusEhQOZnpqiihLp7KS0=; b=NyeliAgxYGui6eSdY1cXCGFs6j Le1abihMXbaYuMP9IyWzmmxXxxa9mtSr5YfpFlbomEp4HVYSq/sL5bRCl1oiPlvN /t0/YWQjhKJmnHDUxCq+gRZk55Z4/IIDTNpzXVBhmPMfvfl3HXar0TjGEVguMPgM rEYuxOZu/Iap78MtRJM4w6LFnrlNakzcrvRHwVsK+o0L1DcSHkSfSY44G43QJnlD ZPNJO3msO8u+ETXfJsoOEmJ0AX2KfwPUWVMLRgcOhXKS3cKtHbv5P28bfGljgAo0 kvEKfnijYXP9SHQtfNHxwTXMoWvWAwSvMVMtVGxEnPRtdLMNe4KElKIm3ZtA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1760510683; x=1760597083; bh=ba68+IKyRDi6WQWTHMEA11/OusEhQOZnpqi ihLp7KS0=; b=KtsvjyT3R4Rt0jkBov+/PbnkuqAjjjigdjkTOKqgEvPU4UrPqTx 4Y9AqkZNGqmcA2/8W6EcSKQ9LrrckzEIOFs9/BlwrHOCFeajOcdbLrJ9zXrSDGHJ eQi+AHfeETvivM13N4SpraNPlms9saEo3ZUfN59xLb3zDPl1bIahFMHQzXbBUlkM v1bej0ue0XqJghpDPMY7snIs3e+oET7tFaKwMPfDucERXJmUe6j2kXLKFPgI2ipj e/aJSCpLvSU57CfQfDNQSExiyJXZNM9WxqK4myvclenvPxX+vFWERMh69li6jfEA dlt+ELfYuh5sd7EVMTo8SDMGfzM67+nHORw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdduvddvjedvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpefoggffhffvkfgjfhfutgesrgdtreerre dtjeenucfhrhhomhepfdftohgsucfnrghnuggvrhhsfdcuoehrohgssegsohhtthhlvggu rdgtohguvghsqeenucggtffrrghtthgvrhhnpeehieffkeetleejueefjeffueffheevud fgteevfeeijeevfffhhfegueetteffleenucffohhmrghinhepphhhphdrnhgvthdpghhi thhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomheprhhosgessghothhtlhgvugdrtghouggvshdpnhgspghrtghpthhtohepuddp mhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepihhnthgvrhhnrghlsheslhhishhtsh drphhhphdrnhgvth X-ME-Proxy: Feedback-ID: ifab94697:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 793DC1820054; Wed, 15 Oct 2025 02:44:43 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 X-ThreadId: AG5VjklPAjNR Date: Wed, 15 Oct 2025 08:44:23 +0200 To: internals@lists.php.net Message-ID: In-Reply-To: References: Subject: Re: [PHP-DEV] PHP True Async RFC Stage 4 Content-Type: multipart/alternative; boundary=96d42f32ce7c4830b8ae965a532d61fc From: rob@bottled.codes ("Rob Landers") --96d42f32ce7c4830b8ae965a532d61fc Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Sun, Oct 5, 2025, at 07:23, Edmond Dantes wrote: > Good day, everyone. I hope you're doing well. >=20 > I=E2=80=99m happy to present the fourth version of the RFC. It wasn=E2= =80=99t just me > who worked on it =E2=80=94 members of the PHP community contributed as= well. > Many thanks to everyone for your input! >=20 > https://wiki.php.net/rfc/true_async >=20 > **What has changed in this version?** >=20 > The RFC has been significantly simplified: >=20 > 1. Components (such as TaskGroup) that can be discussed in separate > RFCs have been removed from the current one. > 2. Coroutines can now be created anywhere =E2=80=94 even inside shutdo= wn_function. > 3. Added Memory Management and Garbage Collection section >=20 > Although work on the previous API RFC was interrupted and we weren=E2=80= =99t > able to include it in PHP 8.5, it still provided valuable feedback on > the Async API code. >=20 > During this time, I managed to refactor and optimize the TrueAsync > code, which showed promising performance results in I/O scenarios. >=20 > A test integration between **NGINX UNIT** and the **TrueAsync API** > was implemented to evaluate the possibility of using PHP as an > asynchronous backend for a web server: > https://github.com/EdmondDantes/nginx-unit/tree/true-async/src/true-as= ync-php >=20 > During this time, the project has come very close to beta status. >=20 > Once again, I want to thank everyone who supported me during difficult > times, offered advice, and helped develop this project. >=20 > Given the maturity of both the code and the RFC, this time I hope to > proceed with a vote. >=20 > Wishing you all a great day, and thank you for your feedback! >=20 Hello, I=E2=80=99m not even half way done with a list of comments and questions= , but I have one that continues to bother me while reading, so I figure = I will just ask it. Why doesn=E2=80=99t scope implement Awaitable? =E2=80=94 Rob --96d42f32ce7c4830b8ae965a532d61fc Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable


On Sun, Oct 5, 2025, at 07:23, Edmond Dantes wrote:
Good day, everyon= e. I hope you're doing well.

I=E2=80=99m happy = to present the fourth version of the RFC. It wasn=E2=80=99t just me
who worked on it =E2=80=94 members of the PHP community contribute= d as well.
Many thanks to everyone for your input!
<= br>

**What has change= d in this version?**

The RFC has been significa= ntly simplified:

1. Components (such as TaskGro= up) that can be discussed in separate
RFCs have been removed f= rom the current one.
2. Coroutines can now be created anywhere= =E2=80=94 even inside shutdown_function.
3. Added Memory Mana= gement and Garbage Collection section

Although = work on the previous API RFC was interrupted and we weren=E2=80=99t
able to include it in PHP 8.5, it still provided valuable feedback= on
the Async API code.

During this t= ime, I managed to refactor and optimize the TrueAsync
code, wh= ich showed promising performance results in I/O scenarios.
A test integration between **NGINX UNIT** and the **TrueAsyn= c API**
was implemented to evaluate the possibility of using P= HP as an
asynchronous backend for a web server:

During this time, the p= roject has come very close to beta status.

Once= again, I want to thank everyone who supported me during difficult
=
times, offered advice, and helped develop this project.
<= br>
Given the maturity of both the code and the RFC, this time= I hope to
proceed with a vote.

Wishi= ng you all a great day, and thank you for your feedback!

<= /div>

Hello,

I=E2= =80=99m not even half way done with a list of comments and questions, bu= t I have one that continues to bother me while reading, so I figure I wi= ll just ask it.

Why doesn=E2=80=99t scope imple= ment Awaitable?

=E2=80=94 R= ob
--96d42f32ce7c4830b8ae965a532d61fc--