Re: [PHP-DEV] [RFC] User Defined Operator Overloads (v0.6)

2021-12-20 Thread Jordan LeDoux
On Mon, Dec 20, 2021 at 4:43 PM Andreas Hennings wrote: > > The exact position of where that trade-off is 'worth it' is going to > > be different for different people. But one of the areas where PHP is > > 'losing ground' to Python is how Python is better at processing data > > with maths, and

Re: [PHP-DEV] [RFC] User Defined Operator Overloads (v0.6)

2021-12-20 Thread Andreas Hennings
On Tue, 21 Dec 2021 at 00:03, Dan Ackroyd wrote: > > On Fri, 17 Dec 2021 at 18:36, Stanislav Malyshev wrote: > > > > When reading > > this code: $foo * $bar - how do I know which of the ways you took and > > where should I look for the code that is responsible for it? When I see > >

Re: [PHP-DEV] Re: PHP-FPM process management woes

2021-12-20 Thread Levi Morrison via internals
As Jakub mentioned, exactly one MINIT/MSHUTDOWN per process will only fix one of your problems, but I do like the step in that direction. I express my sympathy and condolences: I've had my own share of woes with the fact that env var and INI changes are not complete during MINIT due to fcgi

Re: [PHP-DEV] [RFC] User Defined Operator Overloads (v0.6)

2021-12-20 Thread Pierre Joye
On Tue, Dec 21, 2021, 6:37 AM Andreas Hennings wrote: > > In a class Matrix, you might want to implement three variations of the > * operator: > - Matrix * Matrix = Matrix. > - Matrix * float = Matrix. > - Matrix * Vector = Vector. > Same for other classes and operators: > - Money / float =

[PHP-DEV] Re: PHP-FPM process management woes

2021-12-20 Thread Jakub Zelenka
Hi, On Mon, Dec 20, 2021 at 6:41 PM Derick Rethans wrote: > Literature since at least 2006 (Sara's Extending and Embedding PHP > book), as well as numerous presentations that I have seen and given, and > including the online PHP Internals Book > ( >

Re: [PHP-DEV] Surveying interest regarding CMake

2021-12-20 Thread Pierre Joye
On Fri, Dec 17, 2021, 10:23 PM Kalle Sommer Nielsen wrote: > Hi > > Den fre. 17. dec. 2021 kl. 01.09 skrev Horváth V. < > friendlyan...@hotmail.com>: > > Yes, gradually phasing the current build system out is the most > > pragmatic choice, although it will incur some extra maintenance cost for >

[PHP-DEV] PHP-FPM process management woes

2021-12-20 Thread Derick Rethans
Hi! In the last few days I have been investigating Xdebug bug #2051: "Segfault on fatal error when setting xdebug.mode via php-fpm pool config" (https://bugs.xdebug.org/view.php?id=2051). I have now tracked this down to an unexpectedness in how PHP-FPM handles extension/module initialisation.

Re: [PHP-DEV] [RFC] User Defined Operator Overloads (v0.6)

2021-12-20 Thread Dan Ackroyd
On Fri, 17 Dec 2021 at 18:36, Stanislav Malyshev wrote: > > When reading > this code: $foo * $bar - how do I know which of the ways you took and > where should I look for the code that is responsible for it? When I see > $foo->times($bar) it's clear who's in charge and where I find the code. >

Re: [PHP-DEV] [RFC] User Defined Operator Overloads (v0.6)

2021-12-20 Thread Andreas Hennings
On Fri, 17 Dec 2021 at 00:25, Larry Garfield wrote: > > On Thu, Dec 16, 2021, at 1:24 PM, Andreas Hennings wrote: > > > I see the distinction in overloading based on the object type on the > > left, vs overloading based on parameter types. > > > > For a method call $a->f($b), the implementation

Re: [PHP-DEV] Surveying interest regarding CMake

2021-12-20 Thread Horváth V .
On 2021. 12. 20. 17:19, Pierre Joye wrote: We may switch to vcpkg distributions, [...], or the current autoconf php js port works too. Could you elaborate on what you mean by these? The reason why I prefer Conan here is because they provide pre-built binaries for common setups, so that makes

Re: [PHP-DEV] Surveying interest regarding CMake

2021-12-20 Thread Christoph M. Becker
On 20.12.2021 at 23:01, Horváth V. wrote: > On 2021. 12. 20. 17:19, Pierre Joye wrote: > >> We may switch to vcpkg distributions, [...], or the current autoconf >> php js port works too. > > Could you elaborate on what you mean by these? > > The reason why I prefer Conan here is because they