Changes to Trunk (http://source.squeak.org/trunk.html) in the last 24 hours:
http://lists.squeakfoundation.org/pipermail/packages/2009-October/001693.ht…
Name: GraphicsTests-dtl.15
Ancestors: GraphicsTests-ar.14
Add six new tests to BitBltTest provided by Juan Vuletich, reference Mantis 7407. These tests will fail until the necessary fixes have been applied to BitBltPlugin in the VM.
Two existing tests in BitBltTest (#testAlphaCompositingSimulated and #testAlphaCompositing2Simulated) should be moved to the VMMaker package as per Juan's recommendation, but are left here until the VMaker changes have been made (follow-up required).
=============================================
http://lists.squeakfoundation.org/pipermail/packages/2009-October/001694.ht…
Name: CollectionsTests-nice.105
Ancestors: CollectionsTests-ar.104
Test #isSelfEvaluating a bit deeper
=============================================
http://lists.squeakfoundation.org/pipermail/packages/2009-October/001695.ht…
Name: Collections-nice.173
Ancestors: Collections-ar.172
Correct some #isSelfEvaluating implementations that were a bit relax.
Anyway, the implementation is still weak:
Try ((0 at 1 extent: 1 at 1) -> 0) isSelfEvaluating
Then try to evaluate ((0 at 1 extent: 1 at 1) -> 0) printString
=============================================
http://lists.squeakfoundation.org/pipermail/packages/2009-October/001696.ht…
Name: Kernel-nice.282
Ancestors: Kernel-nice.281
Just a comment about #isSelfEvaluating
=============================================
http://lists.squeakfoundation.org/pipermail/packages/2009-October/001697.ht…
Name: GraphicsTests-nice.16
Ancestors: GraphicsTests-dtl.15
Some basic tests of the color wheel using #h:s:v:
(By the way, I wonder how other Smalltalk model hue, isn't it a fraction of revolution between 0 and 1 ?)
=============================================
http://lists.squeakfoundation.org/pipermail/packages/2009-October/001698.ht…
Name: Graphics-nice.85
Ancestors: Graphics-jdr.84
Make h:s:v: work in case of negative angle
=============================================
http://lists.squeakfoundation.org/pipermail/packages/2009-October/001699.ht…
Name: KernelTests-nice.104
Ancestors: KernelTests-nice.103
Test #arcTan: behavior especially near zero and negativeZero
=============================================
http://lists.squeakfoundation.org/pipermail/packages/2009-October/001700.ht…
Name: Kernel-nice.283
Ancestors: Kernel-nice.282
Make #arcTan: behave as libm atan2 near zero and negativeZero
=============================================
http://lists.squeakfoundation.org/pipermail/packages/2009-October/001701.ht…
Name: Collections-nice.174
Ancestors: Collections-nice.173
A bit of cleanup before printing every Array with a Brace notation (unless they are literal of course)
=============================================
http://lists.squeakfoundation.org/pipermail/packages/2009-October/001702.ht…
Name: Traits-nice.241
Ancestors: Traits-ar.240
remove #arraySize from FixedIdentitySet (a Trait private class)
It was unsent.
It was sole implementor.
It was a synonym for #capacity, so useless anyway
It was invoking super with a different selector, which is possible but questionable.
=============================================
http://lists.squeakfoundation.org/pipermail/packages/2009-October/001703.ht…
Name: Collections-nice.175
Ancestors: Collections-nice.174
Implement Eliot suggestion to always print Array with a brace format (unless they are literal).
Thus I renamed #printAsSelfEvaluatingFormOn: -> #printAsBraceFormOn:
If community agree on this one, then more cleanup and removal will follow
=============================================
I noticed very loooooong unresponsive periods when I commit a Kernel change.
(That can be around half an hour).
I don't know what is the cause, but it ends up when the diff is
commited to squeak-dev...
Maybe it would be worth tracing what goes on...
As I'm sure most of you have noticed we have had continued problems with
the community server seemingly in a repeat of the events of last year.
To make a long story short the latest is that the power supply has been
replaced and we are currently holding our breath waiting to see if it
remains up longer than a day or two.
Ken
Nicolas Cellier uploaded a new version of Traits to project The Trunk:
http://source.squeak.org/trunk/Traits-nice.241.mcz
==================== Summary ====================
Name: Traits-nice.241
Author: nice
Time: 30 October 2009, 11:44:57 am
UUID: f3040a5d-7396-46d0-ad3a-8246236df7b2
Ancestors: Traits-ar.240
remove #arraySize from FixedIdentitySet (a Trait private class)
It was unsent.
It was sole implementor.
It was a synonym for #capacity, so useless anyway
It was invoking super with a different selector, which is possible but questionable.
=============== Diff against Traits-ar.240 ===============
Item was removed:
- ----- Method: FixedIdentitySet>>arraySize (in category 'private') -----
- arraySize
- ^ super size!
Nicolas Cellier uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-nice.85.mcz
==================== Summary ====================
Name: Graphics-nice.85
Author: nice
Time: 30 October 2009, 9:31:17 am
UUID: c4be00d5-d749-4a62-96a8-cc23d6e50d8e
Ancestors: Graphics-jdr.84
Make h:s:v: work in case of negative angle
=============== Diff against Graphics-jdr.84 ===============
Item was changed:
----- Method: Color>>setHue:saturation:brightness: (in category 'private') -----
setHue: hue saturation: saturation brightness: brightness
"Initialize this color to the given hue, saturation, and brightness. See the comment in the instance creation method for details."
| s v hf i f p q t |
s := (saturation asFloat max: 0.0) min: 1.0.
v := (brightness asFloat max: 0.0) min: 1.0.
"zero saturation yields gray with the given brightness"
s = 0.0 ifTrue: [ ^ self setRed: v green: v blue: v ].
hf := hue asFloat.
(hf < 0.0 or: [hf >= 360.0])
+ ifTrue: [hf := hf \\ 360].
- ifTrue: [hf := hf - ((hf quo: 360.0) asFloat * 360.0)].
hf := hf / 60.0.
i := hf asInteger. "integer part of hue"
f := hf fractionPart. "fractional part of hue"
p := (1.0 - s) * v.
q := (1.0 - (s * f)) * v.
t := (1.0 - (s * (1.0 - f))) * v.
0 = i ifTrue: [ ^ self setRed: v green: t blue: p ].
1 = i ifTrue: [ ^ self setRed: q green: v blue: p ].
2 = i ifTrue: [ ^ self setRed: p green: v blue: t ].
3 = i ifTrue: [ ^ self setRed: p green: q blue: v ].
4 = i ifTrue: [ ^ self setRed: t green: p blue: v ].
5 = i ifTrue: [ ^ self setRed: v green: p blue: q ].
self error: 'implementation error'.
!