[perl #132225] segmentation fault while concurrently updating SetHash

2017-10-05 Thread via RT
# New Ticket Created by David Lowe # Please include the string: [perl #132225] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=132225 > This short program crashes reliably (with a segmentation fault) on my system: ```

[perl #132226] "impossible" undefined value in concurrent ENTER phasers

2017-10-05 Thread via RT
# New Ticket Created by David Lowe # Please include the string: [perl #132226] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=132226 > This program dies after a short but inconsistent run: ``` #!/usr/bin/env perl6 use v6.c;

Re: <<>> question

2017-10-05 Thread Brad Gilbert
On Thu, Oct 5, 2017 at 11:44 AM, Andy Bach wrote: > >> is ><<>> >> synonymous with >qw[] > ? `<<>>` is the same as `qqww<<>>` Which is short for `Q :qq :ww <<>>` the `:qq` is short for `:double`, that is it turns on double quote behaviour `:double` is short for

RE: Perl 6 Object Construction - General Advice

2017-10-05 Thread Mark Devine
Perl 6 (Timo), In terms of new() uses… I’ve seen a clever use of new() that goes beyond turning ‘positionals’ into ‘named’ in https://github.com/retupmoca/P6-Net-SMTP/blob/master/lib/Net/SMTP.pm6. It wraps methods for debugging. Pretty great, imo. In terms of this thread’s subject… I am

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

2017-10-05 Thread David Warring via RT
Thanks for that. As a worka-around Rakudo seems to do a better job, if I give it a helping hand viz a TWEAK method: use NativeCall; class Point is repr('CStruct') { has uint8 $.x; has uint8 $.y; } class MyStruct2 is repr('CStruct') { HAS Point $.point; # <-- embedded has int8

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

2017-10-05 Thread David Warring
Thanks for that. As a worka-around Rakudo seems to do a better job, if I give it a helping hand viz a TWEAK method: use NativeCall; class Point is repr('CStruct') { has uint8 $.x; has uint8 $.y; } class MyStruct2 is repr('CStruct') { HAS Point $.point; # <-- embedded has int8

RE: Perl 6 Object Construction - General Advice

2017-10-05 Thread Mark Devine
Timo, Oops. You're right. (I was unconditionally sending an argument in my test that zeroed it out the attribute that I was watching -- doh!) Now I can confirm that TWEAK is the logical place to further initialize attributes. I now see the light! Thanks, Mark -Original Message-

[perl #122256] [NYI] Support EVAL(Buf)

2017-10-05 Thread Zoffix Znet via RT
On Wed, 09 Jul 2014 07:10:31 -0700, coke wrote: > S29 says that EVAL should work on Buf in addition to Str; There is one > test in S29-context/eval.t that tests for this but is skipped. > > Could probably use more tests. > Everything is now implemented[^1] with more tests added[^2], and I

[perl #122256] [NYI] Support EVAL(Buf)

2017-10-05 Thread Zoffix Znet via RT
On Wed, 09 Jul 2014 07:10:31 -0700, coke wrote: > S29 says that EVAL should work on Buf in addition to Str; There is one > test in S29-context/eval.t that tests for this but is skipped. > > Could probably use more tests. > Everything is now implemented[^1] with more tests added[^2], and I

Re: Perl 6 Object Construction - General Advice

2017-10-05 Thread Timo Paulssen
The main difference between BUILD and TWEAK is that BUILD will replace all default and requiredness handling, while TWEAK keeps it intact. TWEAK gets run after these aspects had their turn, so if you have an "is required" attribute that doesn't get a value passed, the BUILDALL process will throw

Re: <<>> question

2017-10-05 Thread Andy Bach
> is <<>> > synonymous with qw[] ? IIUC - close, it like qqw: https://docs.perl6.org/language/quoting#index-entry-quote_qqww-quote_ <<_>>-quote_«_»-Word_quoting_with_interpolation_and_quote_protection:_qqww It's actually synonymous w/ qqww but depending upon your use of quotes w/i the list

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

2017-10-05 Thread Brian S. Julin via RT
On Wed, 04 Oct 2017 23:19:19 -0700, david.warring wrote: > From > https://docs.perl6.org/language/nativecall#Embedding_CStructs_and_CUnions > > class Point is repr('CStruct') { > has uint16 $.x; > has uint16 $.y; > } > > class MyStruct2 is repr('CStruct') { > HAS Point $.point; #

Re: <<>> question

2017-10-05 Thread James Ellis Osborne III
MIME Is The Sacha Guitry Picture. On Oct 4, 2017 8:23 PM, "Todd Chester" wrote: > 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

[perl #130370] [CONC] Tapping on a very active .out of Proc::Async wrecks the work queue

2017-10-05 Thread jn...@jnthn.net via RT
On Tue, 20 Dec 2016 05:07:57 -0800, jn...@jnthn.net wrote: > On Sun, 18 Dec 2016 06:24:38 -0800, alex.jakime...@gmail.com wrote: > > This is probably best demonstrated by a code snippet. > > > > Code: > > > > my $out = Channel.new; > > #my $proc = Proc::Async.new(‘perl6’, ‘-e’, ‘sleep ∞’); # ←

[perl #130370] [CONC] Tapping on a very active .out of Proc::Async wrecks the work queue

2017-10-05 Thread jn...@jnthn.net via RT
On Tue, 20 Dec 2016 05:07:57 -0800, jn...@jnthn.net wrote: > On Sun, 18 Dec 2016 06:24:38 -0800, alex.jakime...@gmail.com wrote: > > This is probably best demonstrated by a code snippet. > > > > Code: > > > > my $out = Channel.new; > > #my $proc = Proc::Async.new(‘perl6’, ‘-e’, ‘sleep ∞’); # ←

[perl #131915] [REGRESSION] Proc using more memory since being a Proc::Async

2017-10-05 Thread jn...@jnthn.net via RT
On Wed, 16 Aug 2017 14:24:48 -0700, scoli...@gmail.com wrote: > Similar to https://rt.perl.org/m/ticket/show?id=131914 it was noticed > that there is a huge increase of memory usage after running a simple > echo command. > Result are in Kbytes. > > commit: >

[perl #131915] [REGRESSION] Proc using more memory since being a Proc::Async

2017-10-05 Thread jn...@jnthn.net via RT
On Wed, 16 Aug 2017 14:24:48 -0700, scoli...@gmail.com wrote: > Similar to https://rt.perl.org/m/ticket/show?id=131914 it was noticed > that there is a huge increase of memory usage after running a simple > echo command. > Result are in Kbytes. > > commit: >

[perl #125523] [LTA] num64 not properly defaulting

2017-10-05 Thread jn...@jnthn.net via RT
On Mon, 02 Oct 2017 18:09:45 -0700, alex.jakime...@gmail.com wrote: > Right, because it's a Rat. > > sub foo(num64 $scale = 1.0) {}; say foo # This type cannot unbox to a > native > number: P6opaque, Rat > sub foo(num64 $scale = 1.0.Num) {}; say foo # Nil > No need for .Num, just write it as 1e0

[perl #125523] [LTA] num64 not properly defaulting

2017-10-05 Thread jn...@jnthn.net via RT
On Mon, 02 Oct 2017 18:09:45 -0700, alex.jakime...@gmail.com wrote: > Right, because it's a Rat. > > sub foo(num64 $scale = 1.0) {}; say foo # This type cannot unbox to a > native > number: P6opaque, Rat > sub foo(num64 $scale = 1.0.Num) {}; say foo # Nil > No need for .Num, just write it as 1e0

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

2017-10-05 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

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

2017-10-05 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

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

2017-10-05 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