Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127455 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 B87221A00BC for ; Sun, 25 May 2025 20:22:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1748204431; bh=Tndj+zwzJYmQKpXl3T/hejfMXBI/KYTJ2SwbYq8r9Ys=; h=Date:From:To:In-Reply-To:References:Subject:From; b=XN1p0cObehm2sL8iK+MEBX4SYPLHHIWxzIxvLO7io2mTpIo0PD3uPLiFscTncWWVy x1WgQCrnvXzho573P5y9dtA3WggcJsikHicdeA97Ufd0d5tUrURL92b7MMdmEU/KAj qHKkLoOlZPGgRfExHZpGfIXh1a0zgUzYbhQBOFB81hYWTpQA/a3xFPb9XuTapDwpCX L0BKL0K/oyFBJlnWTf3wZd/leX//vX50yGyG7qujSaUxcgC6FPgc8/kXWeAwEUym2r AfJcOqJ62EsYrgnbvdMns0LaTphfGDW/ERIjAQZRmd60NmhWeiQ6J9tewK/MYppOVR 1ZPDYMLqKzCAw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C246F180051 for ; Sun, 25 May 2025 20:20:29 +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=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from fhigh-a8-smtp.messagingengine.com (fhigh-a8-smtp.messagingengine.com [103.168.172.159]) (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 ; Sun, 25 May 2025 20:20:29 +0000 (UTC) Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfhigh.phl.internal (Postfix) with ESMTP id 338A311400AE for ; Sun, 25 May 2025 16:22:36 -0400 (EDT) Received: from phl-imap-02 ([10.202.2.81]) by phl-compute-10.internal (MEProxy); Sun, 25 May 2025 16:22:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to; s=fm1; t=1748204556; x=1748290956; bh=7+icJnFzZUCxL+7/xNg6b 2yyNF2DLnkHOLgjtkWF3kk=; b=Qdez64XXadD8lrWzS/Nb+tWieKpM9qqYDmO3q ecQpV9+sTBG8ZjM1Fi8VEtk85aldOp6ejs0P3kpXkEhchT07QB0/pnW3+DXc1M40 CmtxBh1nlQVVtlJt6RZ4dP6bbpBV2BK+ISxw4WJfKBwAaCX1PlbYQyq08Di0HRO4 z4DPr/DifpsacWwNPNHsbN7I+0js65J8uI5mjqtxTY+xI7t+6zRd+NorNGQRnJhg n02RaofFofnrxAGX3gdn0wYxObBzvajz1ydnX+a7YOOWbDfQUBl6IKqg5XTrrA9u ui1scKBOV2ptz36jr1Y0YhU8mSWOY/papPvbBanDLzH7usWIg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1748204556; x=1748290956; bh=7 +icJnFzZUCxL+7/xNg6b2yyNF2DLnkHOLgjtkWF3kk=; b=DSiBa7DkMunfmV2qc hKK9cGT+EQzE2pEZY7n5IFk2pq/WHItvUzAfG2fmaKdadpe1FW1/VBOupzhWF9PD KrUaUVR9ZCF6pFRvzP7bph0zaAzB8tfdTyz0EVzVev8ZPQQGMNuuhuInsXyu+UOD NolY/bAGpS93EkMbxQjpr0PM1Yfm82/ERQE6g6hMgaQZOqdrC/zRPpX0jjDl3K2y QaDsYbQRbV/iQuvEEsDPQTskif8n+hDhswExITlOVQWikY8xhPd01oFoKz3eqRXj 6EHuLq+gNP/lHvAu18tXdZREW5iSIbKn/pFIEf75FYC290fot55amG9XdHYgCnw6 stbJg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddtgdduheehieculddtuddrgeefvddrtd dtmdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggft fghnshhusghstghrihgsvgdpuffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftd dtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefoggffhffvkfgj fhfutgfgsehtjeertdertddtnecuhfhrohhmpedfnfgrrhhrhicuifgrrhhfihgvlhgufd cuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomheqnecuggftrfgrthhtvghr nhepleeffeelvedvffeujefggeevvefgtdehhfevteeggeefffdtkeevhfevgedvhedune cuffhomhgrihhnpehphhhprdhnvghtpdhgihhthhhusgdrtghomhenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhihsehgrghrfhhivg hlughtvggthhdrtghomhdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouhht pdhrtghpthhtohepihhnthgvrhhnrghlsheslhhishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id C6671700060; Sun, 25 May 2025 16:22:35 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 X-ThreadId: T71cafa1ff8f13f6f Date: Sun, 25 May 2025 15:22:12 -0500 To: "php internals" Message-ID: In-Reply-To: References: Subject: Re: [PHP-DEV] [RFC] Add num_available_processors Content-Type: text/plain Content-Transfer-Encoding: 7bit From: larry@garfieldtech.com ("Larry Garfield") On Sat, May 24, 2025, at 12:37 PM, Daniel Kesselberg wrote: > Hi everyone, > > I'm happy to share my first RFC :) It proposes adding a small function > to retrieve the number of available processors; a feature that's > commonly found in other programming languages and one that I believe > would be a useful addition to PHP. > > The related PR has already received a bit of early traction, and now > that the RFC is complete, I'm looking forward to your feedback! > > RFC: https://wiki.php.net/RFC/num_available_processors > Patch: https://github.com/php/php-src/pull/11137 > > Best > Daniel I don't really have a problem with adding a function to expose this value, in concept. But what is the use case, exactly? The RFC mentions something about php-cs-fixer in passing in half a sentence, but doesn't explain it further. Please explain further what value this has for core, rather than the parallels extension. (In the RFC, not just here on list.) --Larry Garfield