Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126602 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 061971A00BC for ; Thu, 6 Mar 2025 12:19:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1741263394; bh=CKnyyFlxNLJh7B5YsVf2hfvSyUB+2VswwuwVq5IkBA4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=mILH4mDrgaMFO99Tv3wSfXBIO1VlIwSCoWXxFynmUxK+Ue57zPUGfrqvw0yYD1Wmm EJRtWyZCIEpTOcV4+40Ld2N5bZnEw7LILbX17NeJczjTnNJuQUjh1PEVK9CeheYJjQ ESwrhRsLHLTw4LNYwsQwNH4p4riRQ+xVKbFjQO/KkhmUdhIUOfUL6h64iJhKde5ohy Rxb32+QTYi2ZoUxgPXfKYFiZ6TVDOSAiE7zYYUDbEVASh2fqHI6buC0J+QUj9lE0+8 YgYAjPeOKLLvZJmYqouvCNTJvzNWIIH+dndmgqKr4nrRh0s+m1KP2kgaJ4JxSFRRk5 Ijt8hxUsoC0tw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 40083180087 for ; Thu, 6 Mar 2025 12:16:33 +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-f170.google.com (mail-yb1-f170.google.com [209.85.219.170]) (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 ; Thu, 6 Mar 2025 12:16:32 +0000 (UTC) Received: by mail-yb1-f170.google.com with SMTP id 3f1490d57ef6-e60b75f87aaso433535276.2 for ; Thu, 06 Mar 2025 04:19:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741263548; x=1741868348; 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=CKnyyFlxNLJh7B5YsVf2hfvSyUB+2VswwuwVq5IkBA4=; b=ApIZMauPq34suckrWCpCfWlGxYyQRJFaG6zLi+G1RAU/MEYZ4KxBvm0ySESdKSYpgl mkkRb/xi6neGq1F2h2LvJNycQ7UNi31BnleJRCtBVFwA9Y+89A6YDNLwbPSSCrMmj0o+ qjAvNMC9vvYPZlLBJ5NUAOn4VdGX3qiZ4Us+pWlKtl3m3PGSeNtLG0Pd09ktxK7eE2wZ ewSAptvFpMKxq3skKEFlddvYs55oe6Ihr+efRYilxHng6CdtaFk9Yx97qKQsNCBQ19wn EBpWG+EzIinDC1gtNEQHl7ke8Cl5hLQWsCHCNmW6gqHk4AhFJ5hxUcV/TCkh0sBBL6YF I/GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741263548; x=1741868348; 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=CKnyyFlxNLJh7B5YsVf2hfvSyUB+2VswwuwVq5IkBA4=; b=ronYV1rqXITsppLeIdV7TmGk95l4NT73iPNG376pxSAmNuITd+zDXm0YYOX63pliXN OQc90OPbK8BlCi1aKmGyMZgBTzwV/5x4+D1qYhSe0+O3AXphAq0G+2qmxLnNuYOxSv/2 3dPbgZEChECRJzg6QlWeNyxSF4aB3/6F1E8nKfz3mxP11LcUyyboT84z79a5dZrg5kZV W9QScY/P9x66HkaLJMheenkcWsp+PAfM1TyoR3I7/B2D8wnBiJpwvT4+PRARYZ2nhKsu 5kOBdwT2G+TnbM+S3XDNttxR50Vo4GvNYuEoF4O1vbndoHKlLi6hXfXgKB924VI19hmd FnVw== X-Gm-Message-State: AOJu0YzXLKhjJdjWsRnMPQMOX0duRK7Npaj8WYN1A7iMzNvmu08bIx29 4h5Q9r61a+ZFdEtmS6QZ/d6OBLMuVcFo9kV43hD/lomok8VJBnHMWNgDv/HTDO2c56tm1VeJEyo siAwIBdk1xWlkCjeL6khrPe/RQAI= X-Gm-Gg: ASbGncvfpXPcX68QLGDcaa6uLDe3g41atEv8iZLsj2PiA4Hf8DGnTwC6KgX8StTeKbf SwqMXdMousi37+B/jLwCFzeB/EA/wMaQ1Nsq3BAQEQTXCWatb0ctkBvQUpsuCD1nha8vS4glxGr O2yxVulHfpE5DDBkBtB0W7IdTAOw== X-Google-Smtp-Source: AGHT+IEu6jih6a549l1XBXy+dQdECsahhouEtZDi0MRiLAOSz4McRmdmLaiNhJU7zvjIf4IQ1x7k9rM7au3HSuRLA6A= X-Received: by 2002:a05:6902:2ec4:b0:e60:99d2:cbd4 with SMTP id 3f1490d57ef6-e611e1967ecmr7016084276.5.1741263547761; Thu, 06 Mar 2025 04:19:07 -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> <54736CFE-DDCB-46A3-88A0-CFED30ED2CAA@daniil.it> In-Reply-To: <54736CFE-DDCB-46A3-88A0-CFED30ED2CAA@daniil.it> Date: Thu, 6 Mar 2025 14:18:56 +0200 X-Gm-Features: AQ5f1JoMsW0fx_UIbx5Ksrc_E5U-48nK8a7kEN-RsmleL_f1pWdMQGbPArvt_lY Message-ID: Subject: Re: [PHP-DEV] PHP True Async RFC To: Daniil Gentili Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="00000000000039b073062fab830c" From: edmond.ht@gmail.com (Edmond Dantes) --00000000000039b073062fab830c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, Daniil. > Essentially, the only thing that=E2=80=99s needed for backwards-compatibi= lity in most cases is an API that can be used to register onWritable, > onReadable callbacks for streams and a way to register delayed (delay) tasks, to completely remove the need to invoke stream_select. Thank you for this point. It seems I was mistaken in thinking that there is a Scheduler inside Revolt. Of course, if we're only talking about the EventLoop, maintaining compatibility won't be an issue at all. > I=E2=80=99d recommend chatting with Aaron to further discuss backwards compatibility and the overall RFC: I=E2=80=99ve already pinged him, he=E2= =80=99ll chime in once he has more time to read the RFC. That would be really cool. > To Edmond, as someone who submitted RFCs before: stand your ground, try not to listen too much to what people propose in this list, > especially if it=E2=80=99s regarding radical changes like Larry's; avoid = bloating the RFC with proposals that you do not really agree with. Actually, I agree in many ways. In programming, there's an eternal struggle between abstraction and implementation, between strict rules and flexibility, between paternalism where the language makes decisions for you and freedom. Each of these traits is beneficial in certain scenarios. The most important thing is to understand whether it will be beneficial for PHP scenarios. This is the main goal of this RFC stage. That's why I would really like to hear the voices of those who create PHP's code infrastructure. I mean, Symfony, Laravel, etc. Thanks! Ed. --00000000000039b073062fab830c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello, Daniil.

> Essentia= lly, the only thing that=E2=80=99s needed for backwards-compatibility in mo= st cases is an API that can be used to register onWritable,
> onRead= able callbacks for streams and a way to register delayed (delay) tasks, to = completely remove the need to invoke stream_select.

Thank= you for this point. It seems I was mistaken in thinking that there is a Sc= heduler inside Revolt. Of course, if we're only talking about the Event= Loop, maintaining compatibility won't be an issue at all.
=C2= =A0=C2=A0
> I=E2=80=99d recommend chatting with Aaron to furth= er discuss backwards compatibility and the overall RFC: I=E2=80=99ve alread= y pinged him, he=E2=80=99ll chime in once he has more time to read the RFC.=

That would be really cool.=C2=A0=C2=A0

>= ; To Edmond, as someone who submitted RFCs before: stand your ground, try n= ot to listen too much to what people propose in this list,
> especia= lly if it=E2=80=99s regarding radical changes like Larry's; avoid bloat= ing the RFC with proposals that you do not really agree with.

Actually, I agree in many ways. In programming, there's = an eternal struggle between abstraction and implementation,=C2=A0

bet= ween strict rules and flexibility, between paternalism where the language m= akes decisions for you and freedom.

Each of these traits is beneficia= l in certain scenarios. The most important thing is to understand whether i= t will be beneficial for PHP scenarios. This is the main goal of this RFC s= tage. That's why I would really like to hear the voices of those who cr= eate PHP's code infrastructure. I mean, Symfony, Laravel, etc.

Th= anks!

Ed.

--00000000000039b073062fab830c--