Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128905 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 lists.php.net (Postfix) with ESMTPS id 4FD2F1A00BC for ; Wed, 22 Oct 2025 17:01:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1761152510; bh=V0a7mY6+z+sOZwCfPC07zZ/Sy0PmnRYJShoFnOgqBTA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=hDQ6GnEU+FxFkV7BgBYaqWz+liotY/m5R0idzdE/1fER21knOB4teRcksBKbQSOUn 44Hm/ltkdDM/rQ01TYKGXrXupJl2ENzApLgwnzq6ZIzuwk2yeKzMvDby6Ypx9Y4Hlx DBRnozSPBn+WBhWgRTWInoEwvvz6B9YJ/zbnKUIB/fhYtgQahdQ4mQT12W54XOHf1f bcYt8FHhlfVwcR5ENYynWptgrn3C9XvCuoIFdQeP1N/Tqg8HWmPqwnXdr6CaqIJ8+m En0eP9Q6hIkkG4Mg9XVUS+iKw5bDVCYQVAClhHjzPEPcgWxIODeHAN1QiVJr8XycAc DUxeG41GXDMyQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 077691801E1 for ; Wed, 22 Oct 2025 17:01:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,T_SPF_TEMPERROR autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-vk1-f179.google.com (mail-vk1-f179.google.com [209.85.221.179]) (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 ; Wed, 22 Oct 2025 17:01:46 +0000 (UTC) Received: by mail-vk1-f179.google.com with SMTP id 71dfb90a1353d-54a79cadd1fso4899132e0c.3 for ; Wed, 22 Oct 2025 10:01:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1761152501; x=1761757301; darn=lists.php.net; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=V0a7mY6+z+sOZwCfPC07zZ/Sy0PmnRYJShoFnOgqBTA=; b=AjVDhmeof5o22VGRRMCoCz7DJtU62vDEKZYGi2YK7VctTftM/lIQrSnGBb1THGIpgC ykSqtG6A/+uyQDHd3iNHAsR4AXllPDQYup+feapkLbWS5/Gbzd3hkofGhv4CfaGZj4hy 6PHGlGM/0UgqSrRv8CICPQlzuifTGAqUEqEvJmGZlp+2VOm+aEFVSjn8NN59MXF7XJCN K+HqFitPSaxt3+lN8Axj+hfetbzahNpKzbf+yA8cyL/FEfD41Tr+kAak2KOFhBOaVCEu P8GZcXzN1I0PFbBNMvCvZ06fjd63SlffLtWwoOPBZTLQ6tLJ1QEnqxRzUz6kT2PxQUdL Nonw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761152501; x=1761757301; h=content-transfer-encoding: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=V0a7mY6+z+sOZwCfPC07zZ/Sy0PmnRYJShoFnOgqBTA=; b=vR0ESrNjNwCthwrTi52w3xBhfJNtTZFVHylKzKeKPHT/+Q6nLyMquyV1Bgc5NP81Zl WP7x9glDdKe7VbLDudy0E6/3sfbqLHhgwyoL+VAi2XJ38p40oHMPS3g5eNLWvRMNkdiO TU8v++mLWb9BITahECFmiLtNSC7oDBDmUpM1f4k7juh+B8CF5N6pzDTFusoM4Hh3EEo0 HYyZIF/Buvn3ZXSureu2ZjxOx6jN7aGEKSi0rQvNUq7tzbmFPfvfh4VbhhuY2Y1QMd4x wVwgHF4tBcgnuEMe5O1PqtG8J2rbtx9PveexRVpIhaYAdvC1NKmDvQ9O0gnibiQ3NHq4 V50g== X-Gm-Message-State: AOJu0Ywn//j3eMfvt+vXu091QxUFQnvXpoLfgNQI5vaJ3d3pkYVY3Pw6 zZ8D+piy/PygyfOOTT26wfzoG072gN5UK3OTtHNl1aWQtJR0TpH7O2i9l85SbMly0hA5oWjx0Qk FGaOiUQoDF0SBcBP2FB/LVawbexybFuf/wH7xJQ8= X-Gm-Gg: ASbGncudGFa3gz7u3a6jK2V2WpRWsLBBSjebqJ33F+og2WTAC4Y8kk7quZj9QVTKfSI ZYjjyzK9dYyZXtVuEdhXCvcY0v64uVjPEkLF58W+PzLux5JHEJ7ibx4BQKm+KGbsLXRVR/So4NS lq0zXRbx/QsU3dCqxnbfxBk9daGF5NPq+a/UV9SkEDnZIfI3q1y/wAkoBBFtre6OiPwwDaYqBfn +T9Bdey3Y0SZK4QYtUM7BucEoREFE+oik4jMb7I3BvuKaceclfuGU3yzC5OL+Q9y+JZAjrxjhTB 3UBlmE6aCXz5a0CSu7cLfXYO3A== X-Google-Smtp-Source: AGHT+IHciZa5YkZNh1tVFm9kNcV4JMTvUVqsakPGjvVeg8U8ZwMb1s5E4NWJ+wIWb0EholxwlG89jW+7YVmGwxMdLGY= X-Received: by 2002:a05:6122:a23:b0:556:3f8e:c0c with SMTP id 71dfb90a1353d-5564ef94c1emr7288589e0c.15.1761152495656; Wed, 22 Oct 2025 10:01:35 -0700 (PDT) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: <25be6748-d8c3-4f1a-bf81-297cea72f8db@alec.pl> In-Reply-To: <25be6748-d8c3-4f1a-bf81-297cea72f8db@alec.pl> Date: Wed, 22 Oct 2025 20:01:24 +0300 X-Gm-Features: AS18NWA4-Dp_WHe0aAdUFCSkRt0c0mXMmY69PJvr0WCrHdbG-29ipbLMQd2yksM Message-ID: Subject: Re: [PHP-DEV] PHP True Async RFC Stage 4 To: Aleksander Machniak Cc: internals@lists.php.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: edmond.ht@gmail.com (Edmond Dantes) Hello. > - The glossary in "Overview" is good, but probably incomplete. The > examples there, with no description, do not help much and could be > removed, imo. Do I understand correctly that I should remove the examples without descriptions? Or would it be better to add descriptions to them? Although the last examples might not be very illustrative or easy to grasp. > the "Scheduler and Reactor" section does not explain much over what's in = the glossary. What else do you think could be added? The internal implementation doesn=E2=80=99t belong in the scope of the RFC,= it can change. They don=E2=80=99t have any special API in the PHP userland. The reactor can only be used directly at the C/C++ level, meaning within a PHP extension. It=E2=80=99s also intentionally impossible to directly affect the Scheduler= =E2=80=99s behavior. > One question. Seems like we don't really need delay() function. Why not > add an argument to the suspend() function? I think it would make the > code easier to understand, considering seeing suspend(1000) versus > delay(1000). That didn=E2=80=99t occur to me. Interesting idea. You=E2=80=99re saying it would make the code more readabl= e. But wouldn=E2=80=99t it be confusing since the functions have slightly different semantic purposes? As a non-native English speaker, I don=E2=80=99t really feel the difference between delay and suspend. They seem close in meaning. But is that the case for others? Thanks, Ed.