[PHP-DEV] Make PHP JIT to generate AVX2/AVX3 for performance improvement?

2023-10-31 Thread Su, Tao
Hi Guys, A quick question: is it possible to enable AVX2/AVX3 in PHP JIT generated code, and hence can get some performance improvement? Just check the community first: if anyone has already tried that or got some experiences? before we dive into this investigation. We are discussing if we coul

Re: [PHP-DEV] Make PHP JIT to generate AVX2/AVX3 for performance improvement?

2023-10-31 Thread tag Knife
> Hi Guys, > > A quick question: is it possible to enable AVX2/AVX3 in PHP JIT generated > code, and hence can get some performance improvement? > Just check the community first: if anyone has already tried that or got > some experiences? before we dive into this investigation. > We are discussing

Re: [PHP-DEV] New RFC : empty() function

2023-10-31 Thread Alessandro Rosa
Hi Mr. Tommins, thank you very much for all your very valuable advices. You can read a more robust discussion about my RFC at https://wiki.php.net/rfc/empty_function Regards, Alessandro Rosa Il giorno lun 30 ott 2023 alle ore 23:54 Rowan Tommins < rowan.coll...@gmail.com> ha scritto: > On 30/

Re: [PHP-DEV] New RFC : empty() function

2023-10-31 Thread Marcos Marcolin
Hi Alessandro, It would be better to add syntax highlighting to the code examples of your RFC, it is not legal to read/understand the texts as if they were just texts. --- Marcos Marcolin Software Engineer | PHP www.marcosmarcolin.com.br

Re: [PHP-DEV] New RFC : empty() function

2023-10-31 Thread Alessandro Rosa
Hi Marcos, thanks for feedback. Could you be clearer about your advice and gimme an example please? Alessandro Il giorno mar 31 ott 2023 alle ore 11:59 Marcos Marcolin < marcolin...@gmail.com> ha scritto: > Hi Alessandro, > > It would be better to add syntax highlighting to the code examples of

Re: [PHP-DEV] New RFC : empty() function

2023-10-31 Thread G. P. B.
On Tue, 31 Oct 2023 at 11:23, Alessandro Rosa wrote: > Hi Marcos, > > thanks for feedback. > Could you be clearer about your advice and gimme an example please? > I have edited the RFC content to add highlighting, hopefully you can now use that to improve the RFC text. However, I'm not very con

Re: [PHP-DEV] New RFC : empty() function

2023-10-31 Thread Alessandro Rosa
Thank you, G.P.B. for editing and for sharing your honest viewpoint. I saw your corrections and already fixed some flaws in the RFC text. I raised issues that are critical on my modest viewpoint. I see languages as an optimal mix between semantics, grammar and performance. The built-in empty() fun

Re: [PHP-DEV] New RFC : empty() function

2023-10-31 Thread Kamil Tekiela
Hi Alessandro, I would still advise to just let this empty() construct die a natural death. If you want to change anything, you must remember that it's basically a syntactic sugar for `@!$var` For example if(empty($var)) is just if(@!$var) To change this function would require changing the rule

Re: [PHP-DEV] Make PHP JIT to generate AVX2/AVX3 for performance improvement?

2023-10-31 Thread Pierre Joye
On Tue, Oct 31, 2023, 3:57 PM tag Knife wrote: > > Hi Guys, > > > > A quick question: is it possible to enable AVX2/AVX3 in PHP JIT generated > > code, and hence can get some performance improvement? > > Just check the community first: if anyone has already tried that or got > > some experiences

[PHP-DEV] Re: New RFC : empty() function

2023-10-31 Thread Brady Wetherington via internals
> I have posted a new RFC at this link https://wiki.php.net/rfc/empty_function > where I suggested some improvements to the standard built-in empty() > function and provided a number of examples. Is your "is_empty()" function equivalent to something like: function is_empty($param = null) { re

Re: [PHP-DEV] Re: New RFC : empty() function

2023-10-31 Thread Alessandro Rosa
Hi Mr. Wetherington, thanks for appreciating my proposal. According to the contents of my RFC under discussion, I suppose my version works better than the code you presented. The RFC contents do illustrate the details of the performance as well as some examples have been included. For what conce

Re: [PHP-DEV] Re: [RFC][Under discussion] RFC1867 for non-POST HTTP verbs

2023-10-31 Thread Ilija Tovilo
Hi Derick On Wed, Oct 18, 2023 at 6:10 PM Derick Rethans wrote: > On Fri, 13 Oct 2023, Ilija Tovilo wrote: > > > https://wiki.php.net/rfc/rfc1867-non-post > > The only comment I would have is that I probably would be in favour of > not leaving the "config" argument (to over ride per call the > po

RE: [PHP-DEV] Make PHP JIT to generate AVX2/AVX3 for performance improvement?

2023-10-31 Thread Su, Tao
> > > Hi Guys, > > > > > > A quick question: is it possible to enable AVX2/AVX3 in PHP JIT > generated > > > code, and hence can get some performance improvement? > > > Just check the community first: if anyone has already tried that or > got > > > some experiences? before we dive into this invest