Scheme language standardization process
Thomas Bushnell, BSG scripsit:
Not at all. My proposal allows instants to be either exact or inexact
> So what I heard was that you wanted to represent an instant of time as
> an integer, with some determinate resolution, and then the predictable
> fight about whether the integer should be denominated in milliseconds,
> microseconds, or nanoseconds.
rationals. The question is, if you add 1 to a instant, do you get an
instant one second later (modulo leap seconds), or 1 ms later, or what?
This is neither accuracy, precision, nor resolution, but a fourth notion
which I will call scaling. When instants are integers, scaling and
resolution are the same thing, but not so when instants are allowed to
be non-integers.
Marc Feeley's arguments persuaded me to require inexact rationals as
the representation of instants. However, in practice these are 64-bit
floats, which means since the resolution varies with the distance of
the instant from the epoch, we currently (41 years after the epoch) can
get approximately 10^-5 resolution at best if an instant is a 64-bit
float, and it will get worse as time goes on. So I have removed the
recommendation to use inexact numbers.
Most clocks don't know their accuracy at all, never mind knowing their
accuracy accurately.
_______________________________________________ Scheme-reports mailing list Scheme-reports@x http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports