Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126647 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 qa.php.net (Postfix) with ESMTPS id 4BD331A00BC for ; Sat, 8 Mar 2025 13:02:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1741438821; bh=SK0PtWeV13nhy2K17mkayYfdafWrVSDG7fiiX2zgX5w=; h=Date:From:To:Subject:In-Reply-To:References:From; b=kPVeYfDI54Gf4ABtjhYUnzS12Sws1XOaaFcSSWk6OHRJ3shz/6Yz4d1eKhMwI+OLQ Oji/9bbMT+vP8WrSqiV4g1bBT6J1YBIE+ZBWIF4j5eFdsTKPaHmqW5ZDGPyDaHTYuh 3USvk/RFyaBLZCR4i5fLf88ISVmlnryd+5dm7K18Dc7sYavOrhTOogbHwgkquzK3PJ xDWQIf8vQ6JARV+8firL67rI97S5vRYAYY7Gfqityd7a8F8Zu6cbzseHqfjieDoCFT jxIo0WAdVQx0MytOV79xV4w7qgXWW/v3emVVVC0iBJOH1FItJJ/aOc0LRxFJJZm9Pg VI17fzW3B+ScA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 23ACE1804F6 for ; Sat, 8 Mar 2025 13:00:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fout-b8-smtp.messagingengine.com (fout-b8-smtp.messagingengine.com [202.12.124.151]) (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, 8 Mar 2025 13:00:19 +0000 (UTC) Received: from phl-compute-07.internal (phl-compute-07.phl.internal [10.202.2.47]) by mailfout.stl.internal (Postfix) with ESMTP id 27CE311400EE for ; Sat, 8 Mar 2025 08:02:54 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-07.internal (MEProxy); Sat, 08 Mar 2025 08:02:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rwec.co.uk; h=cc :content-transfer-encoding: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=fm1; t=1741438974; x=1741525374; bh=SK0PtWeV13nhy2K17mkayYfdafWrVSDG7fiiX2zgX5w=; b= tnzTQLUEN63qsiU4tfY+I1+26prBmmmMECFde+tPa1COQgFbHpGPrb4Xj8eKNLdC bFo+4rbE4cga6kX7HSjw7D+68jzRE3h/bRMBfdYYkaUqn/h61fVOYcHuqCpVV/MU P11xTU5/VpXodRWh+JKhESyBpyRUR2fIb86WFIn1cVxhaOTDrGu8I7HJQFaAdL+s PlUa1ITVngjNO9X3Z5yCr2c+zA1eJV40f5tlNyOQAxmmZZ78Ne719GvqKszVx7kS lAUUUoYz3jWbAfOVFYQhoNmcZB1CCCTljOdEP33I3W0Jx2vkb1tDNEXpAD6rR+5T 4NCe3iaa9B06DXHPtAb+9w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=fm1; t=1741438974; x=1741525374; bh=S K0PtWeV13nhy2K17mkayYfdafWrVSDG7fiiX2zgX5w=; b=6e2AJbKNH5V8eBCcZ t6SS1SHEQFQulI8qoIS0n9T/8efMKbPXL6JWR8tCdbkI30QE4L9OHr0t00L6MZmt pEkeGons61HdkG44GE2gBPZMIIXYwoTCL6NuWbBwQ0j3GAEkh74JZjSePX67umN8 y7uK2aGtlC+rSA06DJw0xgTqxrlBzQ/ToRC7XFy11QyzHJ9GTLrheb+Bkt+VvuVs 9OQMLrcf8TNo3QRvcNqqh3hRMdK0EFP8LFB+y7FA99fUKjguvto8LYTSrSW2Dcl7 i+Vb5cuofPBP1RCkiq35U1/omgMTAj6t8vvROp6WzYb7zVdcnmrVXtJEyWd6ARZX 3DthQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduudefiedvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpeffhf fvufgfjghfkfggtgfgsehtqhhmtddtreejnecuhfhrohhmpedftfhofigrnhcuvfhomhhm ihhnshculgfkoffuohfrngdfuceoihhmshhophdrphhhphesrhifvggtrdgtohdruhhkqe enucggtffrrghtthgvrhhnpeehleffteeigfevudetfedugedtudevledugeeugeelheei hfehgfdtkeevvefgleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehimhhsohhprdhphhhpsehrfigvtgdrtghordhukhdpnhgspghrtghpthht ohepuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepihhnthgvrhhnrghlsheslh hishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sat, 8 Mar 2025 08:02:52 -0500 (EST) Date: Sat, 08 Mar 2025 13:01:49 +0000 To: internals@lists.php.net Subject: Re: [PHP-DEV] PHP True Async RFC User-Agent: K-9 Mail for Android In-Reply-To: <8599eb8b-d4a3-4cb8-899a-25b134e0d64d@gmail.com> References: <9964db8c-0ffe-43d5-8246-47fc76b07180@app.fastmail.com> <78a03dd0-fd4a-4f4a-ad8a-37e5704f06fc@app.fastmail.com> <08c8ad0b-e8f4-46e3-99f0-b80748d40b89@app.fastmail.com> <07973EAE-2D83-47A8-8FA0-84286C77C02B@rwec.co.uk> <48d66433-3ae9-4895-8361-7c81a0a3670d@app.fastmail.com> <8599eb8b-d4a3-4cb8-899a-25b134e0d64d@gmail.com> Message-ID: Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: imsop.php@rwec.co.uk ("Rowan Tommins [IMSoP]") On 8 March 2025 10:44:35 GMT, Daniil Gentili wrote: >The only thing that's truly needed in this RFC is a set of synchronizatio= n primitives like in golang, and a way to parent/unparent fibers in order t= o inherit cancellations (as previously mentioned in this list), not context= s, async blocks and colored functions=2E The async block as I'm picturing it has nothing to do with function colour= ing, it's about the outermost function in an async stack being able to say = "make sure the scheduler is started" and "block here until all child fibers= are either concluded, detached, or cancelled"=2E It's roughly equivalent to calling the RFC's Async\launchScheduler() more = than once, but I imagine the later calls would not actually start a new sch= eduler, just track a group of fibers=2E If we're building this into the language, we're not limited to expressing = things with functions and objects, and a block syntax makes it trivial for = the compiler to detect a mismatched start and end=2E=20 Regards, Rowan Tommins [IMSoP]