Re: [PHP-DEV] int|float for sleep? sleep(0.1) => sleep 0.1 seconds

2024-03-11 Thread Gina P. Banyard
On Saturday, 9 March 2024 at 19:44, Jim Winstead wrote: > This may be a dumb question, but what's the process for determining whether > the next significant release of PHP will be a minor version or a major > version? If the adherence to semantic versioning is meant to be strict, it > doesn't

Re: [PHP-DEV] int|float for sleep? sleep(0.1) => sleep 0.1 seconds

2024-03-10 Thread Tim Düsterhus
Hi On 3/8/24 09:12, Hans Henrik Bergan wrote: Does this work for you guys? As said before, not a fan of the voting choices, because of the implicit dependencies that you would need to carefully specify. adding a short *nix explanation of when sleep will return earlier than expected would

Re: [PHP-DEV] int|float for sleep? sleep(0.1) => sleep 0.1 seconds

2024-03-09 Thread Bruce Weirdan
On Sun, Mar 10, 2024 at 2:38 AM Jim Winstead wrote: > > On Sat, Mar 9, 2024, at 1:04 PM, Bruce Weirdan wrote: > > On Sat, Mar 9, 2024, 20:46 Jim Winstead wrote: > >> If the adherence to semantic versioning is meant to be strict, > > > > PHP doesn't follow semver and never had. > > Okay, strike

Re: [PHP-DEV] int|float for sleep? sleep(0.1) => sleep 0.1 seconds

2024-03-09 Thread Jim Winstead
On Sat, Mar 9, 2024, at 1:04 PM, Bruce Weirdan wrote: > Hi Jim > > On Sat, Mar 9, 2024, 20:46 Jim Winstead wrote: >> If the adherence to semantic versioning is meant to be strict, > > PHP doesn't follow semver and never had. Okay, strike that and replace it with "adherence to the documented

Re: [PHP-DEV] int|float for sleep? sleep(0.1) => sleep 0.1 seconds

2024-03-09 Thread Bruce Weirdan
Hi Jim On Sat, Mar 9, 2024, 20:46 Jim Winstead wrote: > If the adherence to semantic versioning is meant to be strict, PHP doesn't follow semver and never had.

Re: [PHP-DEV] int|float for sleep? sleep(0.1) => sleep 0.1 seconds

2024-03-09 Thread Jim Winstead
On Sat, Mar 9, 2024, at 5:07 AM, Jakub Zelenka wrote: > On Fri, Mar 8, 2024 at 6:30 PM Jim Winstead wrote: >> On Fri, Mar 8, 2024, at 12:12 AM, Hans Henrik Bergan wrote: >> > On Tue, 5 Mar 2024 at 20:17, Larry Garfield wrote: >> >> >> >> A 3 way up-down vote doesn't make sense. What happens if

Re: [PHP-DEV] int|float for sleep? sleep(0.1) => sleep 0.1 seconds

2024-03-09 Thread Jakub Zelenka
On Fri, Mar 8, 2024 at 6:30 PM Jim Winstead wrote: > On Fri, Mar 8, 2024, at 12:12 AM, Hans Henrik Bergan wrote: > > On Tue, 5 Mar 2024 at 20:17, Larry Garfield > wrote: > >> > >> A 3 way up-down vote doesn't make sense. What happens if none of the 3 > options reaches 66%? > >> > >> The viable

Re: [PHP-DEV] int|float for sleep? sleep(0.1) => sleep 0.1 seconds

2024-03-08 Thread Jim Winstead
On Fri, Mar 8, 2024, at 12:12 AM, Hans Henrik Bergan wrote: > On Tue, 5 Mar 2024 at 20:17, Larry Garfield wrote: >> >> A 3 way up-down vote doesn't make sense. What happens if none of the 3 >> options reaches 66%? >> >> The viable options here are a single RCV vote (which we've done before), or

Re: [PHP-DEV] int|float for sleep? sleep(0.1) => sleep 0.1 seconds

2024-03-08 Thread Larry Garfield
On Fri, Mar 8, 2024, at 8:12 AM, Hans Henrik Bergan wrote: > On Tue, 5 Mar 2024 at 20:17, Larry Garfield wrote: >> >> A 3 way up-down vote doesn't make sense. What happens if none of the 3 >> options reaches 66%? >> >> The viable options here are a single RCV vote (which we've done before), or

Re: [PHP-DEV] int|float for sleep? sleep(0.1) => sleep 0.1 seconds

2024-03-08 Thread Hans Henrik Bergan
On Tue, 5 Mar 2024 at 20:17, Larry Garfield wrote: > > A 3 way up-down vote doesn't make sense. What happens if none of the 3 > options reaches 66%? > > The viable options here are a single RCV vote (which we've done before), or a > single "Should we do this" vote that requires 66%, followed

Re: [PHP-DEV] int|float for sleep? sleep(0.1) => sleep 0.1 seconds

2024-03-05 Thread Tim Düsterhus
Hi On 3/5/24 14:09, Hans Henrik Bergan wrote: I don't want to spend too much effort on nitpicks, but if someone volunteers to improve it, I'd be happy to add it, in which case please send a PR to https://github.com/divinity76/stuff/blob/phprfc/2024/sleep_function_float_support.md To set my

Re: [PHP-DEV] int|float for sleep? sleep(0.1) => sleep 0.1 seconds

2024-03-05 Thread Larry Garfield
On Tue, Mar 5, 2024, at 1:09 PM, Hans Henrik Bergan wrote: > Voting has now been simplified to 3x no/php 8.4/php 9.0 questions. > (I actually would've preferred the original 6, would have been > unambiguous if people are supposed to checkbox only 8.4 or both 8.4 > and 9.0, and would have been

Re: [PHP-DEV] int|float for sleep? sleep(0.1) => sleep 0.1 seconds

2024-03-05 Thread Hans Henrik Bergan
Voting has now been simplified to 3x no/php 8.4/php 9.0 questions. (I actually would've preferred the original 6, would have been unambiguous if people are supposed to checkbox only 8.4 or both 8.4 and 9.0, and would have been easier to see the % of people who voted only 9.0, I think. But I don't

Re: [PHP-DEV] int|float for sleep? sleep(0.1) => sleep 0.1 seconds

2024-02-29 Thread Tim Düsterhus
Hi On 2/26/24 12:26, Hans Henrik Bergan wrote: Made a RFC draft: https://wiki.php.net/rfc/sleep_function_float_support First time, so I'm not surprised if there are some mistakes there. Thank you for the RFC. I have some suggestions to improve the readibility within the Wiki, as Markdown

Re: [PHP-DEV] int|float for sleep? sleep(0.1) => sleep 0.1 seconds

2024-02-29 Thread Ayesh Karunaratne
> > Made a RFC draft: https://wiki.php.net/rfc/sleep_function_float_support > > First time, so I'm not surprised if there are some mistakes there. > > Feedback is very welcome. > Hi Hans, The RFC looks great, and I am personally positive to see these proposed changes implemented in PHP. One

Re: [PHP-DEV] int|float for sleep? sleep(0.1) => sleep 0.1 seconds

2024-02-27 Thread Hans Henrik Bergan
Made a RFC draft: https://wiki.php.net/rfc/sleep_function_float_support First time, so I'm not surprised if there are some mistakes there. Feedback is very welcome. I have tried sending this email 4 times over 2 days from hans at loltek dot net and every time the email server said delivery

Re: [PHP-DEV] int|float for sleep? sleep(0.1) => sleep 0.1 seconds

2024-02-17 Thread Hans Henrik Bergan
On Fri, 16 Feb 2024 at 09:36, Alexandru Pătrănescu wrote: > > > On Fri, Feb 16, 2024 at 10:18 AM Hans Henrik Bergan wrote: >> >> Can we make sleep accept int|float? >> Made a PR: https://github.com/php/php-src/pull/13401 >> >> For years when I wanted to sleep for 0.1 seconds, it annoyed me that

Re: [PHP-DEV] int|float for sleep? sleep(0.1) => sleep 0.1 seconds

2024-02-17 Thread Alexandru Pătrănescu
On Fri, Feb 16, 2024 at 10:18 AM Hans Henrik Bergan wrote: > Can we make sleep accept int|float? > Made a PR: https://github.com/php/php-src/pull/13401 > > For years when I wanted to sleep for 0.1 seconds, it annoyed me that I > couldn't do > `sleep(0.1);` > instead I had to do > `usleep(figure

Re: [PHP-DEV] int|float for sleep? sleep(0.1) => sleep 0.1 seconds

2024-02-17 Thread Claude Pache
Hi, > > FWIW Python's `time.sleep` also works like this: > https://docs.python.org/3/library/time.html#time.sleep Python also implements the following: > If the sleep is interrupted by a signal and no exception is raised by the > signal handler, the sleep is restarted with a recomputed

[PHP-DEV] int|float for sleep? sleep(0.1) => sleep 0.1 seconds

2024-02-15 Thread Hans Henrik Bergan
Can we make sleep accept int|float? Made a PR: https://github.com/php/php-src/pull/13401 For years when I wanted to sleep for 0.1 seconds, it annoyed me that I couldn't do `sleep(0.1);` instead I had to do `usleep(figure out how many microseconds there are in 0.1 seconds and put it here);` FWIW