Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127662 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 B8A781A00BC for ; Sun, 15 Jun 2025 14:04:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1749996165; bh=KZ87qeM/ifsOGhcuoW5ePl+eCK395fqooS/jOpjcGLo=; h=Date:From:To:Subject:In-Reply-To:References:From; b=my2J+I4vOmEjemrWsmQdetE9lA1cMUP0aDORgL2Yi5hmtgxFMmTbwXX9SbR2WgRuk XahlBV4KrKdRuWzAoCtRncsHMxJngg+fXsKeQAcQ+k+LWjGvKS8BoLr5k+mwBJ9/ze vLhEHa2DkzoPJU6hlve0w89X1V2Y0dTlBSU9YHgZ7ph6u1J2sCnE2B5faGQNHlrulC v8inpYS3nVyBr5ui119saojJFABcDavq4bauYYyvehDcHRH0NN0nY7Ya/+sltg9lAO T7O+T9Zfl/37dwDXXCe21Zr6oLpF72ZMM9FAseujeNItwXm/jOJ6baLUlXfpAJichr Bwr3tK7H3rODA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6194D180051 for ; Sun, 15 Jun 2025 14:02:43 +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_MISSING,SPF_HELO_NONE, SPF_PASS 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 a.server2k.de (a.server2k.de [37.120.186.15]) (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, 15 Jun 2025 14:02:42 +0000 (UTC) Received: from webmail.server2k.de (localhost [127.0.0.1]) by a.server2k.de (Postfix) with ESMTPSA id E93F64011C for ; Sun, 15 Jun 2025 16:04:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=danielkesselberg.de; s=dkim; t=1749996280; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iZUD7TIT46k6WfwDoKHZH3QKm3t22PSshgUHiIIRUYo=; b=S9aQ6P7k639SvE7ycLVkJeE24BTnP+pF6UIzMm/DM/oPWEELQe3sNttupfQPoEmdyr58Yk IikFmsH7eSUdz3QWYNBFBjmnplBW+vBjsHkoUX6mtZ2PF43Lvz37SbcnxzpBlRn809lrdM hCyt3/JOU8sO7Gx9fDPN7StUg3RvQIY= Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Sun, 15 Jun 2025 16:04:39 +0200 To: php internals Subject: Re: [PHP-DEV] [RFC] Add num_available_processors In-Reply-To: References: Message-ID: X-Sender: mail@danielkesselberg.de Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit From: mail@danielkesselberg.de (Daniel Kesselberg) Hi Larry, Thanks for your feedback. I've reworked the introduction at https://wiki.php.net/rfc/num_available_processors and hopefully the use case is a bit clearer now. Best Daniel On 2025-05-25 22:22, Larry Garfield wrote: > 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