From phil at haphazardhouse.net Mon Feb 21 23:15:31 2011 From: phil at haphazardhouse.net (Phil Hargett) Date: Mon, 21 Feb 2011 18:15:31 -0500 Subject: [local-time-devel] Issue with local-time::%get-current-time as called by local-time:now Message-ID: <3CD0B537-C273-4DC0-B86A-A8D60EFE2944@haphazardhouse.net> If you check out this paste: http://paste.lisp.org/display/119885 You'll see inconsistent behavior of (local-time:now) when running on CCL for x86 Mac (version 1.6). Any chance you can just drop the #+ccl variants in src/local-time.lisp for %get-current-time, and just use the same default behavior based on get-universal-time? Basically, this workaround to a LispWorks bug is triggering a bug in CCL (I think) by making the external function gettimeofday inconsistently available...and I am thus unable to use the LOCAL-TIME package on all the CLs that I would like. So the attempt to leverage CCL's FFI in LOCAL-TIME is preventing my package's code from working consistently. Otherwise, thanks for a very useful package, BTW. :) From hargettp at gmail.com Tue Feb 22 02:44:50 2011 From: hargettp at gmail.com (Phil Hargett) Date: Mon, 21 Feb 2011 21:44:50 -0500 Subject: [local-time-devel] Issue with local-time::%get-current-time as called by local-time:now In-Reply-To: <3CD0B537-C273-4DC0-B86A-A8D60EFE2944@haphazardhouse.net> References: <3CD0B537-C273-4DC0-B86A-A8D60EFE2944@haphazardhouse.net> Message-ID: Actually, this patch seems to work on both CCL & LispWorks. CCL already seems to make use of gettimeofday internally, so this patch just piggybacks on that to avoid the need for LOCAL-TIME to make it's own FFI-based call to gettimeofday. Hope this helps! -------------- next part -------------- A non-text attachment was scrubbed... Name: local-time.patch Type: application/octet-stream Size: 1032 bytes Desc: not available URL: -------------- next part -------------- On Feb 21, 2011, at 6:15 PM, Phil Hargett wrote: > If you check out this paste: > > http://paste.lisp.org/display/119885 > > You'll see inconsistent behavior of (local-time:now) when running on CCL for x86 Mac (version 1.6). > > Any chance you can just drop the #+ccl variants in src/local-time.lisp for %get-current-time, and just use the same default behavior based on get-universal-time? > > Basically, this workaround to a LispWorks bug is triggering a bug in CCL (I think) by making the external function gettimeofday inconsistently available...and I am thus unable to use the LOCAL-TIME package on all the CLs that I would like. So the attempt to leverage CCL's FFI in LOCAL-TIME is preventing my package's code from working consistently. > > Otherwise, thanks for a very useful package, BTW. > > :) > >