Newsgroups: php.internals
Path: news.php.net
Xref: news.php.net php.internals:126656
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 BBB141A00BC
	for <internals@lists.php.net>; Sat,  8 Mar 2025 18:37:50 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail;
	t=1741458915; bh=FB2Wbdm0RsMOnG0On/MKuhEfriOlQz1zIC/D7v+kAsY=;
	h=References:In-Reply-To:From:Date:Subject:To:Cc:From;
	b=fouv5AcUceDPI/pyu9Gi4wZZkemKIORhyXHCNkMhcAbCuvxOGHD8A4FO7HKhEoSgu
	 vmrUt1saplanrtLS9JBmEz5pinlikip7e59lLP2j6ZqTE+CLx5uXFaEk68yUJ1Z0QZ
	 +j8ChDGDMbiBrsvz7KUTq61YnhEOkOhlUOPheq1VOw98iKDiAmfi/8AK5Vfa9Oc3YB
	 xxV0CmQL0Ez1vJUBba4Alwh+sJuVGDsisrqkPsxA/yM2CHAiLnn7um0UylecKJSQpv
	 6ZsFFFUxJx6bGpx/EKSoc8LM0S6cz/ZS2eQzheWQFDcYDVbJPEjqEx9fAxegRRcYv8
	 EtECrVn6OkZ7Q==
Received: from php-smtp4.php.net (localhost [127.0.0.1])
	by php-smtp4.php.net (Postfix) with ESMTP id CE2641801D9
	for <internals@lists.php.net>; Sat,  8 Mar 2025 18:35:14 +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: <edmond.ht@gmail.com>
Received: from mail-yb1-f177.google.com (mail-yb1-f177.google.com [209.85.219.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 <internals@lists.php.net>; Sat,  8 Mar 2025 18:35:14 +0000 (UTC)
Received: by mail-yb1-f177.google.com with SMTP id 3f1490d57ef6-e63504bedd0so2111420276.0
        for <internals@lists.php.net>; Sat, 08 Mar 2025 10:37:49 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20230601; t=1741459069; x=1742063869; 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=2+7095tkYF6XyE4vYuW25rK0UoX8lLcME0wB4fPLi+A=;
        b=nWyzP48v/ZKi2iR8sHRXe9U7xiJXjd2vqc0oh24gjWY2L2Ky/tnUBMNGFHBpg9vkn8
         yH2a9qxNTlvt8LMCZMEcCuIoqWcvh9KkH/9TnFoSGpJFenhnHwcyF/Y81NRuNm2hL3Fx
         yFR8Z0F+qtHzM1X387EaNkpPqIIO4QUP5/DHPstqdXLLCFHN/M/TKnQQaIoHL+K+OKaF
         4X+OxvCXTQefRpFcq61Dv8GIDRuoGzdKEtC2k0e187wU/t0KVEpI6v0UBGNif2JQZjaX
         WUREnMseMIUPlLk2FZ8RdHTGNj/9522dVoEcvxdWeTch3EFfnET4DNYHlDEXyusgepZv
         yxvA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20230601; t=1741459069; x=1742063869;
        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=2+7095tkYF6XyE4vYuW25rK0UoX8lLcME0wB4fPLi+A=;
        b=Xtmq4to9HMv80lopI6VJoCsMBDnbyIkzDSOc5uD60OiIu5YmhgMRyisuevNIJy1qTI
         s33rEuQrwNM25YQul9cihaLyHn8Bvh17FrX8qIqpeWytS6v+SKmKRW4GJb/zgxLWa31K
         kmYrGjQCx9lCpSA+mHHePGGUxEWjq4Kzx4t1EcsUE2YAPpDs6TNFC1LEHfGXg9n8Kjp4
         ATZDibsM4+EKsWXm0gmVRFfXdfgZDTKKIrBkV4FCl/klELKe//CibYqAdoTtMC1zxVsy
         VJvt2HUkAR6X0zdQY2UTx8i2LAv93Znhmk6iarDIPR5B8aOf3Vsovcst0LYqv7i5bLBB
         RnkQ==
X-Gm-Message-State: AOJu0Yyq/BgixKP/Ub/dPNNzUxJUxQSqdansagDYDuDLI2JySVNUA6oi
	jV3lqEULEFgEAb1w+t77JrEes7TKZmJweej6aiRl0tvw6DdPSRLWG2rk46BK+26KZhTMTo6+ur0
	vck+dkSCCQaR5U1645euiYqrylgA=
X-Gm-Gg: ASbGncvDk26kIycATVZw7MQs8gZ69dRnrRjihCHtCR2jCnoMQ7CvlqEPY+CoInepyUC
	9FKg2YU/l2Uq2OeV6bbu7RCZOPkdjtDNkrT2yxl+mSfvC701ZNrZcPcAV6FYiUfE3m4grClv0Aj
	pu2x0IKthH/CzkLppe6pzkSA/+5/eS12E3+6KF
X-Google-Smtp-Source: AGHT+IF1dC4e/nDyl3trJNu1myf+vl36VsBX9VkaMhGXmjAj4ALQ9sFv28ORcPLp21l9Hngsid0bDcGnOyknptTliDM=
X-Received: by 2002:a05:6902:2848:b0:e5d:e04f:f2bd with SMTP id
 3f1490d57ef6-e635c1dc48fmr10414138276.44.1741459068815; Sat, 08 Mar 2025
 10:37:48 -0800 (PST)
Precedence: bulk
list-help: <mailto:internals+help@lists.php.net
list-unsubscribe: <mailto:internals+unsubscribe@lists.php.net>
list-post: <mailto:internals@lists.php.net>
List-Id: internals.lists.php.net
x-ms-reactions: disallow
MIME-Version: 1.0
References: <9964db8c-0ffe-43d5-8246-47fc76b07180@app.fastmail.com>
 <CAMW7n8CM7oBfXCDsKtV4hTFs40UmLCU3183WjYE2exLNqKDWLQ@mail.gmail.com>
 <78a03dd0-fd4a-4f4a-ad8a-37e5704f06fc@app.fastmail.com> <CAMW7n8C-Z18MKhyDX2+ofg70cRbwWOk=YWDAZpKtfLZsFVVRng@mail.gmail.com>
 <bb7a9f8f-0422-45e5-b4fc-f5757add92b4@app.fastmail.com> <CAMW7n8BnzL7d0bd_Y_jGOmyWegKQpm-FzrVFRCcDe=bNFZpi+A@mail.gmail.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> <be7cb263-93a1-4bd8-9416-ae4d3e0bafe6@rwec.co.uk>
 <dbce8889-016a-4c59-864c-d8fdec895adc@app.fastmail.com> <CAM0Ccxh=bydoDEHBAV+Gb1_86HJjwhW06kzEsdRiMh93k1F7oA@mail.gmail.com>
 <8599eb8b-d4a3-4cb8-899a-25b134e0d64d@gmail.com> <D73BCCC4-3547-45B4-84AD-A5FD6569D43C@rwec.co.uk>
 <74c4c726-63aa-44e0-84c9-840e13a65a4f@gmail.com> <9b7ab30f-5ed6-400d-b941-1291e9185286@app.fastmail.com>
 <9a2e81e8-3534-455b-879a-5a45c85b3ba7@gmail.com> <de94a01a-ccee-423d-bd47-3e6257adfe7d@gmail.com>
In-Reply-To: <de94a01a-ccee-423d-bd47-3e6257adfe7d@gmail.com>
Date: Sat, 8 Mar 2025 20:37:37 +0200
X-Gm-Features: AQ5f1Jqa0m2ULrdw_VwDHEbK0FfNWrnH6ax9gB0r1S0aBUBSYRn-_M5XZgRmpZI
Message-ID: <CAMW7n8D3Jv9w+em4=Vxqi__XB2KZcC0q7B2zKBxonuv7D=c1Rw@mail.gmail.com>
Subject: Re: [PHP-DEV] PHP True Async RFC
To: Daniil Gentili <daniil.gentili@gmail.com>
Cc: internals@lists.php.net
Content-Type: multipart/alternative; boundary="0000000000003012b7062fd90969"
From: edmond.ht@gmail.com (Edmond Dantes)

--0000000000003012b7062fd90969
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

>
>  Crippling async PHP with async blocks just because some libraries aren't
ready for concurrency now, means crippling the future of async php.
>
How can calling a single function have such a destructive impact on the
future of PHP?

Yes, you have to write 10-20 more characters than usual one time.
Yes, it=E2=80=99s a hack. Every programming language with history has hacks=
.
Hacks evoke negative emotions. But life does too :)

All that=E2=80=99s needed is to change a few lines of code in index.php to
initialize the application in an asynchronous context. It=E2=80=99s the sam=
e as
launching Swoole: you need a few lines of code to initialize the web
server.

---

Ed

--0000000000003012b7062fd90969
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">&gt;<br>&gt;=C2=A0

Crippling async PHP with async blocks just because some libraries aren&#39;=
t ready for concurrency now, means crippling the future of async php.<br>&g=
t;<div>How can calling a single function have such a destructive impact on =
the future of PHP?=C2=A0=C2=A0</div><div>
<p>Yes, you have to write 10-20 more characters than usual one time.=C2=A0<=
br>
Yes, it=E2=80=99s a hack. Every programming language with history has hacks=
.=C2=A0<br>
Hacks evoke negative emotions. But life does too :)</p><p>All that=E2=80=99=
s needed is to change a few lines of code in <code>index.php</code> to init=
ialize the application in an asynchronous context. It=E2=80=99s the same as=
 launching Swoole: you need a few lines of code to initialize the web serve=
r.=C2=A0</p><p>---</p><p>Ed</p></div></div>

--0000000000003012b7062fd90969--