unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Eli Zaretskii <eliz@gnu.org>
Cc: eggert@cs.ucla.edu, 12430@debbugs.gnu.org
Subject: bug#12430: Glitches caused by addition of psec to timers
Date: Fri, 14 Sep 2012 09:18:47 -0400	[thread overview]
Message-ID: <jwvligcbvdo.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <83mx0tunby.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 14 Sep 2012 09:32:01 +0300")

>> > Wouldn't it be better to leave timers at their previous size of 8, and
>> > instead allow the usecs element be a floating-point number?
>> I doubt there's code out there that depends on the size of
>> this structure, so adding fields to it should be safe.
> But NOT adding fields is even safer, no?

In general, yes, but not if it is replaced by modifying another field.
And since the danger that we're trying to avoid is vanishingly small,
I'd rather not worry about it.  If/when someone bumps into a package
that breaks because of it, we will see what to do.

> I will remember that when I write a hard-realtime application in
> Emacs Lisp.

Nanoseconds are real.  Think about it: if the eldoc timer is always late
by a nanosecond each time, over your whole lifetime this might add up to
your wasting a measurable amount of your life waiting unnecessarily.
Do you really want to die cursing those wasted nanoseconds?
I didn't think so,


        Stefan





  reply	other threads:[~2012-09-14 13:18 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-13  6:04 bug#12430: Glitches caused by addition of psec to timers Paul Eggert
2012-09-13 12:49 ` Stefan Monnier
2012-09-13 16:26   ` Paul Eggert
2012-09-13 16:57   ` Eli Zaretskii
2012-09-13 18:48     ` Paul Eggert
2012-09-13 19:19       ` Eli Zaretskii
2012-09-13 19:37         ` Paul Eggert
2012-09-13 20:11           ` Glenn Morris
2012-09-14  6:32           ` Eli Zaretskii
2012-09-13 21:35     ` Stefan Monnier
2012-09-14  6:32       ` Eli Zaretskii
2012-09-14 13:18         ` Stefan Monnier [this message]
2012-09-14 13:44           ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvligcbvdo.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=12430@debbugs.gnu.org \
    --cc=eggert@cs.ucla.edu \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).