Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127696 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 885F91A00BC for ; Tue, 17 Jun 2025 09:59:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1750154276; bh=xYZdmrejCE0K0BMLbbscTjJGvz3FbGN+VpHxNguNsXM=; h=Date:To:From:Cc:Subject:In-Reply-To:References:From; b=NAI+jGxexmxLC9mgGFmRGUX4PaGEOw33EvAa/Z0i10c9uCZjvbkCJQgSS0QTUtexS ul19Dbk3yof5BlNiVNPIoL9nzgsEIVAMBBxSIhlOMTMc4ARdr1J5rHaUZ4W5K7Uemv Ip3K2+0aSFCU9AwyU4qpW78YQ1inDnSQHfgOXB8jv8fzyytjhIU6OYyG5QZGwUNVOk dLc28d6ndHczjzSFLX4bjhLYPUJv3y5Fel0mXcx4LnVcr6okQ+AoK8paGkMxAX6HSC wqnZG8+ds4TuoO24RjRnboSblYqXQZpBA6UtDFEl64pt5rXAD/zbmBHewrQ79TT1TK a8uBSy2IVMFBQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9A9CD180041 for ; Tue, 17 Jun 2025 09:57:54 +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=-1.2 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,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 mail-24420.protonmail.ch (mail-24420.protonmail.ch [109.224.244.20]) (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 ; Tue, 17 Jun 2025 09:57:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gpb.moe; s=protonmail3; t=1750154390; x=1750413590; bh=xYZdmrejCE0K0BMLbbscTjJGvz3FbGN+VpHxNguNsXM=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=l0x1E9u86gzBKvDysEFWsJYNfbhexOcJNiM4XF6m7r6jPohsQkbq2hq7e5LnaRubQ VqPCIX0Dc81230rPlZc3SFRmCJaCTAfIF+IVoD9RHu0QOKmyIqvkw2KrJrgGbvZywh BPJR2ZGbHaqIDpvV74l6qTARi1yT4MueV5q4WP4FnCtjOpd0z5wHGbMb16/NTgyuuQ ikH/Y6kFr3BSzWOudA+cQxBRKE+Xy+EuVKLVUEXfXjvwu6EipgYogOI+ltuR42hYgn fxF2uLlMSySWFSK1A0iZ/tf73hMUYI+ZnWIlzfEYUldD96oDOIuFIgIlKz+phxDTRQ GqOMrDidf9w0Q== Date: Tue, 17 Jun 2025 09:59:47 +0000 To: Daniel Kesselberg Cc: internals@lists.php.net Subject: Re: [PHP-DEV] [RFC] Add num_available_processors Message-ID: <_m8K8T4Co2MzZINCftWEIP3PxkbsCe628Cbjdw_nyRErWoPrOHl5yolC9BQ6O3C_U6s-JHX_g58gt1oyu_zOx8Oqa3hx8ZYzLk3jSeZBZcU=@gpb.moe> In-Reply-To: References: <8b76a3d4-4583-4849-a75f-00f645191247@gmail.com> <57f7ed3e-6bef-434d-83db-fd729ff43fc9@gmail.com> <20250527163747.ADA6D1A00BD@lists.php.net> <0FC66A63-1284-41AF-AA27-27F657EB57AF@php.net> <20250527171352.552DD1A00BD@lists.php.net> Feedback-ID: 96993444:user:proton X-Pm-Message-ID: b6f71ea7605fb1cf3a167773b2de7a37d12f55ac Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: internals@gpb.moe ("Gina P. Banyard") On Sunday, 15 June 2025 at 19:32, Daniel Kesselberg wrote: > Hi, >=20 > Thanks for all your feedback on the RFC. >=20 > I've updated the RFC to incorporate most of your feedback: > https://wiki.php.net/rfc/num_available_processors >=20 > 1) The limitation, that the CPU affinity mask is ignored This is something you need to decide on as the RFC author. > 2) The naming discussion I don't care much about this topic, but possibly adding the sys_ prefix mak= es the most sense to "soft namespace" the function. > 3) Function availability on unsupported platforms The function should not be available if it is unsupported, as this how every other conditionally supported feature is handled.=20 > 4) Return type Arguably, this should always return an integer. Which if my understanding is correct, when you make it conditionally availa= ble then it cannot fail. > How do we continue? ;) I see there are various ideas how to approach it, > is that something you would vote (let's do a or b) on, or how does that > work? Small RFCs should only have a single yes/no vote. As the RFC author, you can (and should) be opinionated. Best regards, Gina P. Banyard PS: Minor list etiquette remainder, please do not top post, and only keep t= he relevant things while quoting.