Timespecs and the comparator Göran Weinholt (13 Nov 2019 16:44 UTC)
Re: Timespecs and the comparator John Cowan (13 Nov 2019 17:25 UTC)
Re: Timespecs and the comparator Lassi Kortela (13 Nov 2019 17:34 UTC)
Re: Timespecs and the comparator John Cowan (13 Nov 2019 18:01 UTC)
Re: Timespecs and the comparator Lassi Kortela (14 Nov 2019 12:18 UTC)

Re: Timespecs and the comparator Lassi Kortela 14 Nov 2019 12:18 UTC

> I thought of that, but the use of "seconds" might suggest "current-second",
> which is a non-Posix count that includes leap seconds and is based on a
> specific epoch.  Given these things, you can construct a comparator if you
> need one, using timespec?, timespec=?, timespec<?, and timespec->inexact
> and then hashing the resulting float.

LGTM

> I guess adding timespec-hash
> wouldn't hurt; in the sample implementation for 128, floats are hashed with
> inexact->exact and abs.

timespec-hash would hash timespec objects and not ordinary floats?