Re: [Pharo-users] Pharo 7 streams API

2018-07-03 Thread Herbert Vojčík
Sven Van Caekenberghe wrote on 2. 7. 2018 16:00: On 25 Jun 2018, at 12:56, Herbert Vojčík wrote: Peter Uhnák wrote on 23. 6. 2018 15:39: Hi, I'm starting to familiarize myself with new streams, and one thing I've noticed is the removal of #lineEndConvention (which I use all the time).

Re: [Pharo-users] Pharo 7 streams API

2018-07-03 Thread Sven Van Caekenberghe
> On 3 Jul 2018, at 10:08, Herbert Vojčík wrote: > > > > Sven Van Caekenberghe wrote on 2. 7. 2018 16:00: >>> On 25 Jun 2018, at 12:56, Herbert Vojčík wrote: >>> >>> >>> >>> Peter Uhnák wrote on 23. 6. 2018 15:39: Hi, I'm starting to familiarize myself with new streams, and one

Re: [Pharo-users] Pharo 7 streams API

2018-07-03 Thread Herbert Vojčík
Sven Van Caekenberghe wrote on 3. 7. 2018 10:55: On 3 Jul 2018, at 10:08, Herbert Vojčík wrote: Sven Van Caekenberghe wrote on 2. 7. 2018 16:00: On 25 Jun 2018, at 12:56, Herbert Vojčík wrote: Peter Uhnák wrote on 23. 6. 2018 15:39: Hi, I'm starting to familiarize myself with new

Re: [Pharo-users] Pharo 7 streams API

2018-07-03 Thread Herbert Vojčík
Herbert Vojčík wrote on 3. 7. 2018 11:21: Sven Van Caekenberghe wrote on 3. 7. 2018 10:55: On 3 Jul 2018, at 10:08, Herbert Vojčík wrote: Sven Van Caekenberghe wrote on 2. 7. 2018 16:00: On 25 Jun 2018, at 12:56, Herbert Vojčík wrote: Peter Uhnák wrote on 23. 6. 2018 15:39: Hi,

Re: [Pharo-users] Pharo 7 streams API

2018-07-03 Thread Sven Van Caekenberghe
> On 3 Jul 2018, at 11:28, Herbert Vojčík wrote: > > > > Herbert Vojčík wrote on 3. 7. 2018 11:21: >> Sven Van Caekenberghe wrote on 3. 7. 2018 10:55: >>> >>> On 3 Jul 2018, at 10:08, Herbert Vojčík wrote: Sven Van Caekenberghe wrote on 2. 7. 2018 16:00: >>

Re: [Pharo-users] Pharo 7 streams API

2018-07-03 Thread Damien Pollet
On Tue, 3 Jul 2018 at 11:36, Sven Van Caekenberghe wrote: > Most probably this idea of functional composition has been discussed > before ... > Transducers (aka. Reducers) come to mind…

Re: [Pharo-users] Pharo 7 streams API

2018-07-03 Thread Steffen Märcker
I think, streams and functional composition match up nicely and transducers are a way to do this. I've introduced them earlier on this list. (I hesitated to weight into the discussion, as I won't have time to work on the Pharo port of Transducers until October.) Let me give a simplified exa

Re: [Pharo-users] Pharo 7 streams API

2018-07-03 Thread herby
Solutions to different problems. I proposed a simple generic thing that only composes functions, allowing for transformation of block arg. Transducers seem like streaming, data-flow specific, thing. Maybe yours helps the original problem in the long run. I just tried to find something to solve

Re: [Pharo-users] Pharo 7 streams API

2018-07-03 Thread Herbert Vojčík
Sven Van Caekenberghe wrote on 3. 7. 2018 11:36: On 3 Jul 2018, at 11:28, Herbert Vojčík wrote: Herbert Vojčík wrote on 3. 7. 2018 11:21: Sven Van Caekenberghe wrote on 3. 7. 2018 10:55: On 3 Jul 2018, at 10:08, Herbert Vojčík wrote: Sven Van Caekenberghe wrote on 2. 7. 2018 16

Re: [Pharo-users] Pharo 7 streams API

2018-07-03 Thread Steffen Märcker
No worries! =) Let me clarify the relation between Transducers and function composition. The basic component in the framework is the so-called ReducingFunction. This are functions that take two arguments, an 'intermediate value' and a 'current element', and map them to a new intermediate value, i

Re: [Pharo-users] Pharo 7 streams API

2018-07-03 Thread Steffen Märcker
No worries! =) Let me clarify the relation between Transducers and function composition. The main component in the framework are so-called ReducingFunctions, which are the operations you want to perform. They are functions that take two arguments, an 'intermediate value' and a 'current eleme