Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126787 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 63A401A00BC for ; Sun, 16 Mar 2025 18:32:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1742149793; bh=BRf0OFw/epjk9M7VR4L1mdkSEPb5Wk594E71dkigStQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=G9lbrdQjj1dNbP+AvDRIk1wy8EjbFKh/eqc3NI76ITH2O2wDcZYQid35oi1j3EW0d KdaN3yhXHps0V5+vc9RdLeEcJ8JJ0Su/23mKtLwE6MMkYMxpWNS70RsSQjPWMD+V8q i9BeGYQLoMdm8CX/XJolzwsAKkKo+JGYfdHQRCPEERXSsyFoR/qqYtMouOaNPsAf0D 3kErtLFZ8efMVhBt72Jbd8Z1xLjvQT8R6SUj+fbcjPVA/j2Yr0IcDpmB2XUDLz08hp iQ+RQcxLWilmichoW1qt4jLSNdozR6Phx0mNiKGWzrsT4EAfL8nSNb4rQYiHkwqxUi I9+ccA8F1QRHw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3CE91180032 for ; Sun, 16 Mar 2025 18:29:52 +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-yw1-f177.google.com (mail-yw1-f177.google.com [209.85.128.177]) (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 ; Sun, 16 Mar 2025 18:29:51 +0000 (UTC) Received: by mail-yw1-f177.google.com with SMTP id 00721157ae682-6febbd3b75cso31419047b3.0 for ; Sun, 16 Mar 2025 11:32:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742149943; x=1742754743; 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=6iNsE2a0FerL5lV1mNfFZeDt3aDHAZgUVu6vLe5Pz2o=; b=cbvEb99HgsXBcNNM87Y7xPO3yu3kixzgAwxZH9u8fWeCBiOVM+ZU1UJEnU+GkRWED4 cWS5w8SPSM1sgFcoY3nSjJG6IefqZkrsizKnQj6jex2Nk+Q7WPGeRIfhOHC+E96PDsL1 v2U7Sg2OSEtfJXumFzD30UOqyy+Opg7Ne/Y1M5utLZWrwSIlGfnzmmlOXdk966EX7ynl 3W7fXwZcyPc1qcU/hTXIBrg/yqvsYhHvOecfwjm7F+uHGd5L0aLr+Ng7WZ8Y+NN3npjg RQB2RH1sRlLOrnm4TzA0wyX0ZdhMDjKKwkJgL+7KatYFTq5KeBVzYH7V96kfJ/OK3Kp4 XTkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742149943; x=1742754743; 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=6iNsE2a0FerL5lV1mNfFZeDt3aDHAZgUVu6vLe5Pz2o=; b=r/3d27fcoEXfd19sxpS05ZhecCVY4ixGmHLQj+Ofa67uNH8XIunOjmrf3tQB06i0q8 e13XGH+pSx/PtHv/JjYm5PnPrRwZLXB7G7k0aAptOlLPvRdcCZsfhceWzVUeHvQ9GRqE RkAG1ldV9HiJAjw12Bg8DqCw2viTZxydbVOtPaVUpUqD6S/dPtf62xSDcwp8j10OInA+ wi2YT60Fz+SsvWLtkuAsZTzBxK5MDJkShsb2Y1BGQc/uFhYhgwCB+QXoIQ18sU354F87 jaLtmvncJPkDeY8Dzg/ZkZ70fRUBUaiiiYI9ydTLRiI+pTNIWbQyBil6YSJ+tPOSxpFG U/1A== X-Forwarded-Encrypted: i=1; AJvYcCU3kz1GUbupkGTzKod5uKs6tM5kC+3TEFzrDpwdI+wAZhu8Nn/9WtY4P+mHx5C4zctdkON8Q8jvVxE=@lists.php.net X-Gm-Message-State: AOJu0YwB5/WaLBvMhvFPoeQkE44E879vg0A4kfYNKU1Y3JTlKpvRNoQR HTiIV/C7CDtVcSiy0POsQGxTlL7XczAbsec/u3TQwRUlTIIfvLNbIaRcxgcKqgvYYyEkcvKWASX p/D6259jz1blHsMq0dXmKZp26YeQ= X-Gm-Gg: ASbGncvq+jAiaouECwujJQ7WIZE0kz4OZNHuwyCCiCgldEg/PXrjjimnqhdLgESKY0k DMR7E+Lt3g1Jnfrj/vROuKasFO9JJnf6mw0tLayj/QyyFsgLDugEYGdFGs5YHr+VDaKVLQyv925 6gRXeV5HeS7A28c5fAbAvW3qoZGR4u30yvyZNQ X-Google-Smtp-Source: AGHT+IHHWZBClbTIP9kGaaELt65wEqe0JQm/nVUPqRX7083LhDbk2ocqquO4OLKDTxD333tcmN3tbokUpEC0RMdvw9M= X-Received: by 2002:a05:690c:6302:b0:6f6:ca9a:e9da with SMTP id 00721157ae682-6ff45e3b128mr116429527b3.4.1742149943234; Sun, 16 Mar 2025 11:32:23 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Sun, 16 Mar 2025 20:32:14 +0200 X-Gm-Features: AQ5f1Jpy983yhYvFCjrz1lOQNGNGG-QtzIv036fGOvLwdiFR4I7eO8VGMLX2394 Message-ID: Subject: Re: [PHP-DEV] PHP True Async RFC - Stage 2 To: Oladoyinbo Vincent Cc: Bilge , php internals Content-Type: multipart/alternative; boundary="000000000000831c24063079e4f7" From: edmond.ht@gmail.com (Edmond Dantes) --000000000000831c24063079e4f7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, Vincent. > > Personally, i love the formal RFC for it's low level accessibility and this new RFC isn't that bad. > If you mean classes like SocketHandle and so on, then the low-level API can be available as a separate extension. > > The `spawn` keyword maybe the right keyword to use but it seems more weird, can we find another keyword to use other than that? > Most languages i've seen make use of only the `async/await` keyword. > Yes, spawn has the downside of being more associated with threads. Here are some other possible options: - launch =E2=80=94 like in Kotlin - go =E2=80=94 the shortest option async is not the best choice because it looks more like an attribute, while we would prefer to use a verb. From a brevity standpoint, I like go, but after that, Go developers will have to implement the $ symbol for all variables :) --- Ed. > --000000000000831c24063079e4f7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,=C2=A0Vincent.

>
>=C2=A0
Personally, i love the formal RFC for it's low level accessibility and = this new RFC isn't that bad.
>
If you mean classes like SocketHandle and so on, then the low-level API can be available as = a separate extension.=C2=A0=C2=A0

>
>=C2=A0 The `spawn` keyword maybe the right keyword to use but it seems more weird,= can we find another keyword to use other than that?
> Most language= s i've seen make use of only the `async/await` keyword.
>

Yes, spawn has the downside of being more associated wit= h threads. Here are some other possible options:

  • launch =E2=80=94 like in Kotlin
  • go =E2=80=94 the shortest option

async is not the best choice because it looks more like an = attribute, while we would prefer to use a verb.

From a brevity standp= oint, I like go, but after that, Go developers will have to im= plement the $ symbol for all variables :)

---

Ed.<= /p>

--000000000000831c24063079e4f7--