Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129442 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 62BB51A00BC for ; Mon, 24 Nov 2025 17:09:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1764004171; bh=aZQGkYs75rQ/WvY6DGMJ+eYQY7IWntzda5gcme2dqYM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=GSwtv00BZodf+c/EXtFd2R55V+aR263wCsEjTxSSWR9JJscosnRsvWQK+OSkHzfEd Scx6F+DqwUU5Xk5y39/a/tT1rAHh7Mk8UwBBxeY/8DtuBOPwVgIOQahsFcbFFBNGiz JSBqXm6JEqQe8rxrbc7V8aBasVDIO9gkfwcZuJbtI5akgXFhJgVl36oTVKm8AhMFSu CpRjUbub0ulca26GQB3aNEC9N+6OhlxRdu9pf8RPxEc1TQDnEfIFlEXZt35gpMVnUd wOEHCJNRkyn5NCJcmWTQttPsL52A9QpVU+RTPhvfo1e7aNPdYoUm5spb7GSUitQMUH TONDR3fZV2ySA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 34BD018005B for ; Mon, 24 Nov 2025 17:09:28 +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.2 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, 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-f172.google.com (mail-vk1-f172.google.com [209.85.221.172]) (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 ; Mon, 24 Nov 2025 17:09:17 +0000 (UTC) Received: by mail-vk1-f172.google.com with SMTP id 71dfb90a1353d-55b4dafb425so3629752e0c.1 for ; Mon, 24 Nov 2025 09:09:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764004152; x=1764608952; 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=aZQGkYs75rQ/WvY6DGMJ+eYQY7IWntzda5gcme2dqYM=; b=GHAqFwolctcCL6cwKGpMyAYtJKISBKhxO8L/kXVW9MsdjjqHYI3G8J3OeZKYkxM9vd nKWOBWYzUKbORE/oDdGc1Q4cz8+BBeWMwTT6g7n8jg/Nwbi/dW8y8ezI4QiHqBhGvMTo U0oDn0BkIzOf/ln0nKj6u7Re2Lc2uHX2Hfvopseqb6KkREYpXxQ2GnIZaocDHEwfdXiB LOdhiPVLwoFvL2yn9dCvlfjSPbY1GLFjYQ3Q0Ho+4L+j/LBc1nL+fU/LIRdNCeFJYYPD afMWt+UOBxtKRp8TYVtQes86Z2q9Cvpiz0SnKos4NI2aPjJQtwNlCE4q6W0J70bsqP1F 0pEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764004152; x=1764608952; h=content-transfer-encoding:cc: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=aZQGkYs75rQ/WvY6DGMJ+eYQY7IWntzda5gcme2dqYM=; b=F/hyyrxZZ/OZl4laStLkyk7J5EMk2ynhSeOZ4JiflzPjK0a2dyCttiwj4A64rX+29c qCC4sskV4iYUerLzFk2osQNHTYa6FUVscwd7T+u5aJz2AxqxeeROzScBSMcCbMtr5Q3W 88AXKF3zcXLPAk2XyUlC+5cfBZSKqitzalNFXIhWLHc/xW7TuAmbIBs4VR8wLwG6l6Ai dM4u/t7LwU/meZn0AYbyZ2zkcqSsoqKCjX7RDPpggVtgrzhBzH8w2eCF45dEf5YP5EsM opXT/FYXdao95b9sT9WqOjxg2AB5aQn/phnRMjGUSdhZnHm6A1Ue2NPx9txF9dtWwQZL b6nA== X-Gm-Message-State: AOJu0YxMMtLNeRfgw/d6pcY87Pv19A2jOke7Bfwk3zs6ice66A1MMjlE oylbTmSPhTE8XbbNpivNZ6bWW67DzbIjIIHRHZmdqNOtGFusFrFynpfOA2Drrfu1ChIarGAKU03 clPhDEWLENYzGf5iWRDan7+6prGaFl1EdPEytgqQ= X-Gm-Gg: ASbGncvdEqG7fNL8g/dbH5s6wOlkZAlfVdHWa+dd7tC5E36MqUh0bi1em4G3OiqsOr8 gUp8gLMn0rej6SH++PixeznNYYpq76bSW5Wgkx/SdqpESnHE+P8CYJ+RKW+yBzIbL2U0d0x0Ltj 8kw/7bcvH7uruvKLM/KeG7OEYcnQPsgcbCmJQZw5u5qv97uFfOQAoiOAEd54ZAO3IhzeT+9fMf7 SmeiSyOLXuvDDxkYtfNRFm9mh8jfCUrpDjhp2x4cDD905Vq+Ij4YqX/clfbDWh9FMQ+OmtPSmap XbNyxijA2sNj1xROdQZwSmqzuwY= X-Google-Smtp-Source: AGHT+IFOvMhQvDbpx9WxXbcoPIzhkWQ6/7+/YxD7roMWZ4/ba4VrMPQSnapj9bX2FCAQo3kwq5i+vhSQsA3IBpdZl4E= X-Received: by 2002:a05:6102:54a2:b0:5db:3c3b:7767 with SMTP id ada2fe7eead31-5e1dcfaca59mr4910911137.16.1764004152130; Mon, 24 Nov 2025 09:09:12 -0800 (PST) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: <980296152.1071.1763813573083@email.ionos.de> <92865666.4510.1763818506332@email.ionos.de> <329450798.8037.1763822426377@email.ionos.de> <9287c46c-bc63-4dd0-9792-0f9421959589@rwec.co.uk> <44cd0d24-3d0e-481d-93f6-5cbb49bf0659@rwec.co.uk> In-Reply-To: <44cd0d24-3d0e-481d-93f6-5cbb49bf0659@rwec.co.uk> Date: Mon, 24 Nov 2025 19:09:00 +0200 X-Gm-Features: AWmQ_blKULYnJ0yaAeFfTQOZtqrgxRfbc-uPETcYmJAjWS7xIoYDVsBd4qS6BF4 Message-ID: Subject: Re: [PHP-DEV] [VOTE] True Async RFC 1.6 To: "Rowan Tommins [IMSoP]" Cc: internals@lists.php.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: edmond.ht@gmail.com (Edmond Dantes) > Just a plug / reminder that Joe Watkins already wrote a parallel code Library **parallel** uses a trick to run code in another thread. It clones the function=E2=80=99s opcodes, including the static vars, which is = a known PHP Engine behavior. In this case, the function runs inside a completely separate Zend VM. For true parallelism, the following changes are needed: 1. Shared opcodes 2. A new memory allocator 3. A new GC similar to Go=E2=80=99s 4. Virtual threads (what FrankenPHP is doing now) 5. Possibly something else=E2=80=A6 Before starting the TrueAsync project, I tried to consider the possibility of implementing full parallelism, but ultimately I assessed the implementation cost as =E2=80=9Cimpossible.=E2=80=9D In addition, pure parallelism does not provide more performance (and sometimes even performs worse) for a web server than concurrency.