Re: [Pharo-users] Hot to retrieve values from Nested Dictionaries

2017-04-24 Thread Esteban A. Maringolo
2017-04-24 16:10 GMT-03:00 Ramon Leon : > On 04/24/2017 11:16 AM, Esteban A. Maringolo wrote:> >> For these use cases it >> would be nice to have some sort of syntax sugar >> as with the cascade operator, but with a chaining operator instead. > This doesn't even require syntactic sugar, just objec

Re: [Pharo-users] Hot to retrieve values from Nested Dictionaries

2017-04-24 Thread Ramon Leon
On 04/24/2017 11:16 AM, Esteban A. Maringolo wrote:> For these use cases it would be nice to have some sort of syntax sugar as with the cascade operator, but with a chaining operator instead. This doesn't even require syntactic sugar, just objects, and this is a more general problem even with

Re: [Pharo-users] Hot to retrieve values from Nested Dictionaries

2017-04-24 Thread Udo Schneider
If you are using NeoJSON you might want to take a look at the NeoJSONObject class. It's basically a Dictionary with "JavaScript" behavior. I.e. you can simply use messages to access keys and non existing keys return nil. Your example can thus be written as: val := dict1 key1 key2 key3. When us

Re: [Pharo-users] [Ann] Pharo Sprint App to improve coordination during Pharo Sprints

2017-04-24 Thread K K Subbu
On Monday 24 April 2017 08:00 PM, Juraj Kubelka wrote: Please, can you send me a screenshot? Or submit the screenshot here https://github.com/JurajKubelka/PharoSprint/issues/new Done. I think the error appears because when a login fails, the message causes a horiz scroll bar to be added to th

[Pharo-users] Sending byte array in a JSON format

2017-04-24 Thread Juraj Kubelka
Hi, I was playing with GitHub Gist API and I have queried the following Gist: https://gist.github.com/mbostock/5503544 I was interested how the PNG image is returned: https://gist.github.com/mbostock/5503544#file-thumbnail-png

Re: [Pharo-users] Hot to retrieve values from Nested Dictionaries

2017-04-24 Thread Peter Uhnak
Maybe we could introduce `@` message, so one can chain them and then even execute keyword without parenthesis Dictionary>>@ aKey ^ at: aKey dict @ 'key1' @ 'key2' @ 'key3' dict @ 'key1' @ 'key2' @ 'key3' select: [ :each | ... ] I'm always adding this when hacking around, maybe we could

Re: [Pharo-users] Hot to retrieve values from Nested Dictionaries

2017-04-24 Thread Esteban A. Maringolo
For these use cases it would be nice to have some sort of syntax sugar as with the cascade operator, but with a chaining operator instead. The chaining operator would send the message to the result of the previous statement instead of the original receiver as in the semicolon cascade operator (;).

Re: [Pharo-users] Hot to retrieve values from Nested Dictionaries

2017-04-24 Thread Markus Böhm
Tx for advice. P.S.: I got nested dictionaries after JSON API call at wunderground weather API. To see all the response in Pharo inspector "live" is really great :-) BR Mike On Mon, Apr 24, 2017 at 7:51 PM, Cyril Ferlicot D. wrote: > Le 24/04/2017 à 19:42, Markus Böhm a écrit : > > May I ask:

Re: [Pharo-users] Hot to retrieve values from Nested Dictionaries

2017-04-24 Thread Cyril Ferlicot D.
Le 24/04/2017 à 19:42, Markus Böhm a écrit : > May I ask: > What's the idiomatic way to retrieve values from nested dictionaries? > > (((dict1 at: 'key1') at: 'key2') at: 'key3') > > Are all the brackets really necessary? > > BR Mike Hi, To know if brackets are necessary you can use the "Forma

Re: [Pharo-users] Hot to retrieve values from Nested Dictionaries

2017-04-24 Thread Juraj Kubelka
> On Apr 24, 2017, at 14:42, Markus Böhm wrote: > > May I ask: > What's the idiomatic way to retrieve values from nested dictionaries? > > (((dict1 at: 'key1') at: 'key2') at: 'key3') > > Are all the brackets really necessary? I think so, without the parenthesis, it is interpreted as one mess

[Pharo-users] Hot to retrieve values from Nested Dictionaries

2017-04-24 Thread Markus Böhm
May I ask: What's the idiomatic way to retrieve values from nested dictionaries? (((dict1 at: 'key1') at: 'key2') at: 'key3') Are all the brackets really necessary? BR Mike

Re: [Pharo-users] [Ann] Pharo Sprint App to improve coordination during Pharo Sprints

2017-04-24 Thread Juraj Kubelka
> On Apr 24, 2017, at 05:29, Esteban Lorenzano wrote: > > Hi, > >> On 24 Apr 2017, at 09:04, Alexandre Bergel wrote: >> >> Hi! >> >> One very important aspect of Juraj’s work, is that _participants at a sprint >> should use the sprint tool_. It comes with the latest Pharo image (i.e. what

Re: [Pharo-users] Gathering statistics on messages sent to an object

2017-04-24 Thread Alistair Grant
Hi Denis, On Mon, Apr 24, 2017 at 03:48:46PM +0200, Denis Kudriashov wrote: > Hi Alistair. > > Do you know that you are able to count any message send? (not only external). > For this you need prevent meta recursion. Now inside message processing you > do: > > aMessage sendTo: anObject > >

Re: [Pharo-users] [Ann] Pharo Sprint App to improve coordination during Pharo Sprints

2017-04-24 Thread Juraj Kubelka
Hi Subbu, > On Apr 24, 2017, at 03:05, K K Subbu wrote: > > On Sunday 23 April 2017 08:43 PM, Juraj Kubelka wrote: > >> As the Pharo Sprint is organized in several places around the world, we >> miss the connection with other guys. For that reason we decided to move >> the physical whiteboard t

Re: [Pharo-users] [Ann] Pharo Sprint App to improve coordination during Pharo Sprints

2017-04-24 Thread Juraj Kubelka
> On Apr 23, 2017, at 16:41, Offray Vladimir Luna Cárdenas > wrote: > > Congrats Juraj. Pretty useful for the community. This idea of inside image > tools talking with community channels is starting to take form. > I would like to discuss with others within the Pharo image. It has a potential

Re: [Pharo-users] [Ann] Pharo Sprint App to improve coordination during Pharo Sprints

2017-04-24 Thread Juraj Kubelka
> On Apr 23, 2017, at 15:43, Sven Van Caekenberghe wrote: > > Impressive work indeed. > > I guess Marcus will be happy, you save him a lot of work being 'master of > ceremony' at Sprints. This is also my idea, that the ‘master of ceremony’ will get distributed :-) Juraj > >> On 23 Apr 201

Re: [Pharo-users] [Ann] Pharo Sprint App to improve coordination during Pharo Sprints

2017-04-24 Thread Juraj Kubelka
> On Apr 23, 2017, at 15:38, Ben Coman wrote: > > > > On Sun, Apr 23, 2017 at 11:13 PM, Juraj Kubelka > wrote: > Hi, > > We are happy to announce a new application called Pharo Sprint App. The main > idea of the application comes from the whiteboard that hav

[Pharo-users] [ANN] Pharo Spring Friday, April 28

2017-04-24 Thread marcus.den...@inrira.fr
Hi, There will be again a Sprint this Friday. More infos here: https://association.pharo.org/event-2492488

Re: [Pharo-users] Gathering statistics on messages sent to an object

2017-04-24 Thread Denis Kudriashov
Hi Alistair. Do you know that you are able to count any message send? (not only external). For this you need prevent meta recursion. Now inside message processing you do: aMessage sendTo: anObject which produces another intercepting message #perform:withArguments which repeats original message s

Re: [Pharo-users] PMMatrix vs Matrix

2017-04-24 Thread Stephane Ducasse
yes we should! On Mon, Apr 24, 2017 at 2:15 PM, Serge Stinckwich < serge.stinckw...@gmail.com> wrote: > Yes this what I was going to answer as well. Matrix in Pharo does not > implement the usual mathematical operators like PMMatrix. > Maybe should be rename as Array2D in order to avoid confusio

[Pharo-users] Pharodays early rate deadline

2017-04-24 Thread Stephane Ducasse
Hi the deadline to register to pharodays is approaching. After 29 of April you will pay more and we will not secure room for the diner. Please register Stef

[Pharo-users] Gathering statistics on messages sent to an object

2017-04-24 Thread Alistair Grant
If you subscribe to pharo-dev you will have seen that I've been looking at the primitives used in DiskStore. As part of that investigation I wanted to get an idea of which messages are typically sent to DiskStore and how often. Denis Kudriashov provided a neat package that implements a "halt on n

Re: [Pharo-users] PMMatrix vs Matrix

2017-04-24 Thread Serge Stinckwich
Yes this what I was going to answer as well. Matrix in Pharo does not implement the usual mathematical operators like PMMatrix. Maybe should be rename as Array2D in order to avoid confusion in the future. Regards, On Mon, Apr 24, 2017 at 1:54 PM, Stephane Ducasse wrote: > the matrix class is not

Re: [Pharo-users] PMMatrix vs Matrix

2017-04-24 Thread Stephane Ducasse
the matrix class is not really a matrix more a 2dArray no eigen values and the rest stef On Mon, Apr 24, 2017 at 12:04 PM, frankl1_miky wrote: > Hi, > Polymath come with PMMatrix class . what is the difference between this > class and the native Matrix class. > > > > -- > View this message

Re: [Pharo-users] [Ann] Pharo Sprint App to improve coordination during Pharo Sprints

2017-04-24 Thread Alexandre Bergel
Oh! Juraj, wasn’t it supposed to be packaged in the last version? Alexandre > On Apr 24, 2017, at 10:29 AM, Esteban Lorenzano wrote: > > Hi, > >> On 24 Apr 2017, at 09:04, Alexandre Bergel wrote: >> >> Hi! >> >> One very important aspect of Juraj’s work, is that _participants at a sprint

[Pharo-users] PMMatrix vs Matrix

2017-04-24 Thread frankl1_miky
Hi, Polymath come with PMMatrix class . what is the difference between this class and the native Matrix class. -- View this message in context: http://forum.world.st/PMMatrix-vs-Matrix-tp4943819.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Re: [Pharo-users] [Ann] Pharo Sprint App to improve coordination during Pharo Sprints

2017-04-24 Thread Esteban Lorenzano
Hi, > On 24 Apr 2017, at 09:04, Alexandre Bergel wrote: > > Hi! > > One very important aspect of Juraj’s work, is that _participants at a sprint > should use the sprint tool_. It comes with the latest Pharo image (i.e. what > has to be used in a sprint). no it doesn’t :) (and it wont, at lea

Re: [Pharo-users] [Ann] Pharo Sprint App to improve coordination during Pharo Sprints

2017-04-24 Thread Guillermo Polito
Nice :) Thanx Juraj On Mon, Apr 24, 2017 at 9:04 AM, Alexandre Bergel wrote: > Hi! > > One very important aspect of Juraj’s work, is that _participants at a > sprint should use the sprint tool_. It comes with the latest Pharo image > (i.e. what has to be used in a sprint). > > So, let’s use it o

Re: [Pharo-users] [Ann] Pharo Sprint App to improve coordination during Pharo Sprints

2017-04-24 Thread Alexandre Bergel
Hi! One very important aspect of Juraj’s work, is that _participants at a sprint should use the sprint tool_. It comes with the latest Pharo image (i.e. what has to be used in a sprint). So, let’s use it on Friday! Cheers, Alexandre > On Apr 24, 2017, at 8:05 AM, K K Subbu wrote: > > On Su