Re: [Pharo-dev] Opportunity to steal good ideas from dad ;)

2015-05-22 Thread stepharo
If people wants to harvest some changes from Squeak, please do it. Collections Speed up testing different sized strings. Interval >> #sum is now O(1) instead of O(n). Introduction of Set>>#addNewElement: optimizes graph-traversal. Slightly faster SequenceableCo

Re: [Pharo-dev] Opportunity to steal good ideas from dad ;)

2015-05-22 Thread stepharo
http://www.smalltalkhub.com/#!/~emaringolo/SortFunctions I use them extensively. Esteban A. Maringolo I had a look. Apart from the fact that for some reason, the extensions on MAElement are in the Core package, hence loading just Core gave errors, things looked OK. This is generally useful

Re: [Pharo-dev] Opportunity to steal good ideas from dad ;)

2015-05-22 Thread stepharo
What is <=> because I found it quite not intention revealing. Le 22/5/15 11:19, p...@highoctane.be a écrit : Thinking of the <=> operator, this can be useful for things like this: dataset := #(1 3 4 5 7 8 5 2 3 0). mean := dataset average. dataset collect: [ :each | mean <=> each ] --> #(1

Re: [Pharo-dev] Opportunity to steal good ideas from dad ;)

2015-05-22 Thread Esteban A. Maringolo
2015-05-22 6:43 GMT-03:00 Sven Van Caekenberghe : >> On 21 May 2015, at 16:50, Esteban A. Maringolo wrote: >>> About the spaceship operator (<=>), is this something we'd like to have >>> around? (I like it). http://en.wikipedia.org/wiki/Three-way_comparison >> http://www.smalltalkhub.com/#!/~ema

Re: [Pharo-dev] Opportunity to steal good ideas from dad ;)

2015-05-22 Thread p...@highoctane.be
Thinking of the <=> operator, this can be useful for things like this: dataset := #(1 3 4 5 7 8 5 2 3 0). mean := dataset average. dataset collect: [ :each | mean <=> each ] --> #(1 1 -1 -1 -1 -1 -1 1 1 1) This we can also do with coll := #(1 3 4 5 7 8 5 2 3 0). mean := coll average. coll col

Re: [Pharo-dev] Opportunity to steal good ideas from dad ;)

2015-05-22 Thread Sven Van Caekenberghe
> On 21 May 2015, at 16:50, Esteban A. Maringolo wrote: > > 2015-05-21 10:01 GMT-03:00 p...@highoctane.be : >> >> >> On Thu, May 21, 2015 at 2:19 PM, Sean P. DeNigris >> wrote: >>> >>> Squeak 4.6 "Spur" Release Notes >>> http://wiki.squeak.org/squeak/6192 >> >> >> Tag sort functions looks

Re: [Pharo-dev] Opportunity to steal good ideas from dad ;)

2015-05-21 Thread Damien Pollet
On 21 May 2015 at 16:22, Max Leske wrote: > About the spaceship operator (<=>), is this something we'd like to have > around? (I like it). http://en.wikipedia.org/wiki/Three-way_comparison > > How would you make this “object oriented”? Have three singleton objects > “Less”, “Greater”, “Equal” (s

Re: [Pharo-dev] Opportunity to steal good ideas from dad ;)

2015-05-21 Thread p...@highoctane.be
On Thu, May 21, 2015 at 4:39 PM, Max Leske wrote: > > On 21 May 2015, at 16:31, p...@highoctane.be wrote: > > 56 <=> 43 --> -1 > > "abcd" <=> "defgh" --> +1 > > > I said “object oriented”… :p > Bah, let's got with lots of ifTrue:ifFalse: ... Hopefully, a kind soul will iterate on this and make

Re: [Pharo-dev] Opportunity to steal good ideas from dad ;)

2015-05-21 Thread Sven Van Caekenberghe
> On 21 May 2015, at 16:50, Esteban A. Maringolo wrote: > > 2015-05-21 10:01 GMT-03:00 p...@highoctane.be : >> >> >> On Thu, May 21, 2015 at 2:19 PM, Sean P. DeNigris >> wrote: >>> >>> Squeak 4.6 "Spur" Release Notes >>> http://wiki.squeak.org/squeak/6192 >> >> >> Tag sort functions looks

Re: [Pharo-dev] Opportunity to steal good ideas from dad ;)

2015-05-21 Thread Sven Van Caekenberghe
> On 21 May 2015, at 15:01, p...@highoctane.be wrote: > > Tag sort functions looks great to have around. > > About the spaceship operator (<=>), is this something we'd like to have > around? (I like it). http://en.wikipedia.org/wiki/Three-way_comparison http://objology.blogspot.be/2010/11/tag

Re: [Pharo-dev] Opportunity to steal good ideas from dad ;)

2015-05-21 Thread Esteban A. Maringolo
2015-05-21 10:01 GMT-03:00 p...@highoctane.be : > > > On Thu, May 21, 2015 at 2:19 PM, Sean P. DeNigris > wrote: >> >> Squeak 4.6 "Spur" Release Notes >> http://wiki.squeak.org/squeak/6192 > > > Tag sort functions looks great to have around. > > About the spaceship operator (<=>), is this somethin

Re: [Pharo-dev] Opportunity to steal good ideas from dad ;)

2015-05-21 Thread Max Leske
> On 21 May 2015, at 16:31, p...@highoctane.be wrote: > > 56 <=> 43 --> -1 > > "abcd" <=> "defgh" --> +1 I said “object oriented”… :p > > > Just get a numerical result out of it. > > Phil > > > > On Thu, May 21, 2015 at 4:22 PM, Max Leske > wrote: > >> On 21

Re: [Pharo-dev] Opportunity to steal good ideas from dad ;)

2015-05-21 Thread Sven Van Caekenberghe
The elegant API for multi-level sorting is more important (and orthogonal to this weird operator, there is already String>>#compare:) > On 21 May 2015, at 16:22, Max Leske wrote: > >> >> On 21 May 2015, at 15:01, p...@highoctane.be wrote: >> >> >> >> On Thu, May 21, 2015 at 2:19 PM, Sean P.

Re: [Pharo-dev] Opportunity to steal good ideas from dad ;)

2015-05-21 Thread p...@highoctane.be
56 <=> 43 --> -1 "abcd" <=> "defgh" --> +1 Just get a numerical result out of it. Phil On Thu, May 21, 2015 at 4:22 PM, Max Leske wrote: > > On 21 May 2015, at 15:01, p...@highoctane.be wrote: > > > > On Thu, May 21, 2015 at 2:19 PM, Sean P. DeNigris > wrote: > >> Squeak 4.6 "Spur" Releas

Re: [Pharo-dev] Opportunity to steal good ideas from dad ;)

2015-05-21 Thread Max Leske
> On 21 May 2015, at 15:01, p...@highoctane.be wrote: > > > > On Thu, May 21, 2015 at 2:19 PM, Sean P. DeNigris > wrote: > Squeak 4.6 "Spur" Release Notes > http://wiki.squeak.org/squeak/6192 > > Tag sort functions looks great

Re: [Pharo-dev] Opportunity to steal good ideas from dad ;)

2015-05-21 Thread p...@highoctane.be
On Thu, May 21, 2015 at 2:19 PM, Sean P. DeNigris wrote: > Squeak 4.6 "Spur" Release Notes > http://wiki.squeak.org/squeak/6192 > Tag sort functions looks great to have around. About the spaceship operator (<=>), is this something we'd like to have around? (I like it). http://en.wikipedia.org/

[Pharo-dev] Opportunity to steal good ideas from dad ;)

2015-05-21 Thread Sean P. DeNigris
Squeak 4.6 "Spur" Release Notes http://wiki.squeak.org/squeak/6192 - Cheers, Sean -- View this message in context: http://forum.world.st/Opportunity-to-steal-good-ideas-from-dad-tp4827836.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.