Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126638 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 0591C1A00BC for ; Sat, 8 Mar 2025 08:59:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1741424242; bh=1ll3EyW7NET61Fka3gGI5zHM3k/y8xVdPS4FohWDzos=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=iJZUMRF2Fu8lDgF82HP8RcTSCCcPIHLQoH+VUdW67NQMI6Q2AKuBY4Uugnv/jlmJR tz56kvJ02MXkhksnqoXhuC2/7t0E9FIIhy2NJKRODCMbNfI8Gb4fDMNCUjw4f7k5CN IS8602kJ4AK0wsFk+Y02oTPIx7/cmpYzQPUZ0qqPD7kj62gjqhzXp+L+Q/wXlNruyG mK7+oWJS5dLqkd5B/33NaM2l2hnJHclylLwrwYjMT6CUtbapTa0gZCxNYZsXnz7PZL A4rC1gaK9QLT3NxOYRZLqThheaVirv7837hGkQi/oR5bEnJqijqPt5Pc/2+5MztbhB d65pnv1HJApIQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0C17D180037 for ; Sat, 8 Mar 2025 08:57:22 +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-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 ; Sat, 8 Mar 2025 08:57:21 +0000 (UTC) Received: by mail-yb1-f177.google.com with SMTP id 3f1490d57ef6-e549b0f8d57so2236825276.3 for ; Sat, 08 Mar 2025 00:59:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741424396; x=1742029196; 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=1ll3EyW7NET61Fka3gGI5zHM3k/y8xVdPS4FohWDzos=; b=U0GRx89MpaqyCN7BVZyVeZhOu40I35D8vhNH/ZO47uvjD6VFyeXMU5dxHTpZFYgYqF iYCdSba5A0O57dsncgXVcdj9CtbvPtlzn/RYKrf9sU8Dj2c06DW3EPwSEZVEyjmtqKge OB2Je8NW4ajoExl521vYLEQlpTRcrZIvH+xuhLSwCoPrQdx7zmYja68fuMQ/SOArgo/H RouNtcP2CqbK1ft1jp1rrg69mg/k8MkLkSRpNPdTYYnKkeY6CiM8DvAB/9YwIYQfQZp3 +waiXXvpQ9v5zH9yxicr9nv++YhsdHKEjlpvcqEAwbkvbh47bxQjIb+fpcZFDgP1xjUs 1LBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741424396; x=1742029196; 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=1ll3EyW7NET61Fka3gGI5zHM3k/y8xVdPS4FohWDzos=; b=oPyIljLn2wyzfap6y28ja3DE9OEjXJR2foCKo/1tSkvPg+bFPhpWLc9D/ALqcJN1j1 +kUwtgvhz659iJIi0XvOty0e98nD9FZ9f7gHkl5Rr/AuipqLhPS18627tukS1qzrUfEK QSlbwfsy98k/usl0OR6ruag1gZIlyDy835c24PlSbKZ8zwMtjv7Gna2EWI9PHp9B3n3C cj6tFLtPyFlX3dYCqzyre53q0mICH4cKomfOKIeo1zhwRuPrc+g3kW0+xcMC8kA41XqJ 5paCjaZNfFXrJ4AQ1RiatRssSh4GhwifhfCpv5qdGJHKfjUkU0PdidUA3YNhPU1SuFPU kD2w== X-Forwarded-Encrypted: i=1; AJvYcCV9PhH/AJZiyqEnj5cxeKRFSRT4q1z5EonfSF/8qsUEo/OwsSN4PgERUOenIPNptHKAvjRVApbvh6E=@lists.php.net X-Gm-Message-State: AOJu0Yzkl79POhFgebj/0wl7PqWN8aSwlHo0MHBVRSWARfpbsDkNH/WV Ys06CFO/RhU8lVhPLZmnfmV74jJiBoT63A9PNi4kx2Xp7IJyA5UtfllRp/83qNWJKljPT41R4Lo FLf7qVUION1nIfttdikdMsYZD5uvkag== X-Gm-Gg: ASbGnctesjBDNpNxg3OpXgAzNaA8R4sS6DXV/oYbKAAe86WhQk1pxqPzwD49NNl6Jvd wmi4qjo6XvVcaslFUwEC60X9zzryqQVsLz8yxbawn/tSl01zzZdxxZ65zoSznXNpVS20+cyJ49/ M+4WTAYMe7Aw8YG98w6j6KXn3MORpT X-Google-Smtp-Source: AGHT+IGIGRgkyTQ+mh09kPmfO4ozlusO80gmOhAu/3stgmNUF9clLs+/cvLdXVpmj4ChnV0ARUwEOV2B2YsX3rOhrb0= X-Received: by 2002:a05:6902:18d0:b0:e5b:637d:f6f0 with SMTP id 3f1490d57ef6-e635c175985mr8981001276.21.1741424396290; Sat, 08 Mar 2025 00:59:56 -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> <07973EAE-2D83-47A8-8FA0-84286C77C02B@rwec.co.uk> <48d66433-3ae9-4895-8361-7c81a0a3670d@app.fastmail.com> <62505751-7d35-4ffd-ace2-cbf099ee2b8c@app.fastmail.com> In-Reply-To: <62505751-7d35-4ffd-ace2-cbf099ee2b8c@app.fastmail.com> Date: Sat, 8 Mar 2025 10:59:45 +0200 X-Gm-Features: AQ5f1JphLhhBtxIxW16qXRBTNIwbr0cIc86YuUuk2RSTP8ixn3c6ydueJ7mAiVo Message-ID: Subject: Re: [PHP-DEV] PHP True Async RFC To: Rob Landers Cc: Edmond Dantes , PHP Internals Content-Type: multipart/alternative; boundary="0000000000008b5567062fd0f618" From: zsidelnik@gmail.com (Eugene Sidelnyk) --0000000000008b5567062fd0f618 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > > Yes, that is much much nicer! It feel familiar to go: > > go file_get_contents($file[$i]) > > And yes, I realize that would be a fun error in go, but you get the gist. > > =E2=80=94 Rob > Yes, that's the point that we don't bother client code with any of the async stuff =F0=9F=99=82 If we want to create "async space" for functions to have switching on IO, only then do we call them like this, and the await'em all with awaitAll =F0= =9F=99=82. > --0000000000008b5567062fd0f618 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Yes, that is much much nicer! It feel familiar to go:
<= br>
go file_get_contents($file[$i])

= And yes, I realize that would be a fun error in go, but you get the gist.

=E2=80=94= Rob

Yes, that's the point that we don't bother client c= ode with any of the async stuff =F0=9F=99=82=C2=A0
<= br>
If we want to create "async space" for= functions to have switching on IO, only then do we call them like this, an= d the await'em all with awaitAll =F0=9F=99=82.
<= div class=3D"gmail_quote gmail_quote_container">
--0000000000008b5567062fd0f618--