Re: How to pin down a bug in Rakudo?

2017-05-24 Thread Richard Hainsworth
Ah !!! I had read about lazy and eager, but not appreciated what effect it might have. So the answer for my Tarjan module, which assumes a static network, is to replace '.sort' with '.eager' . However, ... the point at which I was getting an error in the modules was the following code

Possible zef addition

2017-05-24 Thread Simon Proctor
So I'm playing around with Docker files (Perl 5 ATM) and one thing I'm getting quite into is trying to keep them small. An important part of this is deleting any extraneous caching info built up during the build, preferably as part of the RUN step to get intermediate layers small. (So with Perl5 a

Re: How to pin down a bug in Rakudo?

2017-05-24 Thread Timo Paulssen
Have you considered the effects of lazy evaluation for the hash's values method? .sort will eagerly evaluate the whole .values list (i.e. snapshot it) while iterating over it will include added keys and such.

Web Development using Perl 6 book - crowdfunding

2017-05-24 Thread Gabor Szabo
Hi, I hope I am not overstepping the boundaries of the mailing list here. A few days ago I've started a crowdfunding campaign http://perl6maven.com/book to finance the writing of a book called "Web Development using Perl 6 book". BTW a very early version of the book can be found here: https://lea

How to pin down a bug in Rakudo?

2017-05-24 Thread Richard Hainsworth
This is to ask advice on how to pin down what appears to be a subtle bug in Rakudo so that I can file a bug report. *Background* I am updating the work I have down on ModuleCitation, which is not efficient at present. Since I am create a recursive index, that is modules which cite modules,

Re: Module distribution

2017-05-24 Thread Ahmad Zawawi
Hi Richard, I think you need to do the following: - zef --depsonly install . Instead of - zef installdeps . Already discussed that concern in https://github.com/ugexe/zef/issues/82 :) On Wed, May 24, 2017 at 2:41 PM, Richard Hainsworth wrote: > The Ecosystem (that is the modules.perl6.org we

Module distribution

2017-05-24 Thread Richard Hainsworth
The Ecosystem (that is the modules.perl6.org web page) shows whether a module is passing its tests. The system takes the error passing information from the Travis system. The Ecosystem documentation (on distributing a module) does not give any template for Travis. It would be useful for someon

Re: Task::Star and Panda

2017-05-24 Thread Timo Paulssen
I removed the recommendation to install Task::Star yesterday, so as of writing of your email it shouldn't have been on rakudo's website at least. did you find a reference to Task::Star somewhere else?

Re: need help with "next"

2017-05-24 Thread ToddAndMargo
On 05/24/2017 01:04 AM, Richard Hainsworth wrote: see https://docs.perl6.org/language/regexes#Subrules Fascinating and way over my head. Give me a year or two to catch up.

Re: need help with "next"

2017-05-24 Thread ToddAndMargo
On 05/24/2017 01:04 AM, Richard Hainsworth wrote: On 05/23/2017 10:31 PM, Richard Hainsworth wrote: > The code below seems unnecessarily complex. > > How about: > > my @Data = q:to/SAMPLE/; > > Mission D', > Sol Wheat, > Ted Moon, > ; > > SAMPLE > > for @Data { >

Re: need help with "next"

2017-05-24 Thread Richard Hainsworth
On 05/23/2017 10:31 PM, Richard Hainsworth wrote: > The code below seems unnecessarily complex. > > How about: > > my @Data = q:to/SAMPLE/; > > Mission D', > Sol Wheat, > Ted Moon, > ; > > SAMPLE > > for @Data { > next unless m/ 'NAME' .*? '>' $=( .*? ) '<' /; >

Re: need help with "next"

2017-05-24 Thread ToddAndMargo
On 05/24/2017 12:02 AM, Norman Gaywood wrote: On 24 May 2017 at 16:40, Norman Gaywood > wrote: However, your code does not look like it will do what you want if you have multiple TASKs Yes it does. Sorry ignore me :-) Oh it had issues. They showe

Re: need help with "next"

2017-05-24 Thread ToddAndMargo
On 05/23/2017 11:40 PM, Norman Gaywood wrote: I'm a rank beginner p6 programmer so You are further along than me!

Re: need help with "next"

2017-05-24 Thread ToddAndMargo
On 05/23/2017 11:40 PM, Norman Gaywood wrote: However, your code does not look like it will do what you want if you have multiple TASKs I improved it. See my other follow post #3

Re: need help with "next"

2017-05-24 Thread ToddAndMargo
Oh, you know what, I thought it might be a good idea to throw some negative case data into the mix. This is what I came up with: #!/usr/bin/env perl6 use strict; my @Data = 'Mission A', ' Peter Meter', ' John Deer', ' Sam Horse', '',

Re: need help with "next"

2017-05-24 Thread Norman Gaywood
On 24 May 2017 at 16:40, Norman Gaywood wrote: > > However, your code does not look like it will do what you want if you have >> multiple TASKs >> > > Yes it does. Sorry ignore me :-) -- Norman Gaywood, Computer Systems Officer School of Science and Technology University of New England Armidal