Tip: cannot unbox to a native string: P6opaque, Failure

2017-07-14 Thread ToddAndMargo
Hi All, I just recently upgraded from Fedora Core 25 to 26. Several of my programs were broken whit the following. Our intrepid heroes over on the chat line gave me this workaround whilst they fix Rakudo. ./WordProTimeAdd.pl6 ===SORRY!=== This type cannot unbox to a native string:

[perl #127951] Probably removing a p6bool where it shouldn't

2017-07-14 Thread Jan-Olof Hendig via RT
On Fri, 07 Oct 2016 14:03:39 -0700, barto...@gmx.de wrote: > I think the p6bool is removed here: > https://github.com/rakudo/rakudo/blob/605f272881a76f0c5a9e352670a1e61eaa627ca6/src/Perl6/Optimizer.nqp#L1300 > > As far as I understand, the following code shows the problem at a > lower level (no di

[perl #130760] Rakudo's usage message in the case of illegal options is printed to STDOUT, not STDERR

2017-07-14 Thread jn...@jnthn.net via RT
On Fri, 14 Jul 2017 09:15:59 -0700, jn...@jnthn.net wrote: > On Sat, 11 Feb 2017 00:42:38 -0800, moritz wrote: > > $ perl6 --type=foo examples/dirstat.p6 > /dev/null > > $ > > This is Rakudo version 2017.01-170-gc0a907f built on MoarVM version > > 2017.01-31-g20dfa6b > > implementing Perl 6.c. > >

[perl #130760] Rakudo's usage message in the case of illegal options is printed to STDOUT, not STDERR

2017-07-14 Thread jn...@jnthn.net via RT
On Fri, 14 Jul 2017 09:15:59 -0700, jn...@jnthn.net wrote: > On Sat, 11 Feb 2017 00:42:38 -0800, moritz wrote: > > $ perl6 --type=foo examples/dirstat.p6 > /dev/null > > $ > > This is Rakudo version 2017.01-170-gc0a907f built on MoarVM version > > 2017.01-31-g20dfa6b > > implementing Perl 6.c. > >

[perl #130760] Rakudo's usage message in the case of illegal options is printed to STDOUT, not STDERR

2017-07-14 Thread jn...@jnthn.net via RT
On Sat, 11 Feb 2017 00:42:38 -0800, moritz wrote: > $ perl6 --type=foo examples/dirstat.p6 > /dev/null > $ > This is Rakudo version 2017.01-170-gc0a907f built on MoarVM version > 2017.01-31-g20dfa6b > implementing Perl 6.c. > > Error messages should go to STDERR, so that pipes and redirects work a

[perl #130760] Rakudo's usage message in the case of illegal options is printed to STDOUT, not STDERR

2017-07-14 Thread jn...@jnthn.net via RT
On Sat, 11 Feb 2017 00:42:38 -0800, moritz wrote: > $ perl6 --type=foo examples/dirstat.p6 > /dev/null > $ > This is Rakudo version 2017.01-170-gc0a907f built on MoarVM version > 2017.01-31-g20dfa6b > implementing Perl 6.c. > > Error messages should go to STDERR, so that pipes and redirects work a

[perl #129247] [CONC][BUG] Wait on a Supply after begin tap is hanging

2017-07-14 Thread Jan-Olof Hendig via RT
On Thu, 13 Jul 2017 16:49:00 -0700, ug...@cpan.org wrote: > Resolved in: https://github.com/rakudo/rakudo/commit/32b72cd > > Tests: https://github.com/perl6/roast/commit/927b026 Bug fixed and tests added, closing issue.

Re: Is there a bash/shlex-like processor with double-quotes handling?

2017-07-14 Thread Mark Carter
On 14/07/2017 15:23, Lucas Buchala wrote: Alternatively, the «...» builtin operator already does some kind of word splitting respecting quotes, if that fits your needs: Thanks. I take it you are referring to the "hyper" operator (?) It looks good, but it doesn't quite work: my $d = "hello

[perl #131673] `is rw` on anon parameter causes "inconsistent bind result" error

2017-07-14 Thread jn...@jnthn.net via RT
On Wed, 28 Jun 2017 16:05:50 -0700, c...@zoffix.com wrote: > Works as expected: > 23:03 m: sub ($x is rw) {}(42) > camelia rakudo-moar 2a8d1e: OUTPUT: «Parameter '$x' expected > a writable container, but got Int value␤ in sub at line 1␤ > in block at line 1␤␤

[perl #131673] `is rw` on anon parameter causes "inconsistent bind result" error

2017-07-14 Thread jn...@jnthn.net via RT
On Wed, 28 Jun 2017 16:05:50 -0700, c...@zoffix.com wrote: > Works as expected: > 23:03 m: sub ($x is rw) {}(42) > camelia rakudo-moar 2a8d1e: OUTPUT: «Parameter '$x' expected > a writable container, but got Int value␤ in sub at line 1␤ > in block at line 1␤␤

[perl #131488] [BUG] .map as return value of sunk Promise doesn't get sunk

2017-07-14 Thread jn...@jnthn.net via RT
On Fri, 02 Jun 2017 15:43:07 -0700, c...@zoffix.com wrote: > Normally, if you sink a .map, it gets eagerly evaluated: > > m: .map: &say > rakudo-moar ef9872: OUTPUT: «a␤b␤c␤» > m: for ^1 { .map: &say; $ = 42 } > rakudo-moar ef9872: OUTPUT: «a␤b␤c␤» > > However, this doesn't ha

[perl #131488] [BUG] .map as return value of sunk Promise doesn't get sunk

2017-07-14 Thread jn...@jnthn.net via RT
On Fri, 02 Jun 2017 15:43:07 -0700, c...@zoffix.com wrote: > Normally, if you sink a .map, it gets eagerly evaluated: > > m: .map: &say > rakudo-moar ef9872: OUTPUT: «a␤b␤c␤» > m: for ^1 { .map: &say; $ = 42 } > rakudo-moar ef9872: OUTPUT: «a␤b␤c␤» > > However, this doesn't ha

[perl #131365] [IO] IO::Handle.getc returns too-many chars at the end of file

2017-07-14 Thread jn...@jnthn.net via RT
On Thu, 25 May 2017 08:26:18 -0700, c...@zoffix.com wrote: > IRC: https://irclog.perlgeek.de/perl6-dev/2017-05-25#i_14636375 > > Note how the last item in the returned list contains a string with > more than on character: > > 15:17 Zoffix m: with '/tmp/foo70'.IO { .spurt: "a♥c"; with .open { >

[perl #131383] [IO][MOAR][REGRESSION] .readchars($size) sometimes returns $size+1 chars

2017-07-14 Thread jn...@jnthn.net via RT
On Sat, 27 May 2017 07:06:59 -0700, c...@zoffix.com wrote: > Seems something with decoding actually, since using char of different > size or adding another char after the heart avoids the issue: > > m: my $f1 = "/tmp/foo121212".IO; $f1.spurt: "fo♥"; > $f1.open.readchars(2).say > rakudo-moar 0c5f

[perl #131365] [IO] IO::Handle.getc returns too-many chars at the end of file

2017-07-14 Thread jn...@jnthn.net via RT
On Thu, 25 May 2017 08:26:18 -0700, c...@zoffix.com wrote: > IRC: https://irclog.perlgeek.de/perl6-dev/2017-05-25#i_14636375 > > Note how the last item in the returned list contains a string with > more than on character: > > 15:17 Zoffix m: with '/tmp/foo70'.IO { .spurt: "a♥c"; with .open { >

[perl #131383] [IO][MOAR][REGRESSION] .readchars($size) sometimes returns $size+1 chars

2017-07-14 Thread jn...@jnthn.net via RT
On Sat, 27 May 2017 07:06:59 -0700, c...@zoffix.com wrote: > Seems something with decoding actually, since using char of different > size or adding another char after the heart avoids the issue: > > m: my $f1 = "/tmp/foo121212".IO; $f1.spurt: "fo♥"; > $f1.open.readchars(2).say > rakudo-moar 0c5f

Log::Any performances

2017-07-14 Thread Julien Simonet
Hello, My question is about Log::Any and performances. When Log::Any was integrated into Bailador, a problem of performances was found (https://github.com/jsimonet/log-any/issues/1). Log::Any is a class using the singleton pattern, which have a list of Log::Any::Pipeline instances as a parameter

Re: Is there a bash/shlex-like processor with double-quotes handling?

2017-07-14 Thread Elizabeth Mattijsen
zef install Text::CSV This is a native port of Perl 5’s Text::CSV by the original author. > On 14 Jul 2017, at 11:12, Philip Hazelden wrote: > > If you haven't yet, you might want to look into a CSV parser. I think that if > you configure one of those to split on whitespace, that should give y

Re: Is there a bash/shlex-like processor with double-quotes handling?

2017-07-14 Thread Philip Hazelden
If you haven't yet, you might want to look into a CSV parser. I think that if you configure one of those to split on whitespace, that should give you the results you want. (Now with added reply all.) On Fri, 14 Jul 2017, 08:42 Mark Carter, wrote: > Is there a function that can decompose a strin

Is there a bash/shlex-like processor with double-quotes handling?

2017-07-14 Thread Mark Carter
Is there a function that can decompose a string to an array separated by whitespace, but also respecting double quotes, and prefereably escape sequences? So, for example: my $d="hello \"cruel world\""; something-something($d) ; => ("hello", "cruel world")