Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126874 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 C5BDB1A00BC for ; Thu, 20 Mar 2025 17:54:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1742493123; bh=13JKv/0k7NTZpAv6NkhxiLzMr4YnirqR0ThqgA3791A=; h=Date:From:To:In-Reply-To:References:Subject:From; b=UcRvirpjUyzKAss0wK/MN0XMVd0Kf0cscCjhK4CYT5mPq9Zt7VqTwRRm70PGgy5op QTIhv8iAv5H+yhFk5X59eJxlO4b8dTr2pQtIHIkwXwAucfurUGXImyHT2Ls538gG7J Z45sv0vrhjye+5SfJW35rpG8sTAAu9TsfOR70DZJNRlSWnHZTJkntzm4BAJnu6aHQm rpqB4e2qLWThaLoG/tFqEpQGRW2TQVmpSfPc6EdUQNFt8u6DF0yY65EBiStfFJG88b I/KmZShpQGjm9Gwk3278pchfpAbeEPD/yjMj5aRY3UNqvXhCWMIomrq6TUuqw4xDoE AKZcD/eNCqxNA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0E39018005B for ; Thu, 20 Mar 2025 17:52:03 +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=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fhigh-a4-smtp.messagingengine.com (fhigh-a4-smtp.messagingengine.com [103.168.172.155]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 20 Mar 2025 17:52:02 +0000 (UTC) Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfhigh.phl.internal (Postfix) with ESMTP id 37F8811402A7 for ; Thu, 20 Mar 2025 13:54:33 -0400 (EDT) Received: from phl-imap-06 ([10.202.2.83]) by phl-compute-04.internal (MEProxy); Thu, 20 Mar 2025 13:54:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; 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=1742493273; x=1742579673; bh=iTYc+2PJVDeuxGVdtWYqK XqUKbjdk/lSMqXaxCT7W9Y=; b=BioEaaheEj+bCNN9IwYaKwv2f5O6zDIrhzxND rJkvczujnwuEjrLnDj09ByQRsuqDY3YoQ6N7WptUH0rnYBPWo7u2w9iV6yq9WP9B DZ0xEAm6GlkpDhB5Kr6FpEZ5jgs4zUtb3iAq9YqqC4/I4iN+zTM8Fxgdu47SSpYy OuM72QiOkJXgMhDg555ErA/jHjcKtYSeIUnKB6cZKSj+O0L6O6HHfGWzJ3JYJoSw sI6UyYJPH335J2oAFfB4O2LpKssfk3qeHXXOmfK000qiY+o4UEIcwJjRwgxgeIWU UU4J500QM/sOTincHQSLedVHtT3vi+8YbI/kIn6TCOkUnR5gw== 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=1742493273; x=1742579673; bh=i TYc+2PJVDeuxGVdtWYqKXqUKbjdk/lSMqXaxCT7W9Y=; b=tntMd+HbFfi+5RpWS bS5d5r+/xo7xZcrOjDoeYyYzXWs9tb8JR9tog79P8u3/2ov7PLdiX3laOSnThNFI qYyCK0/+HBTOszvC1nG/M3gwyRqDpqYZZTgtVrMxdF8Pk3ccErNx786xpYQ0kqbV zBFpKJjEKJoEsrtNImZDlX5qrDEttzpSJ+J4Rl8lLJaH4lBkQ74m74aeeFeHw8PH lItt/v0EVdZ+ruKgJgXgsumDLbDwTvC40qVq8eu1KErCoyRoJW9WT2I+x1GgTCe6 QjsfVBikohMQQQOMpR7q0kgmeK1H8uvCSyLlLARmUwUzJabBn9LbFSQsyD8zCC7K vx8NQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddugeekkeeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepofggfffhvffkjghfufgtgfesthhqredtredt jeenucfhrhhomhepfdfnrghrrhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrh hfihgvlhguthgvtghhrdgtohhmqeenucggtffrrghtthgvrhhnpeffieeivdfhvdeguddt tdegteeiueegvefhteehfeeffeetudeitdehtdegjeeuieenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhihsehgrghrfhhivghlught vggthhdrtghomhdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouhhtpdhrtg hpthhtohepihhnthgvrhhnrghlsheslhhishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id E8DD629C006F; Thu, 20 Mar 2025 13:54:32 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 X-ThreadId: Tff1c7e423588aeea Date: Thu, 20 Mar 2025 12:54:12 -0500 To: "php internals" Message-ID: <8b977572-43df-40d8-a950-6789d3242429@app.fastmail.com> In-Reply-To: References: <72bd5401-53a9-409f-ad45-687333401961@rwec.co.uk> <6987D912-CE46-4145-A8CE-732CA590A522@rwec.co.uk> <2F013672-9937-4AB1-BC46-86F3D342BE6B@rwec.co.uk> <743c84d4-28db-4f68-80e5-3cad2dac6e68@rwec.co.uk> Subject: Re: [PHP-DEV] PHP True Async RFC - Stage 2 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: larry@garfieldtech.com ("Larry Garfield") On Thu, Mar 20, 2025, at 2:06 AM, Edmond Dantes wrote: > This is simply a wonderful explanation. I will be able to go through e= ach point. > > But before that, let's recall what spawn essentially is. =20 > Spawn is an operation that creates a separate execution context and=20 > then calls a function within it. =20 > To perform this, spawn requires two things: > 1. **callable** =E2=80=93 something that can be called; this is an exp= ression=20 > or the result of an expression. =20 > 2. **argument list** =E2=80=93 a list of arguments. =20 Nitpick to make sure we're talking about the same thing: What does "Sepa= rate execution context" mean here? Because a keyword whose description = includes "and" is always a yellow flag at least. (See also: readonly.) = One thing should not do two things. Unless what you mean here is it cr= eates a logical coroutine, within the current async scope. (I suspect this level of nitpickiness is where the confusion between us = lies.) --Larry Garfield