[perl #132222] [BUG] 'HAS' Embedded C-Structs not working as documented

2017-10-04 Thread via RT
# New Ticket Created by David Warring # Please include the string: [perl #13] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=13 > From https://docs.perl6.org/language/nativecall#Embedding_CStructs_and_CUnions class Po

[perl #126883] [LTA] error message mentions parameter “$slip” (1.map: { Slip })

2017-10-04 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
This was fixed in https://github.com/rakudo/rakudo/commit/502b886e8d14dbd51b5dc201309f9f8bb0a4c3e0 Not sure why it's still not closed. Closing. On 2015-12-12 20:45:06, lloyd.fo...@gmail.com wrote: > test: > https://github.com/perl6/roast/commit/c205f71781a29a456349a791fdf912d6955fe50f > > On Sat,

[perl #127280] [LTA] error message when using restricted args in list generator (2, 3, sub ($x where * > 5) {…} … 42)

2017-10-04 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
So there are three issues: 1) ✓ no line number. RESOLVED in https://github.com/rakudo/rakudo/commit/25e9fd76e85fabda20e263b6f87e27b0673f26e2 2) ✗ it could mention '* > 5'. 3) ✓ it could mention the 2. RESOLVED in https://github.com/rakudo/rakudo/commit/f1cd8e313abff2f66b9989fe60870a6e11cf7588 On

[perl #127341] [LTA] error message mentions $!tai ( Duration.new(∞) )

2017-10-04 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
This was changed in https://github.com/rakudo/rakudo/commit/fb5db59220d38e2f9af4c747138742f157d0fabb … and now you can use anything, even NaN. Assuming that this behavior is right, testneeded. See also: https://github.com/perl6/doc/issues/1589 On 2016-01-21 12:04:33, alex.jakime...@gmail.com wr

[perl #130713] 42.expmod(-1,1) hangs

2017-10-04 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
This was resolved in this commit trio: https://github.com/rakudo/rakudo/commit/22f00cd72defbaeb1ad83187309854e33739 https://github.com/perl6/nqp/commit/b083e3471a25bf376fa89b5ec53969b870eb6ac2 https://github.com/MoarVM/MoarVM/commit/1288e7edde60b8c88afb85029dc089092db80168 「testneeded」 On 201

[perl #126757] [LTA] error message talks about ~ but there is no ~ in my code (33..126 .pick.chr)

2017-10-04 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
As far as I know, this ticket is impossible to resolve. At least not with what we have now in rakudo. To produce an error message that is more precise we'll need more information than just a line number, but we don't have that during the run time. See https://rt.perl.org/Ticket/Display.html?id=12

[perl #126802] Shaped arrays with fractional sizes (my @a[0.5])

2017-10-04 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
The first part of the ticket was resolved in https://github.com/rakudo/rakudo/commit/46dca95547949bc3d791efb2620d362a68176fdc So you can no longer create an array using 0.5. But you can still create an array with any fractional value that's larger than 1, and it will blow up later. ♥

Re: <<>> question

2017-10-04 Thread Todd Chester
On 10/04/2017 08:20 PM, Todd Chester wrote: So in this context "{$x}" means insert (interpolate) a variable into the list?  I was thinking it meant to insert a variable into a string.  Did saying <<>> automatically tell Perl6 that this was a list and not a sting? is <<>> synonymous with

Re: <<>> question

2017-10-04 Thread Todd Chester
On 10/04/2017 12:48 PM, Andy Bach wrote: > I think maybe I don't understand how <<>> is used in a and how <<>> differs from a "" <<>> is quoteword, no commas needed. You get back a list.  "" create a string, you get back a single thing. my $z=<>; (xyz abc def) is the same as my $z=<>; (xy

[perl #130604] [PARSER] Weirdness when mixing `..` and `...` without parens

2017-10-04 Thread Brian S. Julin via RT
On Mon, 02 Oct 2017 00:26:27 -0700, alex.jakime...@gmail.com wrote: > Oh. Maybe it's https://rt.perl.org/Ticket/Display.html?id=127279 ? > > On 2017-08-26 08:01:06, alex.jakime...@gmail.com wrote: > > Indeed, I'm not sure what I was smoking. > > On 2017-01-20 21:27:50, sml...@gmail.com wrote: > >

[perl #132194] $*PROGRAM-NAME is not assignable / does not change process's name

2017-10-04 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
I wonder if this needs a separate sub or variable instead of adding secret functionality to $*PROGRAM-NAME. On 2017-10-01 09:52:19, allber...@gmail.com wrote: > On Sun, Oct 1, 2017 at 12:35 PM, Zoffix Znet > wrote: > > > $*PROGRAM-NAME is supposed to be a replacement for Perl 5's $0, but it > > d

[perl #132195] Feature request: Have Test.pm6 tests accept an optional second description.

2017-10-04 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
I'll close it. Suggested use of 「or」 is rather clear, and learning about it takes exactly the same amount of effort the second optional argument will take. If anybody has to say something about it please feel free to. We can reopen the ticket if there's new information on why that particular featu

[perl #132186] [REGEX][PRECOMP] "getlex: outer index out of range" with precomped `constant` Regex

2017-10-04 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
I bisected it to https://github.com/rakudo/rakudo/commit/87288285f6f398ec7cba0900312ced4b580d79ed The error is still there but different. See https://gist.github.com/Whateverable/536231b535ec98403f2cc96a452dd5b1 Not sure if it helps though. On 2017-09-29 17:01:40, c...@zoffix.com wrote: > $ echo

[perl #131003] [ANNOYING][SEGV] Heap corruption when using Gumbo

2017-10-04 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
In this particular case it means you cannot write web scrapers using rakudo. And not only that, but it makes you feel like rakudo is completely broken if it can't even go through a few tens of pages without SEGV-ing. If Skarsnik's suspicion that the issue is in XML right, then it's not just with gu

[perl #132220] Build broken on Windows

2017-10-04 Thread via RT
# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev # Please include the string: [perl #132220] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=132220 > See upstream ticket: https://github.com/MoarVM/MoarVM/issues/718 Thi

Re: <<>> question

2017-10-04 Thread Andy Bach
> I think maybe I don't understand how <<>> is used in a and how <<>> differs from a "" <<>> is quoteword, no commas needed. You get back a list. "" create a string, you get back a single thing. my $z=<>; (xyz abc def) is the same as my $z=<>; (xyz abc def) > my $x = "ab"; ab > my $z=<>; (xyz

[perl #131003] [ANNOYING][SEGV] Heap corruption when using Gumbo

2017-10-04 Thread Sam S. via RT
What is the point of the `[ANNOYING]` tag? All bugs are probably annoying to *someone*...

[perl #132219] [@LARRY] [REGEX] `!` modifier on right-hand branch of `||` causes backtracking into the alternation

2017-10-04 Thread via RT
# New Ticket Created by Sam S. # Please include the string: [perl #132219] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=132219 > When backtracking is disabled for an alternation (via `:` modifier or `:ratchet` mode), this o

Re: <<>> question

2017-10-04 Thread ToddAndMargo
On Wed, Oct 4, 2017 at 1:29 PM, ToddAndMargo > wrote: On 10/02/2017 01:18 PM, ToddAndMargo wrote: Hi All, I am writing up a keeper note on <<>> and such. This example puzzles me. Why the space? Example of <<>> (double quote

[perl #125818] [LHF] error message: Inf.base(16)

2017-10-04 Thread Zoffix Znet via RT
On Fri, 14 Aug 2015 21:31:09 -0700, alex.jakime...@gmail.com wrote: > Code: > say Inf.base(16) > > Result: > Type check failed in assignment to '$int_part'; expected 'Int' but got > 'Failure' > in block at ./test.pl:2 > > Same thing with NaN. > > IRC log: http://irclog.perlgeek.de/perl6/2015-

[perl #125818] [LHF] error message: Inf.base(16)

2017-10-04 Thread Zoffix Znet via RT
On Fri, 14 Aug 2015 21:31:09 -0700, alex.jakime...@gmail.com wrote: > Code: > say Inf.base(16) > > Result: > Type check failed in assignment to '$int_part'; expected 'Int' but got > 'Failure' > in block at ./test.pl:2 > > Same thing with NaN. > > IRC log: http://irclog.perlgeek.de/perl6/2015-

[perl #127134] [RFC] Silent Success On Missing Commas

2017-10-04 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
IIRC the idea was that in some cases you should be able to do this without commas. I don't think we need an RFC for this, somebody just has to implement it properly. Also, I think there are several tickets related to this problem. Maybe worth looking for other ones. On 2016-01-03 10:09:47, c...@z

Re: Tip: hash indexing

2017-10-04 Thread ToddAndMargo
On 10/03/2017 11:35 PM, Richard Hainsworth wrote: The suggested solution to this thread seems odd to me. It confuses a storage structure with information about the elements, and doesn't use the power of perl6. An associative array is useful because non-integer indexes are possible and hashing

Re: <<>> question

2017-10-04 Thread ToddAndMargo
On 10/02/2017 01:18 PM, ToddAndMargo wrote: Hi All, I am writing up a keeper note on <<>> and such.  This example puzzles me.  Why the space? Example of <<>> (double quote and allow insertion of variables into strings):    $ perl6 -e 'my $x="abc"; my $y=<>; say "\$x=$x \$y=$y";'    $x=ab

[perl #131973] [RFC] Backtracking modifiers on individual atoms fail to override a regex-global `:ratchet` modifier.

2017-10-04 Thread Sam S. via RT
On Mon, 28 Aug 2017 09:20:33 -0700, sml...@gmail.com wrote: > I sent a pull request to nqp that fixes this, please review: > > https://github.com/perl6/nqp/pull/368 The PR was merged (and Rakudo's nqp version bumped). Marking the ticket TESTNEEDED. (Note that some possible tests are listed in th

[perl #130117] [REGEX] Sequential alternation `||` does not respect `:ratchet`

2017-10-04 Thread Sam S. via RT
On Mon, 28 Aug 2017 11:50:51 -0700, sml...@gmail.com wrote: > I sent a pull request which fixes this bug: > > https://github.com/perl6/nqp/pull/368 > > Please review. The PR was merged (and Rakudo's nqp version bumped). Marking the ticket TESTNEEDED. (Note that some possible tests are listed in

Re: <<>> question

2017-10-04 Thread Eirik Berg Hanssen
On Wed, Oct 4, 2017 at 7:06 PM, Andy Bach wrote: > perl6 -e 'my $y=("ab",12,"xx"); print "y=", $y.join(", "), "\n"' > perl6 -e 'my @y=("ab",12,"xx");print "y=", @y.join(", "), "\n"' > This might be a good place to remind folks that perl6 allows interpolation of method calls, so there's no need

Re: <<>> question

2017-10-04 Thread Andy Bach
> It's the same as in perl5, an array interpolated in a string shows its > elements with spaces in between. Your example has an array stored in $y. Typo alert - you were printing $x/@x, not y perl -e 'my @y=("ab",12,"xx");print "y=@y\n"' y=ab 12 xx perl6 -e 'my $y=("ab",12,"xx");print "y=$y\n"'

[perl #122709] [CONC][BUG] `await`ing a Promise in a different thread sometimes hangs

2017-10-04 Thread jn...@jnthn.net via RT
On Wed, 03 Aug 2016 12:23:32 -0700, jn...@jnthn.net wrote: > I can still reproduce it too; seems that occasionally the scheduler > starts too few threads (in fact, only one, and that is tied up with > the await, and so nothing processes the incoming message saying the > process ended). The new sch

[perl #122709] [CONC][BUG] `await`ing a Promise in a different thread sometimes hangs

2017-10-04 Thread jn...@jnthn.net via RT
On Wed, 03 Aug 2016 12:23:32 -0700, jn...@jnthn.net wrote: > I can still reproduce it too; seems that occasionally the scheduler > starts too few threads (in fact, only one, and that is tied up with > the await, and so nothing processes the incoming message saying the > process ended). The new sch

[perl #127204] [IO] for $fh.read(1024) -> $blob

2017-10-04 Thread Zoffix Znet via RT
On Thu, 07 Jan 2016 12:50:43 -0800, pmqs wrote: > Given this can be used to walk though a file > > for $fh.lines -> $line > > I assumed I would be able to iterate through a file using "read" like > this > > my $filename = "/tmp/readtest"; > spurt $filename, "abcdefg"; > > my $fh = open($filenam

[perl #127204] [IO] for $fh.read(1024) -> $blob

2017-10-04 Thread Zoffix Znet via RT
On Thu, 07 Jan 2016 12:50:43 -0800, pmqs wrote: > Given this can be used to walk though a file > > for $fh.lines -> $line > > I assumed I would be able to iterate through a file using "read" like > this > > my $filename = "/tmp/readtest"; > spurt $filename, "abcdefg"; > > my $fh = open($filenam

Re: Tip: hash indexing

2017-10-04 Thread Tom Browder
On Wed, Oct 4, 2017 at 06:23 yary wrote: > > There may be a better way for the coercion. All of this needs to be in a class called something like OrderedHash—a good exercise. Then turn it into a module for CPAN and we can all use it! Best, -Tom

Re: Tip: hash indexing

2017-10-04 Thread yary
> There may be a better way for the coercion. whatever... .say for %h.sort( * )

Re: <<>> question

2017-10-04 Thread yary
> Hi All, > I am writing up a keeper note on <<>> and such. This example > puzzles me. Why the space? It's the same as in perl5, an array interpolated in a string shows its elements with spaces in between. Your example has an array stored in $y. perl -e 'my @y=("ab",12,"xx");print "y=@x\n"' y=a