Scheme language standardization process
Thomas Bushnell, BSG scripsit:
Anything described as "number of seconds" is evidently an integer,
> If the interface says "number of seconds since the epoch, not counting leap
> seconds" (which is what Posix's gettimeofday is), then let it be that. "Add
> 1" to the value means "add one second". The precision is about the precision
> of the particular numeric representation.
since we count things with integers. And yet you say not to think
about integers.
> Remember to separate the exactness of a numeric representation from theIn principle, no; in practice, it definitely does. There are no Schemes
> accuracy of the underlying clock. If the accuracy is 10ms (typical for lots
> of systems), then that does not mean it's pointless for the numeric
> representation to be exact. So I agree that there should be no
> recommendation about what sort of numeric format to use. Keep in mind that
> "inexact rational" does not mean "floating point" in Scheme.
out there which use something other than floats for inexact rationals,
and the great bulk of them use 64-bit IEEE floats only.
> I think we should have a interface for it, but alas, Linux and Posix don'tIt sounds like you are talking about precision, not accuracy. If the
> provide a way to get it. Given NTP and the granularity of clock interrupts,
> the accuracy is known in some sense to the system as a whole, but in
> practice difficult to determine.
clock is off by a day because I botched setting it, do you expect the
system to know that and report it?
_______________________________________________ Scheme-reports mailing list Scheme-reports@x http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports