2017-06-01 22:22 GMT+02:00 commits(a)source.squeak.org
<commits(a)source.squeak.org>:
> Eliot Miranda uploaded a new version of Morphic to project The Trunk:
> http://source.squeak.org/trunk/Morphic-eem.1340.mcz
>
> =============== Diff against Morphic-eem.1339 ===============
>
> + (anEntry isBehavior and: [anEntry name == aSymbol]) ifFalse: "When is this ever false?"
> + [anEntry := anEntry class].
> - (anEntry isKindOf: Class)
> - ifFalse: [anEntry := anEntry class].
How nice, this saves me a tour to the inbox. Now you can hassle-freely
go to traits mentioned in a uses: clause via browseIt, instead of
being taken to the class Trait.
The condition is false for globals such as Smalltalk and SystemOrganization.
Hi,
At a timescale that only can be described as geological I am moving the existing planet squeak and friends [http://planet.squeak.org/](http://planet.squeak.org/) to a new box and will be maintaining it.
Lots of the links have rotted over time. If you have a squeak or pharo related blog could you glance at the links on the right hand side of planet.squeak.org and see if your blog is listed, and, if so make sure the feed link is ok? If it is not listed if you send me the info I will add it.
Finally, does someone have an opinion about what to do with Andreas' blog? I would like to leave it... And what about the others that are no longer updated but still work?
cheers
bruce
Eliot Miranda uploaded a new version of SUnitGUI to project The Trunk:
http://source.squeak.org/trunk/SUnitGUI-eem.68.mcz
==================== Summary ====================
Name: SUnitGUI-eem.68
Author: eem
Time: 1 June 2017, 2:20:29.979374 pm
UUID: 47ec06e5-6ff4-4475-9034-b298e6f98544
Ancestors: SUnitGUI-ul.67
If Flaps is present (and not loading for the first time) run the initialize method to make sure TestRunner is in the Flaps Tools registry.
=============== Diff against SUnitGUI-ul.67 ===============
Item was added:
+ (PackageInfo named: 'SUnitGUI') preamble: '"below, add code to be run before the loading of this package"
+ "If Flaps is present (and not loading for the first time) run the initialize method to make sure TestRunner is in the Flaps Tools registry."
+ (Smalltalk classNamed: #TestRunner) ifNotNil:
+ [:trc|
+ trc environment at: #Flaps ifPresent: [ :fc | trc initialize]]'!
Eliot Miranda uploaded a new version of Network to project The Trunk:
http://source.squeak.org/trunk/Network-eem.198.mcz
==================== Summary ====================
Name: Network-eem.198
Author: eem
Time: 2 June 2017, 12:12:33.771626 pm
UUID: d5a7bb03-2ab4-45fd-9032-e190d4e154ed
Ancestors: Network-pre.197
Correct deadlineSecs:. There is no roll over problem with the clock scheme from Squeak 5 on.
=============== Diff against Network-pre.197 ===============
Item was changed:
----- Method: Socket class>>deadlineSecs: (in category 'utilities') -----
deadlineSecs: secs
+ "Answer a deadline time in milliseconds a given number of seconds from now.
+ Note that because the millisecondClockValue is derived from the non-wrapping
+ 61-bit microsecond clock there is no roll over issue."
- "Return a deadline time the given number of seconds from now."
+ ^Time millisecondClockValue + (secs * 1000) truncated
- self deprecated: 'Using this method may result in clock rollover related bug. Don''t use it.'.
- ^ Time millisecondClockValue + (secs * 1000) truncated
!
Nicolas Cellier uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-nice.1107.mcz
==================== Summary ====================
Name: Kernel-nice.1107
Author: nice
Time: 2 June 2017, 12:13:19.450751 am
UUID: 597f9f85-fe7b-430a-8ba2-1dd548dc246f
Ancestors: Kernel-eem.1106
Correct digitLength for negative SmallInteger
The length was overestimated for some numbers, for example
self assert: -16rFF01 digitLength = 2.
With old code it would answer 3.
Indeed, the binary representation is 16r...FFFFFF00FF
After shifting once, we got 16r....FFFFFF00, that is -256 and we shifted yet another time.
digitLength works on magnitude (like LargeInteger) so we have to take absolute value, but care of SmallInteger minVal abs which is a LargePositiveInteger with same trick as digitAt:
=============== Diff against Kernel-eem.1106 ===============
Item was changed:
----- Method: SmallInteger>>digitLength (in category 'system primitives') -----
digitLength
"Answer the number of indexable fields in the receiver. This value is the
same as the largest legal subscript. Included so that a SmallInteger can
behave like a LargePositiveInteger or LargeNegativeInteger."
| value length |
length := 1.
+ (value := self) < -255
- value := self.
- value >= 0
ifTrue:
+ [length := 2.
+ value := (-256 - self bitShift: -8) + 1 "carefully negate SmallInteger minVal"].
+ [value > 255] whileTrue:
+ [value := value bitShift: -8.
+ length := length + 1].
- [[value > 255] whileTrue:
- [value := value bitShift: -8.
- length := length + 1]]
- ifFalse:
- [[value < -255] whileTrue:
- [value := value bitShift: -8.
- length := length + 1]].
^length!
Hi All, but especially release builders,
there may be an issue with the Flaops registry. The default
initialization is Flaps class>>#initializeFlapsQuads. But there are
additional class initializers that add to the Flaps registry, e.g.
TestRunner class>>registerInToolsFlap. If we unload flaps and then reload
it we will lose all the extra ones, such as TestRunner's. So for release
we should run all implementors of registerInToolsFlap
or registerInFlapsRegistry (or rather the relevant senders of
registerQuad:forFlapNamed:) to ensure all the classes that want to be in
the Flaps registry are there.
Note that if instead of a Flaps registry there was a class-side "I should
be in the Flaps registry" pragma, then this kind of error wouldn't happen.
Either the pragmas would be collected every time the flaps registry was
opened, or the Flaps registry would be updated whenever a method with the
pragma was added or removed.
On Thu, Jun 1, 2017 at 2:20 PM, <commits(a)source.squeak.org> wrote:
> Eliot Miranda uploaded a new version of SUnitGUI to project The Trunk:
> http://source.squeak.org/trunk/SUnitGUI-eem.68.mcz
>
> ==================== Summary ====================
>
> Name: SUnitGUI-eem.68
> Author: eem
> Time: 1 June 2017, 2:20:29.979374 pm
> UUID: 47ec06e5-6ff4-4475-9034-b298e6f98544
> Ancestors: SUnitGUI-ul.67
>
> If Flaps is present (and not loading for the first time) run the
> initialize method to make sure TestRunner is in the Flaps Tools registry.
>
> =============== Diff against SUnitGUI-ul.67 ===============
>
> Item was added:
> + (PackageInfo named: 'SUnitGUI') preamble: '"below, add code to be run
> before the loading of this package"
> + "If Flaps is present (and not loading for the first time) run the
> initialize method to make sure TestRunner is in the Flaps Tools registry."
> + (Smalltalk classNamed: #TestRunner) ifNotNil:
> + [:trc|
> + trc environment at: #Flaps ifPresent: [ :fc | trc initialize]]'!
>
>
>
--
_,,,^..^,,,_
best, Eliot
Eliot Miranda uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-eem.376.mcz
==================== Summary ====================
Name: Graphics-eem.376
Author: eem
Time: 1 June 2017, 10:36:17.709391 am
UUID: b6953526-6eff-43a5-8cc6-9ac9c4b37f82
Ancestors: Graphics-eem.375
Add thriceLighter and thriceDarker for more visible gradients.
=============== Diff against Graphics-eem.375 ===============
Item was added:
+ ----- Method: Color>>thriceDarker (in category 'transformations') -----
+ thriceDarker
+ "Answer a significantly darker shade of this color."
+
+ ^ self adjustSaturation: 0.09 brightness: -0.22!
Item was added:
+ ----- Method: Color>>thriceLighter (in category 'transformations') -----
+ thriceLighter
+ "Answer a significantly lighter shade of this color."
+
+ ^ self adjustSaturation: -0.09 brightness: 0.22!