Re: [PHP-DEV] [PHP-Dev] Versioned Packagers (Iteration IV)

2024-07-11 Thread Jordi Boggiano
On 2024-07-10 20:08, Michael Morris wrote: On Wed, Jul 10, 2024 at 5:51 AM Jordi Boggiano wrote: As for the rest of the thread, I feel like everyone needs to take a few days to chill because it's getting a bit heated around here. People are passionate about the things they love.  I'

Re: [PHP-DEV] [RFC] Lazy Objects

2024-07-11 Thread Nicolas Grekas
Le ven. 5 juil. 2024 à 21:49, Tim Düsterhus a écrit : > Hi > > On 7/2/24 16:48, Nicolas Grekas wrote: > > Thanks for the detailed feedback again, it's very helpful! > > Let me try to answer many emails at once, in chronological order: > > Note that this kind of bulk reply make it very hard for me

Re: [PHP-DEV] Website php.net updates and coordination

2024-07-11 Thread Sergey Panteleev
Hi Jim, >Maybe it would make sense to stand up a new mailing list that could serve as a >discussion space for those working on this aspect of the project. I don't think this solves the problem, php-webmaster is still active but there is just no communication there, when adding a new ML, we will

[PHP-DEV] ext/gd new imagematch function (was: adding imagecompare)

2024-07-11 Thread Giovanni Giacobbi
The recent PR #14877 [1] proposes to add the imagecompare gd function that mimics the gdImageCompare function from libgd. I always thought that a pixel-by-pixel matching function for two images was a big missing feature in PHP, as the corresponding userland implementation is really, REALLY slow. T

Re: [PHP-DEV] ext/gd new imagematch function (was: adding imagecompare)

2024-07-11 Thread Pierre Joye
hi, as I mentioned in the PR, this is an old function which we did not touch for bc reasons. I also linked a better image comparison function used for the gd tests suite. It covers exaxf match which is what it seems you are aiming to get. Additionally that function also return an image with the

Re: [PHP-DEV] [PHP-Dev] Versioned Packagers (Iteration IV)

2024-07-11 Thread Mike Schinkel
Preface: I am going to bow out of this conversation now (unless pulled back in) and come back after 8.4 settles. In the mean time I'll be working on two proof-of-concepts. One is a totally userland PoC for packages being able to load same-named symbols, and the other will be working out how t

Re: [PHP-DEV] Re: [RFC] [Discussion] Fix up BCMath Number Class / Change GMP bool cast behavior

2024-07-11 Thread Gina P. Banyard
On Wednesday, 10 July 2024 at 07:35, Saki Takamachi wrote: > Added one more change to the RFC. > > Currently, there is no other expression for comparison in PHP called "comp”. > The expression "cmp" is mainly used for functions, and the expression > "compare" is used for class methods. > > e.

Re: [PHP-DEV] Negatively Voted Notes

2024-07-11 Thread Derick Rethans
On Wed, 10 Jul 2024, Gina P. Banyard wrote: > On Wednesday, 10 July 2024 at 15:18, Derick Rethans wrote: > > > We discussed this during one of our foundation meetings, and we propose: > > > > - to delete all notes with a rating less than -5 that are older than a > > year. > > - come up with a p

Re: [PHP-DEV] Negatively Voted Notes

2024-07-11 Thread Derick Rethans
On Wed, 10 Jul 2024, Tim Düsterhus wrote: > On 7/10/24 16:18, Derick Rethans wrote: > > Comments? > > For now I'm only asking to give me the time to go through the > ext/random stuff myself before the automated deletion is performed > (i.e. defer this until after feature freeze at least). That

Re: [PHP-DEV] Re: [RFC] [Discussion] Fix up BCMath Number Class / Change GMP bool cast behavior

2024-07-11 Thread Saki Takamachi
Hi Gina, > Thank you, I am happy will all the provided amendments now! > > Best regards, > > Gina P. Banyard Thank you! All the issues mentioned have now been resolved and the vote is expected to go ahead as scheduled. Regards, Saki

Re: [PHP-DEV] Website php.net updates and coordination

2024-07-11 Thread Derick Rethans
On Wed, 10 Jul 2024, Roman Pronskiy wrote: > 3. Deployment Process > Recently, there was an incident with a code block pushed to the > website accidentally: https://github.com/php/web-php/pull/1021. It was > promptly reverted, but the case highlighted a potential security risk: It wasn't an *acci

Website Analytics (Was: Re: [PHP-DEV] Website php.net updates and coordination)

2024-07-11 Thread Derick Rethans
On Wed, 10 Jul 2024, Roman Pronskiy wrote: > 2. Analytics > It is hard to make any decisions without having a reliable source of > stats and data. With more than 17,000 pages, updating all of them is > impractical. Analytics, among other things, will help us prioritize > updates based on page impo

Re: [PHP-DEV] [PHP-Dev] Versioned Packagers (Iteration IV)

2024-07-11 Thread Rowan Tommins [IMSoP]
On Thu, 11 Jul 2024, at 12:26, Mike Schinkel wrote: > Let me use an analogy. Envision two people on a city council of a small > town. One proposes the city should > implement a water, power and sewer grid so anyone who wants to build a new > home or business in the city > would be able to do s

Re: [PHP-DEV] Website php.net updates and coordination

2024-07-11 Thread Jim Winstead
On Thu, Jul 11, 2024, at 6:54 AM, Derick Rethans wrote: > On Wed, 10 Jul 2024, Roman Pronskiy wrote: > >> 3. Deployment Process >> Recently, there was an incident with a code block pushed to the >> website accidentally: https://github.com/php/web-php/pull/1021. It was >> promptly reverted, but the

Re: [PHP-DEV] [PHP-Dev] Versioned Packagers (Iteration IV)

2024-07-11 Thread Mike Schinkel
> On Jul 11, 2024, at 10:32 AM, Rowan Tommins [IMSoP] > wrote: > > On Thu, 11 Jul 2024, at 12:26, Mike Schinkel wrote: >> Let me use an analogy. Envision two people on a city council of a small >> town. One proposes the city should >> implement a water, power and sewer grid so anyone who wa

Re: Website Analytics (Was: Re: [PHP-DEV] Website php.net updates and coordination)

2024-07-11 Thread Jim Winstead
(Followups on this should probably just go to the php-webmaster@ list, but I've included internals@ one last time just to leave a pointer to where the conversation may continue.) On Thu, Jul 11, 2024, at 7:09 AM, Derick Rethans wrote: > On Wed, 10 Jul 2024, Roman Pronskiy wrote: > >> 2. Analytic

Re: [PHP-DEV] [low priority] WeakMaps with scalar keys

2024-07-11 Thread Rob Landers
On Thu, Jul 11, 2024, at 08:45, Rob Landers wrote: > > > On Thu, Jul 11, 2024, at 01:11, Benjamin Morel wrote: >>> The answer is: it depends. If you don’t need the array to clean up after >>> itself, you can indeed use an array of WeakReference to get most of the way >>> there. If you want it t

Re: [PHP-DEV] Website php.net updates and coordination

2024-07-11 Thread Niels Dossche
On 11/07/2024 18:38, Jim Winstead wrote: > On Thu, Jul 11, 2024, at 6:54 AM, Derick Rethans wrote: >> On Wed, 10 Jul 2024, Roman Pronskiy wrote: >> >>> 3. Deployment Process >>> Recently, there was an incident with a code block pushed to the >>> website accidentally: https://github.com/php/web-php/

Re: [PHP-DEV] [RFC] Lazy Objects

2024-07-11 Thread Tim Düsterhus
Hi On 7/11/24 10:32, Nicolas Grekas wrote: Many things are already possible in userland. That does not always mean that the cost-benefit ratio is appropriate for inclusion in core. I get behind the two examples in the “About Lazy-Loading Strategies” section, but I'm afraid I still can't wrap my

Re: [PHP-DEV] [RFC] Lazy Objects

2024-07-11 Thread Benjamin Außenhofer
Am 11.07.2024, 20:31:44 schrieb Tim Düsterhus : > Hi > > On 7/11/24 10:32, Nicolas Grekas wrote: > > > Many things are already possible in userland. That does not always mean > > > that the cost-benefit ratio is appropriate for inclusion in core. I get > > > behind the two examples in the “About L

Re: [PHP-DEV] [RFC] Static class

2024-07-11 Thread Bilge
On 25/06/2024 16:17, Derick Rethans wrote: we shouldn't be encouraging static classes as a bag of static functions, that ought to be just namespaced functions. cheers, Derick Can someone clue me in as to why grouping related functions in a file with nothing but a namespace is strictly better

Re: [PHP-DEV] [RFC] Static class

2024-07-11 Thread Lanre
On Thu, Jul 11, 2024 at 6:16 PM Bilge wrote: > On 25/06/2024 16:17, Derick Rethans wrote: > > we shouldn't be encouraging static classes as a bag of static functions, that > ought to be just namespaced functions. > > cheers, > Derick > > Can someone clue me in as to why grouping related function

Re: [PHP-DEV] [RFC] Lazy Objects

2024-07-11 Thread Rob Landers
On Fri, Jul 12, 2024, at 01:40, Benjamin Außenhofer wrote: > > > Am 11.07.2024, 20:31:44 schrieb Tim Düsterhus : >> Hi >> >> On 7/11/24 10:32, Nicolas Grekas wrote: >>> > Many things are already possible in userland. That does not always mean >>> > that the cost-benefit ratio is appropriate fo

Re: [PHP-DEV] [RFC] Lazy Objects

2024-07-11 Thread Rob Landers
On Thu, Jul 11, 2024, at 20:31, Tim Düsterhus wrote: > Hi > > On 7/11/24 10:32, Nicolas Grekas wrote: ... snip > > The $originalProxy is *not* shared with $clonedProxy. Instead, it's > > *initializers* that are shared between clones. > > And then, when we call that shared initializer in the $clo