Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124696 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 qa.php.net (Postfix) with ESMTPS id 915601ADA81 for ; Wed, 31 Jul 2024 01:08:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1722388184; bh=jJAN2NxLJL3i/5+bnszsAR0P9yvFUHo+53U5lljkuR8=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=F4Jr22Df1ceK+Pii6bZff3J1C4FJrzS7CGzNH+wXu9VBDzRYyszt0rZDgag5NWPZj EQM8XGwvJCvPDCgC7iJS1mTYxkyPyfHIh2gAL1yPp7yX+Jtw94URkcrM9Db/hjjznq H7NT4cOoJFeEW3iYzKzwA9dU1YX5cHXs9UEChNd/LZzS7IOXKiO8meF5wXDrvz+lM5 ZoEB7SwOFaCaRyVkhtYOmMwpaclsYtvfjsTDUZGWKk2y0j1eDAYlqRDMmOJbVTdrY4 T89636/G6hxdrgGRfebNnPdi1hugR927CTmb6n29BPzwHqVXPPgn1mA/169yvfSiGU r2YQpimniVrJQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DB63A180081 for ; Wed, 31 Jul 2024 01:09:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DMARC_MISSING,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-yb1-f177.google.com (mail-yb1-f177.google.com [209.85.219.177]) (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 ; Wed, 31 Jul 2024 01:09:39 +0000 (UTC) Received: by mail-yb1-f177.google.com with SMTP id 3f1490d57ef6-dfe43dca3bfso3647038276.0 for ; Tue, 30 Jul 2024 18:08:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newclarity-net.20230601.gappssmtp.com; s=20230601; t=1722388081; x=1722992881; darn=lists.php.net; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=CtZPrAZ0PLUGnZWUgmYwkmhLZlSSbWv5rPQzVNFbU0U=; b=wwWwEsO59LOEFw5Q6KFUdKCOMSIqMBEWMfvamPj1MmQYmVV7bjcJeJixG08fwyL5Zw 9UQt+Xm8jgFjauobMRypat2QF/7thBYCF4hcsGRls995//jssVbfpXPNNeQr9nrVJWus tmi8QRw4xaJKSCb/ItlGq/3s5lSu4aqcxZCbydW7dxfvdzBm1/sxlYOcjhl0YRuSswzx mH5cglG2W/6IAB679h04kDOvE1zNL4JUGWInd8hiDeiYhPD5jdCw/mZniwDZj+vwWyVh aLaLV2kK+dVLY9crw7qhLOG1EoOMdobSHh18QfNDx54BcWtWZZNm1bP7UmPFYGxpRVbq 5TwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722388081; x=1722992881; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CtZPrAZ0PLUGnZWUgmYwkmhLZlSSbWv5rPQzVNFbU0U=; b=WWZTWFQvFx5kDDKKOWMxM8gN1HQKcaQHzZck/xDOT+uvfvsWmAE7DPPaukNXBMCHFp dcI4UhPsST0049GZJtplJb6jl/ebASA8OOl8OVf6W/EfgYmO6y/D6aqXe+CMqWQHX8i7 XAN2Uf9FZlLvx6VQpWdo0xhV7ACo1/+mGmeaMJgj1aY0ucaVoDqSIn9k59og7g2IE0bY ENLI9c50jvopAK5pK6NgNrcB8jbFC+aPg3amD1qUMjEGq3WegFD2JC4ttIAmpFC4Bd30 tkKgoZ4Cl3pNc2kcHltucO2g6uVW8U4FsNNVnYNMoPsygqMRhmoqhm25P/THjM1xRg71 Fxmg== X-Gm-Message-State: AOJu0Yzt9BSzpR5jAz3pdIl2XW31RN4zW5j4j5Imqr8F/DQIZ7R1uPpe 0sqzxZDcRnGLTvATi/ZrU3IdGExPgcba5K/xw/UOxix48KItVENGtBsvm8KqwgK6JXTo4AzuwHR aBBQ= X-Google-Smtp-Source: AGHT+IHL9RfIZuAs58irsLopONw9yjRmpY1+Kgb3QZRNfYwuHbI6X4bvDpBRT4I1PvNTzPtlV/3WTg== X-Received: by 2002:a05:6902:a83:b0:e03:5f99:fde4 with SMTP id 3f1490d57ef6-e0b5449ed67mr12533418276.4.1722388080942; Tue, 30 Jul 2024 18:08:00 -0700 (PDT) Received: from smtpclient.apple (c-98-252-216-111.hsd1.ga.comcast.net. [98.252.216.111]) by smtp.gmail.com with ESMTPSA id 3f1490d57ef6-e0ba711ed13sm392374276.30.2024.07.30.18.07.58 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jul 2024 18:07:58 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.8\)) Subject: Re: [PHP-DEV] [RFC] [VOTE] Deprecations for PHP 8.4 In-Reply-To: <2244a37f-8c51-448d-8a56-329ff32e6470@bastelstu.be> Date: Tue, 30 Jul 2024 21:07:57 -0400 Cc: PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: References: <1a88918e-e808-d778-45e1-53797660e093@php.net> <3563cf9b-8eab-4c82-b525-a5d2f9a767bb@varteg.nz> <38920A4B-790D-48C7-B2F6-C49D3F506232@rwec.co.uk> <0824789d-0e36-4628-85c1-4b8d9b7f86af@varteg.nz> <2244a37f-8c51-448d-8a56-329ff32e6470@bastelstu.be> To: =?utf-8?Q?Tim_D=C3=BCsterhus?= X-Mailer: Apple Mail (2.3696.120.41.1.8) From: mike@newclarity.net (Mike Schinkel) > On Jul 30, 2024, at 4:26 PM, Tim D=C3=BCsterhus = wrote: > The problem with adding standalone functions for every algorithm is = that it would result in a combinatorial explosion of available = functions. I commented on this but as it was probably missed in a longer reply so I = will repeat. There is no overwhelming benefit to having a dedicated function for = *every* combination. However I can see a benefits to having a dedicated = function for the most commonly used functions. To decide which, follow the Pareto principle where ~20% of functions = used ~80% of the time get their own function. Deciding which are the 20% = can be determined by statistical analysis of public code bases, or where = there is no existing evidence for new functionality, by voters opinions. -Mike P.S. BTW, I do acknowledge your earlier point about more functions =3D=3D = more documentation =E2=80=94 the first I've heard anyone mention that, = so kudos for shining a light on it =E2=80=94 but I wonder if that effort = might not be reduced by finding ways to shared duplicated information = from a single source? Maybe one way to address the effort required for docs is to provide = incentive that could shift some of the burden of documentation onto = those who want to see more added to core? Maybe: 1.) Encourage docs to be prewritten for RFCs calling for more functions, = to motivate people to do the docs work up-front by having a policy to = vote against RFCs without pre-written docs,=20 2.) Provide a prominent TODO queue of doc items needed with = good-first-task tags that you can point people to on the list who argue = for things requiring a lot of documentation while saying "Well, if you = can't be bothered to update the current docs how do we know you'll help = maintain the docs for what you are asking for?" (admittedly this would = probably take a bit of coding to implement),=20 3.) And finally host one or more "How to write docs for PHP" Zoom = sessions that get recorded and posted to YouTube to empower more people = to know how to do it and to provide links for discussions where you call = for help=20 (I, for one, really have no idea how to get started helping to clean up = the docs, nor do I have any idea where the most need is.) #jmtcw