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

[perl #131343] [BUG] Constraining an attribute to a defined version of a type passed to a parameterized role fails.

2017-05-24 Thread via RT
# New Ticket Created by Enheh # Please include the string: [perl #131343] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131343 > # Rakudo version 2017.04.3 built on MoarVM version 2017.04-53-g66c6dda implementing Perl 6.c.

[perl #131342] cast error when using Whatever closure to index infinite lists

2017-05-24 Thread via RT
# New Ticket Created by Paweł Pabian # Please include the string: [perl #131342] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131342 > I'm not sure what proper behavior should be in this useless code below :) Probably someth

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,

[perl #131342] cast error when using Whatever closure to index infinite lists

2017-05-24 Thread Zoffix Znet via RT
On Mon, 22 May 2017 05:20:25 -0700, pawel.pab...@getresponse.com wrote: > I'm not sure what proper behavior should be in this useless code below > :) > Probably something like in "say @t[*]" - constructing items until OOM > - because Inf -1 = Inf. > > $ perl6 -e 'my @t := 1 .. *; say @t[*-1]' > Ca

[perl #131342] cast error when using Whatever closure to index infinite lists

2017-05-24 Thread Zoffix Znet via RT
On Mon, 22 May 2017 05:20:25 -0700, pawel.pab...@getresponse.com wrote: > I'm not sure what proper behavior should be in this useless code below > :) > Probably something like in "say @t[*]" - constructing items until OOM > - because Inf -1 = Inf. > > $ perl6 -e 'my @t := 1 .. *; say @t[*-1]' > Ca

[perl #131350] Useless 'Useless use' comes out of is tighter

2017-05-24 Thread Zoffix Znet via RT
On Tue, 23 May 2017 15:06:45 -0700, comdog wrote: > #`( > When I compile this code, I get the error: > > Useless use of constant value [ ] in sink context (lines 9, 9) > > I don't think it was useless because it did what I needed. > > I really wanted the ᔑ to be tighter then ., but that's no

[perl #131350] Useless 'Useless use' comes out of is tighter

2017-05-24 Thread Zoffix Znet via RT
On Tue, 23 May 2017 15:06:45 -0700, comdog wrote: > #`( > When I compile this code, I get the error: > > Useless use of constant value [ ] in sink context (lines 9, 9) > > I don't think it was useless because it did what I needed. > > I really wanted the ᔑ to be tighter then ., but that's no

[perl #131353] [BUG] can't bind to a Pair

2017-05-24 Thread Zoffix Znet via RT
On Wed, 24 May 2017 04:29:58 -0700, nadim.khe...@gmail.com wrote: > my ($y) := (Pair.new(1, 1)) ; > > fails with error: > > Too few positionals passed; expected 1 argument but got 0 Thank you for the report. However this is not a bug. See conversation in https://irclog.perlgeek.de/perl6/2017-05

[perl #131353] [BUG] can't bind to a Pair

2017-05-24 Thread Zoffix Znet via RT
On Wed, 24 May 2017 04:29:58 -0700, nadim.khe...@gmail.com wrote: > my ($y) := (Pair.new(1, 1)) ; > > fails with error: > > Too few positionals passed; expected 1 argument but got 0 Thank you for the report. However this is not a bug. See conversation in https://irclog.perlgeek.de/perl6/2017-05

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

[perl #131353] [BUG] can't bind to a Pair

2017-05-24 Thread via RT
# New Ticket Created by nadim khemir # Please include the string: [perl #131353] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131353 > my ($y) := (Pair.new(1, 1)) ; fails with error: Too few positionals passed; expected 1

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?

[perl #131351] [BUG] List.Capture crashes when List contains Pairs with non-Str keys

2017-05-24 Thread Zoffix Znet via RT
On Tue, 23 May 2017 15:59:43 -0700, c...@zoffix.com wrote: > > The culprit is this line that make an nqp::hash out of Pairs, but I > guess we don't yet have object nqp hashes? > https://github.com/rakudo/rakudo/blob/c82b72a/src/core/List.pm#L886 > > m: (class {} => 42,).Capture > Zoffix___, rak

[perl #131351] [BUG] List.Capture crashes when List contains Pairs with non-Str keys

2017-05-24 Thread Zoffix Znet via RT
On Tue, 23 May 2017 15:59:43 -0700, c...@zoffix.com wrote: > > The culprit is this line that make an nqp::hash out of Pairs, but I > guess we don't yet have object nqp hashes? > https://github.com/rakudo/rakudo/blob/c82b72a/src/core/List.pm#L886 > > m: (class {} => 42,).Capture > Zoffix___, rak

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