Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126645 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 611DE1A00BC for ; Sat, 8 Mar 2025 12:24:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1741436534; bh=2K17K7LUcIzdRCEnGjQwB5k0LVcquGFmA6hqkKqgPY0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=IRRWV3XkixFd830PIuW7N+JUdFFTFRF0kV+jZVGEBpjLgFi6/e7BsqNGe1HgSMeP8 2J6csueqTfkqLFEq5nL6TLNw2Ch6kqXaLMrCQEvo9qsQkODmsTOm1AvZlIv4n9tV7J 6dCfQtJz7PC047xgWBV9DWwNJi5C2N7Jek/f5vtC9RP8QnlxcS7J6kExsgihIuNhBu 1in60ZXztuNwWtMfNZ911NNXPmSC/9eTPDJixqxJc8ayyDzucOARgIGAKoSbN4dB0F Dl82/JP/hNnpOi9audZjvLIS1vtAOCsIm+SzmrdyhVmw6GeWVHGZ8Tqxi/8yByh0rk FtlwfBaB6O6Lg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B338B1801E8 for ; Sat, 8 Mar 2025 12:22:13 +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-f176.google.com (mail-yb1-f176.google.com [209.85.219.176]) (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 12:22:13 +0000 (UTC) Received: by mail-yb1-f176.google.com with SMTP id 3f1490d57ef6-e6343c68b8fso2057614276.2 for ; Sat, 08 Mar 2025 04:24:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741436688; x=1742041488; 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=5BOJ/bEyJEYaHeJC0SxVMUvc+hLkXx4LFy9CtsgjSkI=; b=MHCJ2X8TMaED0BDrrPGRzjtzSt+KkE6zruOgS3FcO8AprdT1WYemGWwv/z3gJTa6iH pPmppdWX7hHZOL4riQez9w/1aRGU1HdvftvZaTBl+8PLCO6+Xw1DxeTAX0sbnjYShdam evIZ39dpYOzQOIxCUSfRDymrNVIEFkdT5UNnoaTB4aIwvd6k2SfUeTmKsKr1U8Ny0qnu 0Zvr3gkFvVCKZZp7LCrOIef5j9Ys/fXV2mPFjhTXiT+gIo3WLEqLod59YOGN7g/3KYhq 64IMkS5A2egKm6TRzW0sq7CxtVf6lgJ0I0y6c0L9xZ7V5eiU3pP3dOpQgL3x8PSlo6m7 zBEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741436688; x=1742041488; 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=5BOJ/bEyJEYaHeJC0SxVMUvc+hLkXx4LFy9CtsgjSkI=; b=RXkfC/BR2B1UDBU1YmDwhZy7fNMmkyG3l0CQ5Rbzbfpy/f22c5ZeewA9LoR1DpCyJE ly0y5v0y9U7VwtPYtm9noSmMnMYHImqRWIS9xMHWWn92tR1iqyZUE1pfsS8Cz/EkyTrB t07Sfb2wRm9YZwP8EtjumL9aqguYjAiuqlIRlILqaB8lKwze3oQOqZUbBt72s38hBjUN CXLumIzjuSH9dBxbh7Gu2dLk14Cc7OxAxZxnxNF4MqGV69wthUalEoJS7seO7TUV7TQB rnpMHu78cf+v3H7HkrbaaJPL+g5zqVHYaiQPvj+io4QhK7v1QMd9jVhdjsHS2RK5hQb4 I1rg== X-Gm-Message-State: AOJu0Yx3NIXszhux+/Fe/Gf0j5otrpLwZuvAXHld1DUZftVd5gcMWf8K Mzz7aE8C3Ru28Bi44MEJr1mLf2e1udLLjJn4cDMFPbxK1c1UHs1sXvCF9RygaCppR3Q8m55MzGe 8hpiCnGTBUO3fsTQGMhnT8f+xTqobawSmf2z8ZQ== X-Gm-Gg: ASbGncs5UFctGiJCAJYLqEiVDUjPRo6dN9tpcYVIvfyEdFDPLQWMy9sYCFN75snApgC RGdo3cJArepu2sHP6K8v33A9Gm099fO2YzUUEV9hLZDlI5HZGMnmjVpX0fCjb4KgMrQIGucd4WW wPSA36kG6nkgAZ1waa7zoBjRjnHg== X-Google-Smtp-Source: AGHT+IF67A+0D6NTW7biPIqhqYF3U/dwv1gLrN8rGjY2KQoSBOlSGYCnkgPXwWMzpfSA/xOHGN42n3z/5ktSx23/fPU= X-Received: by 2002:a05:6902:2805:b0:e5d:929e:6311 with SMTP id 3f1490d57ef6-e635c1d8d40mr8844807276.36.1741436687726; Sat, 08 Mar 2025 04:24:47 -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> <05c426b4-4cea-46c3-9013-aa6cfb8b18b4@app.fastmail.com> <52b37332-9330-4fe8-baf5-30b7a687da2a@gmail.com> In-Reply-To: <52b37332-9330-4fe8-baf5-30b7a687da2a@gmail.com> Date: Sat, 8 Mar 2025 14:24:37 +0200 X-Gm-Features: AQ5f1JqhSPEAH1ygdajumKm4qj7PgNsxGBjpsDwBnCAOG8_C7BOKm1U5EhUT9hU Message-ID: Subject: Re: [PHP-DEV] PHP True Async RFC To: Daniil Gentili Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="0000000000002bc126062fd3d395" From: edmond.ht@gmail.com (Edmond Dantes) --0000000000002bc126062fd3d395 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > > Colored functions completely preclude a possible future thread-based implementation of concurrency. > I can assure you that colored functions are neither part of this RFC nor *a= ny future ones* from me. And it's not because it's my decision it's rather the language itself and the existing codebase that dictate the implementation. Moreover, we already have extensive experience with Swoole, where developers=E2=80=99 reactions are well known. And Swoole is essentially PHP= + coroutines. I can recall the maintainer=E2=80=99s words from memory: it turned out that developers don=E2=80=99t want to use special functions instead of standard = ones. I can confirm this from my own experience. For example, adapting a library for RabbitMQ required changing only 10-20 lines, and overall, it worked quickly without tests. The true strength of any language is not in its syntax. The main strength is its infrastructure. Even if a language is poor in terms of development quality, if it has a massive infrastructure, people will use it. --- Ed. --0000000000002bc126062fd3d395 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
>
>=C2=A0 Colored functions completely preclude a possible future thread-based implem= entation of concurrency.
>

I can assure you tha= t colored functions are neither part of this RFC nor any future ones= from me. And it's not because it's my decision it's rather the= language itself and the existing codebase that dictate the implementation.= Moreover, we already have extensive experience with Swoole, where develope= rs=E2=80=99 reactions are well known. And Swoole is essentially PHP + corou= tines.

I can recall the maintainer=E2=80=99s words from memory: it turned out t= hat developers don=E2=80=99t want to use special functions instead of stand= ard ones.

I can confirm this from my own experience. For example, adapting a libra= ry for RabbitMQ required changing only 10-20 lines, and overall, it worked = quickly without tests.=C2=A0

The true strength of any language is not in its syntax. The main strengt= h is its infrastructure.
Even if a language is poor in terms of development quality, if it has a mas= sive infrastructure, people will use it.

---

Ed.

--0000000000002bc126062fd3d395--