bug#26165: date-week-day screws up prior to AD 1

2017-03-18 Thread Zefram
I wrote: >written to perform divisions with quotient where it obviously needs >modulo. Oops, thinko there. It needs floor-quotient, the quotient-like function that uses floor rounding. modulo is the *remainder*-like function that uses floor rounding. -zefram

bug#26165: date-week-day screws up prior to AD 1

2017-03-18 Thread Zefram
Looking at day of the week, via SRFI-19's date-week-day: scheme@(guile-user)> (use-modules (srfi srfi-19)) scheme@(guile-user)> (julian-day->date 1721426 0) $1 = # scheme@(guile-user)> (date-week-day (julian-day->date 1721426 0)) $2 = 1 scheme@(guile-user)> (date-week-day (julian-day->date 172142

bug#26164: time-difference mishandles leap seconds

2017-03-18 Thread Zefram
Computing the duration of the period between two UTC times, using SRFI-19 mechanisms: scheme@(guile-user)> (use-modules (srfi srfi-19)) scheme@(guile-user)> (define t0 (date->time-utc (make-date 0 59 59 23 30 6 2012 0))) scheme@(guile-user)> (define t1 (date->time-utc (make-date 0 1 0 0 1 7 2012

bug#26163: time-difference doesn't detect error of differing time types

2017-03-18 Thread Zefram
scheme@(guile-user)> (use-modules (srfi srfi-19)) scheme@(guile-user)> (time-difference (make-time time-tai 0 1) (make-time time-utc 0 1)) $1 = # SRFI-19 is explicit that it "is an error" if the arguments to time-difference are of different time types, and correspondingly the Guile documentation

bug#26162: time-duration screws up negative durations

2017-03-18 Thread Zefram
Computing a difference between two SRFI-19 times, using time-difference, produces sensible results if the result is positive, but often nonsense if it's negative: scheme@(guile-user)> (use-modules (srfi srfi-19)) scheme@(guile-user)> (time-difference (make-time time-tai 0 1) (make-time time-tai 1

bug#26138: website: Lepton-EDA is using Guile

2017-03-18 Thread Ludovic Courtès
Hi Peter, Peter TB Brett skribis: > Lepton EDA is a suite of electronics CAD tools that relies heavily on > Guile as an extension language, and increasingly for some core > functionality, such as the netlisting layer. It would be great to get > a mention on the Guile website as a project that u

bug#26151: date-year-day screws up leap days prior to AD 1

2017-03-18 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, Mar 18, 2017 at 01:10:58AM +, Zefram wrote: [...] > Where did you get the idea to use a non-linear year numbering? What's > your opinion of SRFI-19's (lack of) text on this matter? You should > consider the possibility of changing your