Re: [Pharo-users] looking for another iterator :)

2018-01-21 Thread Ben Coman
On 22 January 2018 at 00:47, Stephane Ducasse wrote: > Hi Ben and Clement > > I have a collection (a dictionary in my case) and I want to get > maximum 5 bindings out of it and iterate on them. > I want keysAndValuesDo: or do: but only up to 5 elements. > > aDict atMax: 5 do: [:each | ] "atMax" s

Re: [Pharo-users] looking for another iterator :)

2018-01-21 Thread Richard Sargent
SomeCollection every: 5 do: [:subset | subset collect: [:each | ...]] etc. If you want the first five only, return from the do: block. Possibly, #every: by itself answers an iterator / collection conforming instance. On Jan 21, 2018 14:47, "James Foster" wrote: > Since ‘atMax:’ doesn’t seem as

Re: [Pharo-users] looking for another iterator :)

2018-01-21 Thread James Foster
Since ‘atMax:’ doesn’t seem as clear to me, I’d prefer ‘upToMax:’ or ‘withMax:’ or (especially) the following: upTo: anInteger timesDo: aBlock upTo: anInteger timesSelect: aBlock upTo: anInteger timesCollect: aBlock James Foster > On Jan 21, 2018, at 8:56 AM, Stephane Ducasse wrote: > > I tho

Re: [Pharo-users] [Moose-dev] feenk log

2018-01-21 Thread Tudor Girba
Hi, > On Jan 21, 2018, at 10:37 PM, Ben Coman wrote: > > On 21 January 2018 at 23:55, Tudor Girba wrote: >> Hi, >> >> There is a difference in performance. The Announcement is slower (about 2-3x >> slower). However, for 1M events the difference is measured in a 200-400ms, >> which is very sm

Re: [Pharo-users] looking for another iterator :)

2018-01-21 Thread Ben Coman
On 22 January 2018 at 00:47, Stephane Ducasse wrote: > Hi Ben and Clement > > I have a collection (a dictionary in my case) and I want to get > maximum 5 bindings out of it and iterate on them. > I want keysAndValuesDo: or do: but only up to 5 elements. > > aDict atMax: 5 do: [:each | ] > > So I l

Re: [Pharo-users] [Moose-dev] Re: feenk log

2018-01-21 Thread Ben Coman
On 21 January 2018 at 23:55, Tudor Girba wrote: > Hi, > > There is a difference in performance. The Announcement is slower (about 2-3x > slower). However, for 1M events the difference is measured in a 200-400ms, > which is very small. So you mean each event <1ms difference? btw, what is the big

Re: [Pharo-users] Aare questions

2018-01-21 Thread Stephan Eggermont
Cédrick Béler wrote: > Yes sure. But at this is an important requirement for me, I prefer to > talk about it first :) Distributed systems design is a different subject. Different constraints, different solutions. Stephan

Re: [Pharo-users] Aare questions

2018-01-21 Thread Stephane Ducasse
Ok so we redid everything in parallel. Too bad anyway I will continue and my changes are in my clone. I will update the booklet once I get it. Stef On Sun, Jan 21, 2018 at 6:05 PM, Cédrick Béler wrote: > > HI cedrick > > > I tried to start a booklet with Stephane but it is too complicated right

Re: [Pharo-users] looking for another iterator :)

2018-01-21 Thread Stephane Ducasse
Now an iterator getting atMax: x elements could be better because we could them combined it with collect:, detect:... Stef On Sun, Jan 21, 2018 at 5:56 PM, Stephane Ducasse wrote: > I thought about something like that... > > SequenceableCollection >> atMax: numberOfItems do: aBlock > "Execut

Re: [Pharo-users] Aare questions

2018-01-21 Thread Hernán Morales Durand
Hi Cédrick, 2018-01-21 8:04 GMT-03:00 Cédrick Béler : > Hi Hernan, > > I decided to give a try to Aare or Workflow in Pharo 6, following > instructions in https://github.com/Netstyle/Workflow . > > > Cool :) > > I started but had to stop until the semester is finish. Next month should be > ok to c

Re: [Pharo-users] looking for another iterator :)

2018-01-21 Thread Stephane Ducasse
I thought about something like that... SequenceableCollection >> atMax: numberOfItems do: aBlock "Execute the iteration with at the maximum numberOfItems. If the receiver contains less than numberOfItems iterate them all." 1 to: (numberOfItems min: self size) do: [:index | aBlock value: (s

Re: [Pharo-users] looking for another iterator :)

2018-01-21 Thread Stephane Ducasse
Hi Ben and Clement I have a collection (a dictionary in my case) and I want to get maximum 5 bindings out of it and iterate on them. I want keysAndValuesDo: or do: but only up to 5 elements. aDict atMax: 5 do: [:each | ] So I learned from:to:do: aCollection atMax: 5 do: [:each | ] Does it make

Re: [Pharo-users] Aare questions

2018-01-21 Thread Cédrick Béler
> > > Cedrick > > My goal is one step at a time. > I do not want grand plan. Just something working in one image. Yes sure. But at this is an important requirement for me, I prefer to talk about it first :) > Stef > > On Sun, Jan 21, 2018 at 12:19 PM, Cédrick Béler wrote: >> Besides all su

Re: [Pharo-users] [Moose-dev] Re: feenk log

2018-01-21 Thread Tudor Girba
Hi, There is a difference in performance. The Announcement is slower (about 2-3x slower). However, for 1M events the difference is measured in a 200-400ms, which is very small. The benefit of using Announcement is that we can reuse the tooling around Announcement, such as blogging and debuggin

[Pharo-users] feenk log

2018-01-21 Thread Tudor Girba
Hi, Here is an update of the work on Bloc and GT. As always, please do let us know what you think. Bloc: - Eventing saw a deep overhaul. They are now dispatched using the Announcements engine. The previous mechanism is still in place in order to help people compare the impact. In the process,

Re: [Pharo-users] Aare questions

2018-01-21 Thread Stephane Ducasse
Now I got all the TestGraphs green by commenting the graphiz dependencies. On Sun, Jan 21, 2018 at 3:33 PM, Stephane Ducasse wrote: > I got all the WfTestFlow green. > So now we can study the execution a bit better. > > On Sun, Jan 21, 2018 at 3:28 PM, Stephane Ducasse > wrote: >> HI cedrick >>

Re: [Pharo-users] Aare questions

2018-01-21 Thread Stephane Ducasse
I got all the WfTestFlow green. So now we can study the execution a bit better. On Sun, Jan 21, 2018 at 3:28 PM, Stephane Ducasse wrote: > HI cedrick > > >> To solve this « pb », just create WADynamicVariable as a subclass of >> DynamicVariable already in Pharo. > > Ok I will do it. What is impor

Re: [Pharo-users] Aare questions

2018-01-21 Thread Stephane Ducasse
HI cedrick > To solve this « pb », just create WADynamicVariable as a subclass of > DynamicVariable already in Pharo. Ok I will do it. What is important is to *share* knowledge and code. So I changed and publish the code in my branch to make CurrentWorkflowManager an dynamic variable. Before I j

Re: [Pharo-users] Pharo 7 image cannot write changes message on startup

2018-01-21 Thread Alistair Grant
On 21 January 2018 at 15:14, Sanjay Minni wrote: > The message "... cannot write changes ... check that you have write > permissions ..." is still there but I I install packages I can see .changes > file increasing in size Right. This isn't a fix, it just opens the files after the initial attemp

Re: [Pharo-users] Aare questions

2018-01-21 Thread Serge Stinckwich
On Sun, Jan 21, 2018 at 3:06 PM, Stephane Ducasse wrote: > Cedrick > > My goal is one step at a time. > I do not want grand plan. Just something working in one image. > ​Yes be able to reproduce/run old cold is the first step. ​There was some discussions some months ago about resu​rrecting ​mic

Re: [Pharo-users] Pharo 7 image cannot write changes message on startup

2018-01-21 Thread Sanjay Minni
The message "... cannot write changes ... check that you have write permissions ..." is still there but I I install packages I can see .changes file increasing in size regards Sanjay Alistair Grant wrote > Hi Sanjay, > > On 21 January 2018 at 12:10, Sanjay Minni < > sm@ > > wrote: >> Hullo >>

Re: [Pharo-users] Aare questions

2018-01-21 Thread Serge Stinckwich
On Sun, Jan 21, 2018 at 9:02 AM, Hernán Morales Durand < hernan.mora...@gmail.com> wrote: > Hi, > > I decided to give a try to Aare or Workflow in Pharo 6, following > instructions in https://github.com/Netstyle/Workflow . However, the > installation script raised a Warning about missing WADynamic

Re: [Pharo-users] Aare questions

2018-01-21 Thread Stephane Ducasse
Cedrick My goal is one step at a time. I do not want grand plan. Just something working in one image. Stef On Sun, Jan 21, 2018 at 12:19 PM, Cédrick Béler wrote: > Besides all suggested ideas on the previous mail, what’s very important to me > is being able to run processes between several imag

Re: [Pharo-users] looking for another iterator :)

2018-01-21 Thread Clément Bera
I don't think we do. Do you need it on SequenceableCollection or HashedCollection too ? Recently I was trying to iterate over the first N elements of a collection and since there was no #first:do: I used #from:to:do:. I guess you could use that too: aCollection from: 1 to: (aCollection size min:

Re: [Pharo-users] Pharo 7 image cannot write changes message on startup

2018-01-21 Thread Alistair Grant
Hi Sanjay, On 21 January 2018 at 12:10, Sanjay Minni wrote: > Hullo > > Can someone help with fixing this issue, > I am unable to use Pharo 7 image on windows 10 till this is done I'm not regularly using Windows, but a workaround is to create a startup file with: SourceFiles close; ensureOpen

Re: [Pharo-users] Aare questions

2018-01-21 Thread Cédrick Béler
Besides all suggested ideas on the previous mail, what’s very important to me is being able to run processes between several images considering 1 image = 1 actor. At first, we can consider both actor being on the same image (what Stephane wants first) but my requirement number 1 is having 1 act

Re: [Pharo-users] Pharo 7 image cannot write changes message on startup

2018-01-21 Thread Sanjay Minni
Hullo Can someone help with fixing this issue, I am unable to use Pharo 7 image on windows 10 till this is done regards Alistair Grant wrote > Hi Sanjay, > > You're not the only one. :-) This problem has been reported on the > pharo-dev mailing list as well. > > Cheers, > Alistair > > > On

Re: [Pharo-users] Aare questions

2018-01-21 Thread Cédrick Béler
Hi Hernan, > I decided to give a try to Aare or Workflow in Pharo 6, following > instructions in https://github.com/Netstyle/Workflow . Cool :) I started but had to stop until the semester is finish. Next month should be ok to continue on that. > However, the > installation script raised a Wa

Re: [Pharo-users] Aare questions

2018-01-21 Thread Norbert Hartl
I‘m in there, too, because I feel the same importance. Need to allocate some time Norbert > Am 21.01.2018 um 11:46 schrieb Stephane Ducasse : > > Hi hernan > > I will try to allocate more time to understand the execution because I > think that this is important > for our community to get a wor

Re: [Pharo-users] Aare questions

2018-01-21 Thread Stephane Ducasse
Hi hernan I will try to allocate more time to understand the execution because I think that this is important for our community to get a workflow engine. So I take it as a reverse engineering exercise. Now I'm super busy so I will get slow on it. Stef On Sun, Jan 21, 2018 at 9:31 AM, Hernán Mora

Re: [Pharo-users] looking for another iterator :)

2018-01-21 Thread Ben Coman
On 21 January 2018 at 18:36, Stephane Ducasse wrote: > Hi > > I would like to iterate at max on a certain amount of elements in a > collection. > And I was wondering if we have such iterator. I'm not clear what functionality your asking for. Could you present it as code & result if you assumed

[Pharo-users] looking for another iterator :)

2018-01-21 Thread Stephane Ducasse
Hi I would like to iterate at max on a certain amount of elements in a collection. And I was wondering if we have such iterator. Stef

Re: [Pharo-users] Aare questions

2018-01-21 Thread Hernán Morales Durand
Hi Stef, 2018-01-21 5:17 GMT-03:00 Stephane Ducasse : > Hi hernan > > I started to clean the code in my fork. > If you want to contribute let me know. I don't know enough about workflow implementations yet. However I know how to run or what to expect from them. So I could give some feedback from

Re: [Pharo-users] calypso modularity

2018-01-21 Thread Stephane Ducasse
I would like to have calypso built on top of spec so that we can rearrange some elements. Denis is starting to check the missing element of spec. Stef On Sat, Jan 20, 2018 at 9:40 PM, Peter Uhnák wrote: > Hi, > > how modular is Calypso in respect to: > > * taking the UI apart and compositing it

Re: [Pharo-users] Aare questions

2018-01-21 Thread Stephane Ducasse
Hi hernan I started to clean the code in my fork. If you want to contribute let me know. I started to clean all misclassified methods to force me to read the code. (I used them as a marker to know if I passed on the code). For the moment I made sure that the code loads. - I created the variable a

[Pharo-users] Aare questions

2018-01-21 Thread Hernán Morales Durand
Hi, I decided to give a try to Aare or Workflow in Pharo 6, following instructions in https://github.com/Netstyle/Workflow . However, the installation script raised a Warning about missing WADynamicVariable class. Should I install Seaside? I've been using a couple of bioinformatics workflows the