Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126630 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 9EADF1A00BC for ; Sat, 8 Mar 2025 07:32:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1741419016; bh=0YYpO77dE45T9dz4ITos0hXV5pYYwVsrp77jI0VPRio=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=oRFOV8nhmUnqEBcnbUDm9CJyq+a37/9EpQ3Kc916FPLU5rxLgNMx8ZBEhFStEZNDe nZd1kuGUYszfSC1gXlVzBauy7+O1IdEf0+dilQGyi+Zmw7Ri2/x4ydOHdlZHGnza1a fG6BtF5uIrYuFS41SC6a6Frwqjn1bBh8i27q+G/JxrjIzd0mLZDKNJCIEF0b0ZtGob MsKdLSOqdWDix3qu39RAy8uspWsQ71J14y/hbuzj90Noai6g+ADMQ9n8Dp65J17YzD az5au6cYzAPhkGNbPTumwSfD41LRgoIcYpA8MZ/7GADfUzkR6NySKU1qsChKSxnVcO 51RRHccwC119A== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A410918006B for ; Sat, 8 Mar 2025 07:30:15 +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=-1.2 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-yb1-f172.google.com (mail-yb1-f172.google.com [209.85.219.172]) (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 07:30:15 +0000 (UTC) Received: by mail-yb1-f172.google.com with SMTP id 3f1490d57ef6-e46ebe19489so2027253276.2 for ; Fri, 07 Mar 2025 23:32:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741419170; x=1742023970; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=61j3LMY42qNE61SkaDRa+GYKwO3js9szypkZKN01YDc=; b=eiM98xgsaiy1NYoaJ+Sd9YqhIVb9T+JyuSxcSV6ki+kGp4k8oZVOJReN9dRriu2stm ok+Wz5BGSbPjpLFNE4N3tIiOBHnCVJoNpKf5QKQbdiJec1kR6/ie9hdWz2J/SS+5xXzD ZbX+afAh0RiBfUmJisj3f909L9NV2ox1Ri4GQti+pPkSdCxH+tOTBajrV7vKPvkg6dCK SkuiWMIkN4jHmCqA5JB9P1DBoTfgqkeBZhp+8VDXB22E7ike/CXWf+X036x9yfCLGFjV 9TGb4pYIPA729CJ+W7bWGRjzqujXgd1IqEvfRBEp4gpQhApMJG/VGaH+UnWn2XWBTe1b zl7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741419170; x=1742023970; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=61j3LMY42qNE61SkaDRa+GYKwO3js9szypkZKN01YDc=; b=M0QZpyz5gPlHj/kCFyyiY1+QNQHIjc6VI7Y08DAak9+YctSFMe5b+8V54CQgo/kUlm Z78m97AFRwPuMxsVxo4INrnRCVVnnxBAA18bnpq4Ld0oy2oXPE+LIWNtUkEmFCzmjgTA sLQfME1jXGkUZCipcysGEfSuHED+5jzQhXIslgsQtkwRxjvWPhOtp6X/8E7YPIUD0SzW c7yQm56fqJQV5Rbth2gyy4AOwzPAuH1O6uAn7pSwfbk96k6f/gxQXJZ8+ACbqVChs0H6 z3rxezcrn56gyvEbBPHn29sjKn3bJ9cK19uUQjENL38ratiEWzWmXPo8zdHdagYec6tU KXyA== X-Gm-Message-State: AOJu0YzyYLwhNP1mY+LU+Gd4wuS3hmK30SNE6GqyfxGEjb7XdUOIWOfN jqPMgH9oS0FN7pM7HcGCCzbbQhxCc5UCzacZNq4+ZFPr9KXbkL+jbSF7Aay/MUz8ZnIqBlItSnL lcRKFnlNwTDuchrsOcBI3R61K6QHxUuBRBZI6Ig== X-Gm-Gg: ASbGncsIbgiJ6aAhiv2LcQ+7ylpKnGuLmkaxoPJA5fHDWl2C/AL0VX9zqKuq8kStdqX qWLfUmcENEZ0rwkECgDf8Movc529hrcYI4muH+7PI10P/dot8PDn09HTByf+5QSPElmJMUYg5Zw 8XJIekvMQzYlO1dlGUO//9Qk19g1r4OmYRXwRK X-Google-Smtp-Source: AGHT+IHrwNS1428NcjG0I7MaNv+1Ml2E5Gy0peMfyD3rsuIHLzAO1j9/mToCprqDCxvTCv+RB6y0pTIp5qRlAADcmWI= X-Received: by 2002:a05:6902:3488:b0:e5d:cd08:12f0 with SMTP id 3f1490d57ef6-e635c1ee39fmr7156771276.44.1741419169928; Fri, 07 Mar 2025 23:32:49 -0800 (PST) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 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> <70413542-e1b1-42a5-ad65-44cd442a4454@rwec.co.uk> In-Reply-To: <70413542-e1b1-42a5-ad65-44cd442a4454@rwec.co.uk> Date: Sat, 8 Mar 2025 09:32:39 +0200 X-Gm-Features: AQ5f1JrOc_4PqY_ASuEqdKRH9dzbe1aAH0ZyDkG1dsqltH8zmcVYFP7RKvsgFS8 Message-ID: Subject: Re: [PHP-DEV] PHP True Async RFC To: "Rowan Tommins [IMSoP]" Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="0000000000000762bf062fcfbfbf" From: edmond.ht@gmail.com (Edmond Dantes) --0000000000000762bf062fcfbfbf Content-Type: text/plain; charset="UTF-8" > > Let's assume we want to support this scenario; we could: > Thank you, that's an accurate summary. I would focus on two options: 1. Creating child coroutines by default, but allowing unbound ones to exist. 2. Explicitly creating child coroutines. And in the RFC, I would leave the choice open to all participants. In terms of syntax, it might look something like this (just thinking out loud): ```php async { async child { } } ``` or ```php async { async unbound { } } ``` The pros and cons were described earlier and will be moved to a separate RFC. --0000000000000762bf062fcfbfbf Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
>
>=C2=A0 Let's assume we want to support this scenario; we could:
>

Thank you, that's an accurate summary. I would focus on two options= :

  1. Creating child coroutines by default, but allowing unbound ones to exis= t.
  2. Explicitly creating child coroutines.

And in the RFC, I would leave the choice open to all participants.

In terms of syntax, it might look something like this (just thinking out= loud):

```php

async {
=C2=A0 =C2=A0 async child {

=C2=A0 =C2=A0 }

}

```

or

```php

asy= nc {
=C2=A0 =C2=A0 async unbound {


=C2=A0 =C2=A0 }

}

=

```

=C2=A0 The pros and cons were described earlier and will be m= oved to a separate RFC.=C2=A0=C2=A0

--0000000000000762bf062fcfbfbf--