Re: Nice Channel and thread example

2017-10-30 Thread Elizabeth Mattijsen
Fixed with https://github.com/rakudo/rakudo/commit/91543fe310 , thanks for the report! > On 31 Oct 2017, at 00:32, Norman Gaywood wrote: > > Hmm, in developing this I was using an old perl6: > > This is rakudo version 2015.11-554-g3b4964b built on MoarVM version >

Re: Nice Channel and thread example

2017-10-30 Thread Elizabeth Mattijsen
This also happens on HEAD, investigating... > On 31 Oct 2017, at 00:32, Norman Gaywood wrote: > > Hmm, in developing this I was using an old perl6: > > This is rakudo version 2015.11-554-g3b4964b built on MoarVM version > 2015.11-49-g27f15d9 implementing Perl v6.b. > > I

Re: Nice Channel and thread example

2017-10-30 Thread Norman Gaywood
Hmm, in developing this I was using an old perl6: This is rakudo version 2015.11-554-g3b4964b built on MoarVM version 2015.11-49-g27f15d9 implementing Perl v6.b. I updated perl6 to the one that comes with Fedora: This is Rakudo version 2017.08 built on MoarVM version 2017.08.1 implementing Perl

Nice Channel and thread example

2017-10-29 Thread Norman Gaywood
Looking at Andrew Shitov's new "Using Perl6" book and was playing around with his "94. Parallel file processing" and came up with the following (I think nice) example. # There is a thread to populate $dir-channel by reading filenames in a directory with dir() # and $N worker threads to read the