Changes to Trunk (
http://source.squeak.org/trunk.html) in the last 24 hours:
http://lists.squeakfoundation.org/pipermail/packages/2014-March/006974.htmlName: Kernel-nice.842
Ancestors: Kernel-nice.841
Avoid using #reciprocalFloorLog:
#reciprocalFloorLog: does the same as #floorLog: just with more noise.
Once upon a time it was required, but it is not anymore and should be deprecated.
Note that floorLog: already cumulates 3 rounding errors via (self ln / base ln)
(-1 to: (Float fminDenormalized floorLog: 10) + 1 by: -1)
count: [:i |
| pow |
pow := 10 raisedTo: i.
(pow asFloat floorLog: 10) < i and: [pow asFloat >= pow]].
89
But reciprocalFloorLog: is even worse:
(-1 to: (Float fminDenormalized floorLog: 10) + 1 by: -1)
count: [:i |
| pow |
pow := 10 raisedTo: i.
(pow asFloat reciprocalFloorLog: 10) < i and: [pow asFloat >= pow]].
149
=============================================
http://lists.squeakfoundation.org/pipermail/packages/2014-March/006975.htmlName: Tools-nice.520
Ancestors: Tools-cmm.519
Don't reference #reciprocalFloorLog: in MethodFinder, it should be deprecated.
=============================================