Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122573 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 3D7A31AD8F6 for ; Tue, 5 Mar 2024 18:02:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1709661736; bh=KZpLHgVp86Klw3i5N3zM1/9NqJ/6W9ClrBLD435ZhZs=; h=Date:Subject:To:References:From:In-Reply-To:From; b=DU+rtTubci8ygUEf7o+hh3nG0otn9vKQ31Kx6mo2lPPmHjD/apofQ2Eeg/Yks4E8A dETRqRqOiPYrpOpxuujGDE6AkNsbcRaNAZVKKVkTVMITcJsi1mxlUG9kvdPnqR4a3C 3XcLZB52Kjs0WozwirKTCjO/jisFnDnYEdAO6pboWZ5DMg/xh28YgIqYewUyQyw0Gs Af7V0iWKTHYEBsea4q6hBG17/x6C/FWNQN7u+koRgCkzFfrqAN416XomCM2oStJRGa c/qJ9N9M1IwtjjrWaMEKt/frrkduzHSgEhDcN5vQE6c7KXlZfaFaPxvcQRyN1G4bqe xR1KwrNM39GOQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 117A01808A8 for ; Tue, 5 Mar 2024 18:02:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 5 Mar 2024 18:02:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1709661720; bh=QySlq9Zkh5i70dkg3sSmKi9n+DUtUyvrRwJ7JahAaaY=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=fo6YkHK1W2bOYVkxnaYl9B+iKc4u7hpXRlXHLMWNpdrFmKCc6H8bjF9WZcAejx5mm ldMln1mfdXRq6Df4XRHo35SOgo6PvEcwLsJPFSUaI1jMbAvGWxFkGR+COg9TxafECp FIvIOcX+afLnAKdBflYvKB496T2Pjcbvq42tyf6+wVwBGw3N/MCiDfWmqteYCLSxCQ ZNPzqzWn4fC9Uv13/LgxqE33hKfMcBt7b2yk26o7emZ/WGHzS/oGHKXJp8XGbqRgim TYjJzBRLaF9IAgtjvM0kMGWADiNgO88Rd20alZbfoz4Z6N9lbdnSOblcUu3i6fKEi0 JEe3Cb8F2V4YQ== Message-ID: <5f65ade1-9131-4244-ad0f-06dc1a82d917@bastelstu.be> Date: Tue, 5 Mar 2024 19:01:58 +0100 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Subject: Re: [PHP-DEV] int|float for sleep? sleep(0.1) => sleep 0.1 seconds To: Hans Henrik Bergan , PHP Internals List References: <7d05d51f-f301-4d62-b1c0-83e6a2e0632e@bastelstu.be> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) 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 email in context: For me visuals play an important role in the overall presentation of an RFC. If it's not properly formatted, it's harder to read and harder to understand the RFC. Proper formatting also is some indicator that the author actually cares about the RFC instead of just throwing stuff over the fence and letting others figure out the details. This one is simple enough and it's certainly not something that makes me vote “No” out of spite, but perhaps this is something to keep in mind for future RFCs. >> For (2) it would help if you'd explain what it means for sleep() to be > interrupted and how this can happen. I believe this is signal-handling > related, but writing it out explicitly for the folks that didn't yet > encounter it would probably make sense. > > I'm not an expert, but when researching this on Windows 10 + PHP 8.3.2, > […] > I don't know how to make it return 192 on Windows.. Anyone know? My remark was not just about Windows (I can't advice here either, I don't do Windows), adding a short *nix explanation of when sleep will return earlier than expected would be helpful as well. That's likely the more common case anyway. >> I'd just put a single "Do all of this in the next minor" vote there. All >> of the suggested improvements make sense to me and the breaking changes >> are mostly theoretical. > > meh, I don't want to risk the RFC getting rejected because too many > people thought it should be done in next.major instead of next.minor, > let's keep both next.minor + next.major vote options. (You're probably > right, I predict a majority vote for next.minor for all 3, but i'll > keep the vote options just in case.) Complicated voting options also risk the RFC getting rejected, especially if certain combinations of voting options are non-sense (such as 1: yes, 2: yes, 3: no). Personally I'd rather have no change at all, instead of a half-baked internally inconsistent change. >> Don't forgot to open up a dedicated explicit discussion thread once you move it into the "Discussion" phase. > > How would I even do that? Linking to > https://externals.io/message/122388 isn't sufficient? Once you are happy with the RFC contents, instead of replying to this existing thread, send a fresh email to the list, titled "RFC: Support for Floats in Sleep Function", in there link the RFC and this discussion thread and say that the discussion period is starting now. This will ensure it will pop up as a fresh email for the folks who already ignored the subthread, because they were not interested in the pre-RFC discussion while stuff is still in flux. Best regards Tim Düsterhus