[PHP-DEV] support for BLAKE3 hash?

2021-02-24 Thread Hans Henrik Bergan
BLAKE3 is a very fast cryptographically secure hash algorithm, when i run this implementation https://github.com/php/php-src/pull/6358 against ext/hash/bench.php on an i7-8565U, it's competing against adler32 in performance, and it's significantly faster than every other cryptographic hash (~2.6 ti

Re: [PHP-DEV] Inline conditional that returns null if falsy

2021-02-24 Thread Mike Schinkel
> On Feb 24, 2021, at 11:49 AM, Chase Peeler wrote: > > > > On Wed, Feb 24, 2021 at 11:35 AM Mike Schinkel > wrote: > >> On Feb 24, 2021, at 11:27 AM, Chase Peeler > > wrote: >> >> On Tue, Feb 23, 2021 at 11:27 PM Mike Schinkel >

Re: [PHP-DEV] [VOTE] fsync function

2021-02-24 Thread David Gebler
Voting is now open for 2 weeks on https://wiki.php.net/rfc/fsync_function Regards, David Gebler On Tue, Feb 23, 2021 at 5:15 PM David Gebler wrote: > Hi internals, > As there appear to be no objections or concerns, I intend to open voting > on https://wiki.php.net/rfc/fsync_function tomorrow an

Re: [PHP-DEV] Inline conditional that returns null if falsy

2021-02-24 Thread Chase Peeler
On Wed, Feb 24, 2021 at 11:35 AM Mike Schinkel wrote: > > On Feb 24, 2021, at 11:27 AM, Chase Peeler wrote: > > On Tue, Feb 23, 2021 at 11:27 PM Mike Schinkel > wrote: > >> > On Feb 23, 2021, at 2:05 PM, Rowan Tommins >> wrote: >> > >> > On 23/02/2021 18:41, Albert Casademont wrote: >> >> Sure

Re: [PHP-DEV] Inline conditional that returns null if falsy

2021-02-24 Thread Mike Schinkel
> On Feb 24, 2021, at 11:27 AM, Chase Peeler wrote: > > On Tue, Feb 23, 2021 at 11:27 PM Mike Schinkel > wrote: > > On Feb 23, 2021, at 2:05 PM, Rowan Tommins > > wrote: > > > > On 23/02/2021 18:41, Albert Casademont wrote: > >> Sure

Re: [PHP-DEV] Proposal: namespace the SPL

2021-02-24 Thread Levi Morrison via internals
On Thu, Feb 18, 2021 at 7:48 AM Levi Morrison wrote: > > On Thu, Feb 11, 2021 at 9:39 AM Levi Morrison wrote: > > > > Hello, everyone, > > > > There has been a lot of disagreement about namespacing, and people > > seem to have different viewpoints. I am not sure how to reconcile this > > broader

Re: [PHP-DEV] Inline conditional that returns null if falsy

2021-02-24 Thread Chase Peeler
On Tue, Feb 23, 2021 at 11:27 PM Mike Schinkel wrote: > > On Feb 23, 2021, at 2:05 PM, Rowan Tommins > wrote: > > > > On 23/02/2021 18:41, Albert Casademont wrote: > >> Sure, it's not a big deal having to write the ": null" but it doesn't > add > >> any value > > > > > > On the contrary, it adds

Re: [PHP-DEV] Inline conditional that returns null if falsy

2021-02-24 Thread David Rodrigues
Em qua., 24 de fev. de 2021 às 12:29, Michael Morris escreveu: > Javascript has this now though support isn't widespread. > > > https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining > > The most similar way to do it in PHP would be ?-> > Optional chaining

Re: [PHP-DEV] Inline conditional that returns null if falsy

2021-02-24 Thread Michael Morris
Javascript has this now though support isn't widespread. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining The most similar way to do it in PHP would be ?-> On Fri, Feb 12, 2021 at 1:46 PM Ben Ramsey wrote: > > The => is just a suggestion, other opti