[squeak-dev] Time primitives

David T. Lewis lewis at mail.msen.com
Wed Apr 8 12:16:03 UTC 2015


On Wed, Apr 08, 2015 at 10:33:45AM +0200, Levente Uzonyi wrote:
> On Tue, 7 Apr 2015, David T. Lewis wrote:
> 
> >On Tue, Apr 07, 2015 at 11:42:21PM +0200, Levente Uzonyi wrote:
> >>On Tue, 7 Apr 2015, David T. Lewis wrote:
> >>
> >>>I am away and cannot double check the code right now, but the primitives
> >>>should be consistent across Cog and the interpreter VM. There had been
> >>>some confusion due to the early fork between trunk and oscog, but I
> >>>believe that Eliot and I got it sorted out quite a while ago.
> >>
> >>I can confirm this, but the primitives don't work correctly on the
> >>Interpreter VM (4.10.2.2614 on linux from squeakvm.org):
> >>
> >>Time primUTCMicrosecondClock. "==> 2177453298247316"
> >>Time primPosixMicrosecondClockWithOffset. "==> #(519745201 7200)"
> >>DateAndTime now. "==> 2015-04-07T23:30:28.665+01:00"
> >>
> >>The same with CogVM:
> >>
> >>Time primUTCMicrosecondClock. "==> 3605895086935548"
> >>Time primPosixMicrosecondClockWithOffset. "==> #(1428442289746346 7200)"
> >>DateAndTime now. "==> 2015-04-07T23:31:32.962+01:00"
> >>
> >
> >Why do you think this is wrong? I suspect that the one hour time zone
> 
> Let me reorder the lines to show the actual problems:
> 
> 
> Time primUTCMicrosecondClock. "==> 2177453298247316"
> Time primUTCMicrosecondClock. "==> 3605895086935548"
> 
> The value from the Interpreter VM (first line) is significantly smaller 
> than the value from Cog. The former can't be right.

Ah sorry, I see it now. It must have been a problem in the interpreter
VM as of 4.10.2-2614 that has long since been fixed. It is fine in any
of the interpreter VMs that I am using now, but broken in 4.10.2-2614.

So we need an update of the interpreter VM builds on squeakvm.org/unix.

Dave



More information about the Squeak-dev mailing list