[squeak-dev] Re: Inefficiencies
nicolas.cellier.aka.nice at gmail.com
Thu Jul 24 11:06:41 UTC 2014
Note that asTrueFraction is not engaged in classic VM nor cog/spur because
the Float primitive for < > etc... do convert the SmallInteger parameter to
Float, which apparently is not the case in your VM...
That makes me think that it will be a problem in 64 bits image with 61bits
small int, because converting an int > 2^53 to double will be an inexact
2014-07-24 13:02 GMT+02:00 Nicolas Cellier <
nicolas.cellier.aka.nice at gmail.com>:
> Ouch, ugly side effect of exact comparison...
> Should be fixed in: Kernel-nice.860
> Avoid engaging LargeInteger arithmetic (asTrueFraction) just for testing
> the sign of a Float
> 2014-07-24 12:05 GMT+02:00 Marcel Taeumel <
> marcel.taeumel at student.hpi.uni-potsdam.de>:
>> We can add #beginsWith: and #endsWith: in those string-related classes. :)
>> View this message in context:
>> Sent from the Squeak - Dev mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev