From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#12430: Glitches caused by addition of psec to timers Date: Thu, 13 Sep 2012 16:11:21 -0400 Message-ID: References: <50517770.6080207@cs.ucla.edu> <83wqzxvp0x.fsf@gnu.org> <50522A90.2080208@cs.ucla.edu> <83obl9vig0.fsf@gnu.org> <505235F3.3080909@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1347567145 16842 80.91.229.3 (13 Sep 2012 20:12:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Sep 2012 20:12:25 +0000 (UTC) Cc: 12430@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 13 22:12:28 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TCFlw-0005yb-1B for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Sep 2012 22:12:24 +0200 Original-Received: from localhost ([::1]:56158 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCFls-0008DT-4N for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Sep 2012 16:12:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCFll-0007za-Re for bug-gnu-emacs@gnu.org; Thu, 13 Sep 2012 16:12:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCFlg-0002gz-P9 for bug-gnu-emacs@gnu.org; Thu, 13 Sep 2012 16:12:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51040) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCFlg-0002gr-Ma for bug-gnu-emacs@gnu.org; Thu, 13 Sep 2012 16:12:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TCFmX-0000Zl-Pi for bug-gnu-emacs@gnu.org; Thu, 13 Sep 2012 16:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Sep 2012 20:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12430 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 12430-submit@debbugs.gnu.org id=B12430.13475671382159 (code B ref 12430); Thu, 13 Sep 2012 20:13:01 +0000 Original-Received: (at 12430) by debbugs.gnu.org; 13 Sep 2012 20:12:18 +0000 Original-Received: from localhost ([127.0.0.1]:60586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TCFlq-0000Yl-44 for submit@debbugs.gnu.org; Thu, 13 Sep 2012 16:12:18 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:41689) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TCFln-0000Ye-Rd for 12430@debbugs.gnu.org; Thu, 13 Sep 2012 16:12:17 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1TCFkv-0005yi-9C; Thu, 13 Sep 2012 16:11:21 -0400 X-Spook: anthrax CIA pre-emptive BCCI interception SHA X-Ran: Qu|RnBFS[&g$;{B!/q1m}duV9c}0NhQd^kzoi?m2P)\hCz;U7i{-/F@%MAE5\\ppT:57qA X-Hue: yellow X-Attribution: GM In-Reply-To: <505235F3.3080909@cs.ucla.edu> (Paul Eggert's message of "Thu, 13 Sep 2012 12:37:23 -0700") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:64251 Archived-At: Paul Eggert wrote: > I don't see how rounding errors could be avoided. As a trivial example, if I > write '0.001' in Emacs Lisp, I get a number slightly bigger than 0.001 > due to rounding error, so the underlying OS primitives (which always > get the ceiling of the delay request) would see two nanoseconds rather > than the one that I wanted. OK, so it's only a nanosecond off, but > the point is that Emacs shouldn't be munging the low-order > bits of users' requests. Maybe you should future-proof the timer format by jumping to units of Planck time rather than picoseconds... I supposed you still need to worry about portability between Universes though (please address in Gnulib ASAP). (I wonder when the first Emacs application will be written that has a legitimate need to schedule a timer event with sub-millisecond resolution.)