Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129744 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 6CD531A00BC for ; Fri, 9 Jan 2026 08:15:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1767946553; bh=wLgxp1vett9A4QWzb76MdwfwdEDTkW5HwaHPOcvJx5I=; h=References:In-Reply-To:From:Date:Subject:To:From; b=kVgcfopRcHPq7J21EtYJobfPnrnVa4j9++9NXe4NW56XOixrf1Y8Nct/KhhfWK7GU KuG6PfkW/5jJl+sGRquKxvUeQwIfISoVMfuSZ/mJTdb5Hlb3VCyzVf+ec6HA2FC9bL WJcwty7MfBkaGGvrQ50q6h9mQc4FhlAh+WbZETs0HxAG0u66ux2GFNgc8sQsnvwW5d y8l7fHxG39Na1hpkS5uA+Av9STvlAUno3oWctpV13sygJ0adNEw934dvvH7RPKa+Es f9fos0h7r/nQ+/XnlwR3bdcekdmbyDSAhlddXDKqERJ8wZ6DvfFW7HV8Mjwoz+VqZZ S2DRPloL3AeUw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 29E4C180053 for ; Fri, 9 Jan 2026 08:15:53 +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,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-ua1-f41.google.com (mail-ua1-f41.google.com [209.85.222.41]) (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 ; Fri, 9 Jan 2026 08:15:52 +0000 (UTC) Received: by mail-ua1-f41.google.com with SMTP id a1e0cc1a2514c-93f5905e60eso2436633241.0 for ; Fri, 09 Jan 2026 00:15:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767946547; x=1768551347; darn=lists.php.net; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=wLgxp1vett9A4QWzb76MdwfwdEDTkW5HwaHPOcvJx5I=; b=Fs6SHjKwMCfw3FbORK1xQ4HgwkYLHAnHRkkv9kr5IAJBVFALWHPwNvfT24xgHvOqQl lolJbTT9rQEG5OpxwuaSRTlyYuypkV36kz4mnIZPNj2dBuZyRyDCHAqzJKA2yb8A4zXH TAedV5rnZUobqEHYlDONxKmw1NuATcjb2NYVUww5aT669vB53yp36FZhM+oF56mlxEF3 8lKi1sDZYzZa2N3DxWkbbiHASf/ehoiQA191I8BYx1kRFfCgZ9cKqMndZvmfAvzNrMPV phOfwV3pnTVpqdkf4FVMp+49gZSF92vTyfzf0jgxxQrD+B80cTVmBbBh+3BWuCvNywW/ jpSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767946547; x=1768551347; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=wLgxp1vett9A4QWzb76MdwfwdEDTkW5HwaHPOcvJx5I=; b=D01PGblX2h654AvksQvu6Jq955KL4+oR4/NCulFw+XKDmNDJ1I/gMfEphsPwSxl5S5 LPE36f98ysnLYkm9FBf57g9uR2qmnx4WT8cMtzJrD3wbXnELLs9xhmOjWTKZaZgpE5K0 Dn6PwbJhePE6+wm++cCIwQ9EkfPepE7GJRbVK/oZixmbu5fVb7ePQUE58xIhxc6hpKpb QIjIejGs2s+magulRxwOIdUxTaQsZzgHBXXNpWOF0LOuiwM/nS3joh1OFDZek8FjPvh9 YY/o3KpFUx6S5+tuhWWLWM9r8iQMJahj0yQuIqJyfm0kI4Q/URDYqB+h6ujg8PFjulUM j4vA== X-Gm-Message-State: AOJu0YyiI+fjXSlLPQcviwenn2WP7cogCVoa5EHS3WGRhtBqmP454G2f JLchex9JdOS8G/pHFXfGbMkmzz+Rmjb+I0PAeP/Z1RpBHmOvd0Ofrd1R+sGCzShO0RILcrYwD1b 9pPnAO4ooizZLBqbaJPHOCaas4nJde963+mLHdU4= X-Gm-Gg: AY/fxX6uMUBF5scv21bjjajUnStdPlpE/hdoXsVsPFj3yPtEj8wEdqVCremGa4KK28m p08g44pGCTfxA8fGnvNEh55bidG+mkhfnGeqiltx1bBmLXizHhe4gbjoR5JWmPiPpZuuRQOqgKd VwMnzmsUJyIlzh+KBn9y+zCk7ZuM1vPihr/5nBItaf2ngIUbZQZWOzw3GysS0LGn471GbHxazSc 7sG1uahwFZkywImux9wTUClSNmum8j+L59yq9Pn0kFO8oy7uBuVmNgZ+vZpHK7fKQCesnGjJAkN 7QtAY3r4Yk1BILa656UeioOiT1E= X-Google-Smtp-Source: AGHT+IHnW4kLH1todWC9Ho1TcA+nPaWtCiydiLXHbptEjiEBcVik0kALjGtZdk8Wz0SBgBxpCcwW5jUJAt7hFQkYpcY= X-Received: by 2002:a05:6102:8006:b0:5db:28ef:3dfb with SMTP id ada2fe7eead31-5ecb6962414mr4096859137.34.1767946547042; Fri, 09 Jan 2026 00:15:47 -0800 (PST) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 9 Jan 2026 10:15:37 +0200 X-Gm-Features: AZwV_QgDrOFKUGRfvwb2AP_twH4JdkOQA5yhYN9J_eSnieQgpKRZaX2b4WGDLYU Message-ID: Subject: [PHP-DEV] Fwd: [RFC] True Async RFC 1.7 To: php internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: edmond.ht@gmail.com (Edmond Dantes) Hi everyone. I have completed the research on PHP core changes for multithreaded programming. The article briefly presents the main benefits of PHP multithreading: thread pools and actors. https://github.com/true-async/multithreaded-php/blob/main/mm-en.md This research makes it possible to look into a potential timeline of PHP=E2=80=99s evolution and imagine how the current RFC could interact with multithreading abstractions. The article examines how threads and actors can interact with coroutines. As for my personal opinion. I believe that actors are the safest and most sustainable pattern for the PHP language. They are much better than manual thread management and better than interacting with a thread pool. PHP should evolve toward higher-level abstractions that are not tied to OS-specific details. I am convinced that the presence of low-level APIs in PHP that mirror C functions is a historical design mistake that should be phased out. Actors allow writing sequential code without thinking about multithreading or thread pools. This is a solid tool with proven effectiveness and well-known trade-offs, focused on business logic. That is why actors are a perfect fit for PHP. A single-threaded coroutine model fits actors very well, creating the necessary illusion of sequential execution. The current amount of research, experimentation, and knowledge should be sufficient to make a well-balanced decision. Best regards, Ed