Re: [MacRuby-devel] Strange NSDate behavior building 32 bit v 64 bit (Richard Sepulveda)

2011-02-01 Thread macruby
Thanks for looking into that Vincent. My 2 cents, for what it is worth: - NEVER use floating point for equality checks. Ever. Not only is the precision misleading (Radix 2 - isms/ etc.), but 32 vs. 64 ... etc. get in the way, quite often, in fact - If NSDate in particular, "always use NSDate

Re: [MacRuby-devel] Strange NSDate behavior building 32 bit v 64 bit (Richard Sepulveda)

2011-02-01 Thread Vincent Isambart
> My conclusions, > - 0.7 and 0.9 fix return the correct time now, 0.9 fix can't do necessary > time arithmetic > - Ruby Time.to_f is broken in all 3 versions > - Bignum.to_f is broken in all 3 versions > - I believe the to_f method is behind all of these problems but i haven't had > time to find

[MacRuby-devel] Strange NSDate behavior building 32 bit v 64 bit (Richard Sepulveda)

2011-02-01 Thread Richard Sepulveda
Here is an update on what is going on with the NSDate issues. i have been working with 3 version's of MacRuby. MacRuby 0.7 with Vincent's first suggested modification (commenting out the NSDate clause in objc.m (This essentially makes MacRuby use a real NSDate object instead of converting it i

Re: [MacRuby-devel] Subject: Re: Strange NSDate behavior building 32 bit v 64 bit

2011-02-01 Thread Laurent Sansonetti
Hi Richard, 0.7 is a bit old at this point, I recommend using the latest release, 0.8. This said, nightly builds have been pretty stable so far, so you may want to try one too. This is basically what will be released as 0.9 very soon (this week maybe!). Laurent On Jan 31, 2011, at 7:59 PM, Ri