Re: [perl #131386] Regression in ().Bag AT-KEY

2017-05-28 Thread Elizabeth Mattijsen
Thanks for the report! Fixed with https://github.com/rakudo/rakudo/commit/87d0e0a39e . Tests needed. > On 28 May 2017, at 03:46, hanenkamp (via RT) > wrote: > > # New Ticket Created by hanenkamp > # Please include the string: [perl #131386] > # in the subject

Re: [perl #131386] Regression in ().Bag AT-KEY

2017-05-28 Thread Elizabeth Mattijsen via RT
Thanks for the report! Fixed with https://github.com/rakudo/rakudo/commit/87d0e0a39e . Tests needed. > On 28 May 2017, at 03:46, hanenkamp (via RT) > wrote: > > # New Ticket Created by hanenkamp > # Please include the string: [perl #131386] > # in the subject

[perl #131389] Some parsing glitch with `\term` in a string

2017-05-28 Thread via RT
# New Ticket Created by Zoffix Znet # Please include the string: [perl #131389] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131389 > IRC: https://irclog.perlgeek.de/perl6-dev/2017-05-28#i_14648548 The first eval uses

Re: naming a class

2017-05-28 Thread Elizabeth Mattijsen
> On 28 May 2017, at 11:49, Marcel Timmerman wrote: > I've a question about naming a specific class. It is about the type > Decimal128 which I need in BSON. For the moment I want it to hold a number > and in BSON to encode and decode it to a byte stream. Later I can add >

Re: Absolute path to directory of the current perl program

2017-05-28 Thread Lloyd Fournier
After thinking about what Zoffix said, probably what you're meant to do is: $*PROGRAM.parent.absolute Which leaves the stringification (.absolute) until last. On Sun, May 28, 2017 at 4:04 PM Lloyd Fournier wrote: > FYI: > > 15:57 < llfourn> Zoffix: is there any plan to

Re: Absolute path to directory of the current perl program

2017-05-28 Thread Lloyd Fournier
FYI: 15:57 < llfourn> Zoffix: is there any plan to make .dirname and .absolute on IO::Path return an IO::Path? 15:58 < llfourn> (rather than a Str) 15:58 < Zoffix> llfourn: no 15:58 < Zoffix> .absolute is one of the two ways to stringify an IO::Path (the second being .relative) 15:58 < Zoffix>

Re: zef, zef-j, zef-m

2017-05-28 Thread Nelo Onyiah
I presume that's j for JVM and m for MoarVM. On 28 May 2017 2:42 pm, "Gabor Szabo" wrote: > Hi, > > I've just noticed that in /Applications/Rakudo/share/perl6/site/bin/ I > have 3 copies > of every script. One with a -j and one with a -m at the end just as for > zef: > > zef

Re: Absolute path to directory of the current perl program

2017-05-28 Thread Gabor Szabo
Nice. I think this would be a good addition to the docs :) You can also write $*PROGRAM.parent.parent.parent.parent.absolute; but if your relative path is too short, you might end up with a bunch of .. like this: /Users/gabor/work/perl6maven.com/../.. Gabor On Sun, May 28, 2017 at 9:10

zef, zef-j, zef-m

2017-05-28 Thread Gabor Szabo
Hi, I've just noticed that in /Applications/Rakudo/share/perl6/site/bin/ I have 3 copies of every script. One with a -j and one with a -m at the end just as for zef: zef zef-j zef-m The files seem to be identical. Why are there 3 and what is their purpose? Gabor

[perl #128462] [BUG] Unspace after a sigil-less term causes parser error

2017-05-28 Thread Sam S. via RT
This bug is still present in This is Rakudo version 2017.05-272-gfa7aa1c36 built on MoarVM version 2017.05-25-g62bc54e9 implementing Perl 6.c.

[perl #126595] Cannot bind a Seq to a variable list

2017-05-28 Thread Sam S. via RT
This was fixed by Zoffix one month ago (including tests): https://rt.perl.org/Ticket/Display.html?id=131222#txn-1458062 Closing.

[perl #128054] [BUG] In a string enclosed in parens, a {}-interpolation can't access the topic $_ of a statement modifier

2017-05-28 Thread Sam S. via RT
This bug is still present in This is Rakudo version 2017.05-134-g0c5fe56cc built on MoarVM version 2017.05-25-g62bc54e9 implementing Perl 6.c.

[perl #126569] [BUG] xx-repeated expression enclosed in parens can't access the topic $_ of a statement modifier

2017-05-28 Thread Sam S. via RT
Still present in This is Rakudo version 2017.05-134-g0c5fe56cc built on MoarVM version 2017.05-25-g62bc54e9 implementing Perl 6.c.

[perl #127974] [CONC] sprintf() not threadsafe/reentrant if the format tokens use explicit indices

2017-05-28 Thread Sam S. via RT
Still present in Rakudo version 2017.05-272-gfa7aa1c36 built on MoarVM version 2017.05-25-g62bc54e9 implementing Perl 6.c.

naming a class

2017-05-28 Thread Marcel Timmerman
Hi, I've a question about naming a specific class. It is about the type Decimal128 which I need in BSON. For the moment I want it to hold a number and in BSON to encode and decode it to a byte stream. Later I can add specific operations and other known decimal types. I am thinking of the

Re: naming a class

2017-05-28 Thread Marcel Timmerman
On 05/28/2017 12:04 PM, Elizabeth Mattijsen wrote: On 28 May 2017, at 11:49, Marcel Timmerman wrote: I've a question about naming a specific class. It is about the type Decimal128 which I need in BSON. For the moment I want it to hold a number and in BSON to encode and

Re: [perl #131392] %() creates a Map

2017-05-28 Thread Elizabeth Mattijsen
> On 28 May 2017, at 20:56, brian d foy (via RT) > wrote: > > # New Ticket Created by "brian d foy" > # Please include the string: [perl #131392] > # in the subject line of all future correspondence about this issue. > #

[perl #131392] %() creates a Map

2017-05-28 Thread Zoffix Znet via RT
On Sun, 28 May 2017 11:56:51 -0700, comdog wrote: > It looks like %() with no characters between the parens creates a > Map, but if there's at least one character between the parens, it > creates a Hash. I figure all of these should create a Hash: > > my %hash = %(); > put '1: ', %hash.^name;

[perl #131393] [JVM] When reading from stdin, eof is not respected

2017-05-28 Thread via RT
# New Ticket Created by Christian Bartolomaeus # Please include the string: [perl #131393] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131393 > Currently rakudo on JVM does not respect eof when reading from stdin.

[perl #128214] [@LARRY] Decide if `.resolve` should work like POSIX `realname`

2017-05-28 Thread Zoffix Znet via RT
Thank you for the report. This issue is now resolved. If you wish .resolve to `fail` if it cannot completely resolve the path, set `:completely` named arg to True: https://docs.perl6.org/routine/resolve.html

[perl #128214] [@LARRY] Decide if `.resolve` should work like POSIX `realname`

2017-05-28 Thread Zoffix Znet via RT
Thank you for the report. This issue is now resolved. If you wish .resolve to `fail` if it cannot completely resolve the path, set `:completely` named arg to True: https://docs.perl6.org/routine/resolve.html

[perl #131367] [LTA] .splice method candidate error

2017-05-28 Thread Zoffix Znet via RT
Seems .split has similar issue: m: class {}.^lookup("split").candidates.say rakudo-moar 87d0e0: OUTPUT: «()␤» m: class {}.split rakudo-moar 87d0e0: OUTPUT: «Use of uninitialized value of type Any in string context.␤Methods .^name, .perl, .gist, or .say can be used to stringify it to

[perl #131367] [LTA] .splice method candidate error

2017-05-28 Thread Zoffix Znet via RT
Seems .split has similar issue: m: class {}.^lookup("split").candidates.say rakudo-moar 87d0e0: OUTPUT: «()␤» m: class {}.split rakudo-moar 87d0e0: OUTPUT: «Use of uninitialized value of type Any in string context.␤Methods .^name, .perl, .gist, or .say can be used to stringify it to

Re: [perl #131392] %() creates a Map

2017-05-28 Thread Elizabeth Mattijsen via RT
> On 28 May 2017, at 20:56, brian d foy (via RT) > wrote: > > # New Ticket Created by "brian d foy" > # Please include the string: [perl #131392] > # in the subject line of all future correspondence about this issue. > #

Re: .add missing from IO::Path?

2017-05-28 Thread Timo Paulssen
what version of rakudo are you on?

Re: zef, zef-j, zef-m

2017-05-28 Thread Parrot Raiser
If they are really identical, might it be an idea to use symbolic links for 2 of them? That would reduce the code to be stored, maintained, and transmitted, and make it blatantly obvious if different versions are required. On 5/28/17, Nelo Onyiah wrote: > I presume that's

Re: [perl #131372] [BUG] infix eqv may hang when comparing equivalent recursive arrays

2017-05-28 Thread Elizabeth Mattijsen
> On 26 May 2017, at 12:59, Peter du Marchie van Voorthuysen (via RT) > wrote: > > # New Ticket Created by Peter du Marchie van Voorthuysen > # Please include the string: [perl #131372] > # in the subject line of all future correspondence about this issue. > #

.add missing from IO::Path?

2017-05-28 Thread Gabor Szabo
Reading https://docs.perl6.org/type/IO::Path#method_child I thought I need to use .child or .add but .add does not seem to work: "foo/bar".IO.add("def") No such method 'add' for invocant of type 'IO::Path' in block at line 1 Gabor

Re: [perl #131372] [BUG] infix eqv may hang when comparing equivalent recursive arrays

2017-05-28 Thread Elizabeth Mattijsen via RT
> On 26 May 2017, at 12:59, Peter du Marchie van Voorthuysen (via RT) > wrote: > > # New Ticket Created by Peter du Marchie van Voorthuysen > # Please include the string: [perl #131372] > # in the subject line of all future correspondence about this issue. > #

[perl #131392] %() creates a Map

2017-05-28 Thread brian d foy
# New Ticket Created by "brian d foy" # Please include the string: [perl #131392] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131392 > It looks like %() with no characters between the parens creates a Map, but if there's

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

2017-05-28 Thread Samantha McVey
I bisected MoarVM and the offending commit is here: https://github.com/MoarVM/MoarVM/commit/c98634cf2542874d7daa5b45f77f7de4cf04a081 From what I see, this commit did not actually cause the root bug, it just exposed it. The Unicode Database was rebuilt so that NFG_QC=False for Emoji characters,

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

2017-05-28 Thread Samantha McVey via RT
I bisected MoarVM and the offending commit is here: https://github.com/MoarVM/MoarVM/commit/c98634cf2542874d7daa5b45f77f7de4cf04a081 >From what I see, this commit did not actually cause the root bug, it just >exposed it. The Unicode Database was rebuilt so that NFG_QC=False for Emoji

[perl #131392] %() creates a Map

2017-05-28 Thread raiph via RT
The token `%()` isn't an empty hash, it's a synonym for `%$/` or `$/.hash`. 'foo' ~~ /$=.*/; say %(); # Map.new((:bar(Match.new... Similarly, `@()` is a synonym for `@$/` or `$/.list`. These tokens are documented at

Re: .add missing from IO::Path?

2017-05-28 Thread Gabor Szabo
On Sun, May 28, 2017 at 11:29 PM, Timo Paulssen wrote: > what version of rakudo are you on? This is Rakudo version 2017.01 built on MoarVM version 2017.01 After upgrading to 2017.04.3 built on MoarVM version 2017.04-53-g66c6dda it started to work. It is magic! :) Gabor /me

[perl #131392] %() creates a Map

2017-05-28 Thread Zoffix Znet via RT
On Sun, 28 May 2017 18:18:14 -0700, raiph wrote: > If there hasn't been significant adoption of these tokens in extant code then > I'd personally +1 deprecation of them in v6.d in favor of `%$/` and `@$/`. +1. Even knowing $() was special, it didn't occur to me %() and @() could be special too.

[perl #131392] %() creates a Map

2017-05-28 Thread Zoffix Znet via RT
On Sun, 28 May 2017 18:18:14 -0700, raiph wrote: > If there hasn't been significant adoption of these tokens in extant code then > I'd personally +1 deprecation of them in v6.d in favor of `%$/` and `@$/`. +1. Even knowing $() was special, it didn't occur to me %() and @() could be special too.

[perl6/specs] 4b8352: Propose tossing %(), @(), and $() magic shortcuts

2017-05-28 Thread GitHub
Branch: refs/heads/master Home: https://github.com/perl6/specs Commit: 4b83524181105f88c02127da010e016a690be685 https://github.com/perl6/specs/commit/4b83524181105f88c02127da010e016a690be685 Author: Zoffix Znet Date: 2017-05-29 (Mon, 29