[squeak-dev] Daily Commit Log

commits at source.squeak.org commits at source.squeak.org
Sun Mar 16 23:55:02 UTC 2014


Changes to Trunk (http://source.squeak.org/trunk.html) in the last 24 hours:

http://lists.squeakfoundation.org/pipermail/packages/2014-March/006974.html

Name: 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.html

Name: Tools-nice.520
Ancestors: Tools-cmm.519

Don't reference #reciprocalFloorLog: in MethodFinder, it should be deprecated.

=============================================


More information about the Squeak-dev mailing list