Re: [perl #127682] [OSX] writing more than 8192 bytes to IO::Handle causes it to hang forever

2018-03-07 Thread Lloyd Fournier via RT
When I filed this ticket I kinda expected that somehow rakudo or libuv would handle this for me under the hood. But what Timo and Brandon say makes sense. The process is still running when you slurp-rest. slurp-rest neds EOF before it stops blocking. It will never get it because the writing process

Re: [perl #132512] [REGRESSION] make in regex on uncomposed type results in Nil

2017-11-27 Thread Lloyd Fournier via RT
Changing uncomposed type objects to Nil for the specific case of .ast/.made is definitely incorrect IMO. It happens for the exact reason lizmat said in her commit: "Wish there was a better way to test for NQPMu though, as this will prevent type objects being properly propagated" Although it looks

Re: [perl #132512] [REGRESSION] make in regex on uncomposed type results in Nil

2017-11-27 Thread Lloyd Fournier via RT
Good point. Here "No such method 'gist' for invocant of type 'Foo' in block at /tmp/aR11azfzlJ line 1" is the right one. This will give True/False indicating correct/incorrect: my $new_type := Metamodel::ClassHOW.new_type(:name); my $r = / . { $/.make($new_type) } /; my $m = "a" ~~ $r; note $m

Re: [perl #127020] [PERF] pod parsing memory is never freed

2017-11-27 Thread Lloyd Fournier via RT
Probably one of a number of things that would be easy if we made pod another language on the braid :) On Mon, Nov 27, 2017 at 11:59 AM Timo Paulssen via RT < perl6-bugs-follo...@perl.org> wrote: > a look at a profile makes me suspect the problem is having > pod_string_character match a single cha

Re: [perl #130982] [PERF] "for $a..$b -> $i { ... }" loops are sometimes much slower than c-style loops

2017-11-19 Thread Lloyd Fournier via RT
For comparison to march on the same comp: bash-3.2$ perl6 perf.p6 perl6-loop: 63.0037058 c-loop: 76.86853305 (0.82 times faster) native-loop: 0.2170930 (354.08 times faster) perl6 loops are faster. c style loops are slower. Native loops are even faster relative to the others (for me). We can prob

Re: [perl #132085] [REGRESSION] Possible regression after Match.(made|ast) changes

2017-09-13 Thread Lloyd Fournier via RT
I think we can close this. It's most likely an internals change because I call nqp::setparameterizer() directly. I'll figure out what the problem is eventually and if I can't fix it myself I'll open a more concise RT. Cheers LL On Thu, Sep 14, 2017 at 1:27 PM Aleks-Daniel Jakimenko-Aleksejev < p

Re: [perl #127858] [BUG] "Cannot invoke this object" error while importing an array constant

2017-07-26 Thread Lloyd Fournier via RT
Fix reverted: https://github.com/rakudo/rakudo/commit/50d38a1f368f0addb601e857232642f3a8de3aa2 should be re-opened :) On Tue, Jul 25, 2017 at 11:45 PM Lloyd Fournier via RT < perl6-bugs-follo...@perl.org> wrote: > merged patch: https://github.com/rakudo/rakudo/pull/ >

Re: [perl #131705] constant Regex: getlex: outer index out of range

2017-07-26 Thread Lloyd Fournier via RT
Fix reverted: https://github.com/rakudo/rakudo/commit/50d38a1f368f0addb601e857232642f3a8de3aa2 should be re-opened :) On Tue, Jul 25, 2017 at 11:42 PM Lloyd Fournier via RT < perl6-bugs-follo...@perl.org> wrote: > merged patch: https://github.com/rakudo/rakudo/pull/ >

Re: [perl #127858] [BUG] "Cannot invoke this object" error while importing an array constant

2017-07-25 Thread Lloyd Fournier via RT
merged patch: https://github.com/rakudo/rakudo/pull/ tests: https://github.com/perl6/roast/pull/291/files can be closed On Fri, Apr 8, 2016 at 7:16 PM grond...@yahoo.fr < perl6-bugs-follo...@perl.org> wrote: > # New Ticket Created by grond...@yahoo.fr > # Please include the string: [perl #1

Re: [perl #131705] constant Regex: getlex: outer index out of range

2017-07-25 Thread Lloyd Fournier via RT
merged patch: https://github.com/rakudo/rakudo/pull/ tests: https://github.com/perl6/roast/pull/291/files can be closed On Wed, Jul 5, 2017 at 3:42 PM Lloyd Fournier wrote: > # New Ticket Created by Lloyd Fournier > # Please include the string: [perl #131705] > # in the subject line of all

Re: [perl #131781] :?smth should construct a truthy pair (say (:?foo))

2017-07-22 Thread Lloyd Fournier via RT
2¢: ? doesn't imply truth it implies a question. The ? prefix asks an expression whether it's True or False. When used as a sigil like $?FILE it's asking the compiler about something. ‘:foo’ sets foo to True. ‘:!foo’ sets it to False. ‘:?foo’ looks like it's trying to ask something a question, but

Re: [perl #131781] :?smth should construct a truthy pair (say (:?foo))

2017-07-22 Thread Lloyd Fournier via RT
Sorry for being think but what is say (:?foo); meant to do? The OP just says it should "work". On Sun, Jul 23, 2017 at 6:05 AM Aleks-Daniel Jakimenko-Aleksejev via RT < perl6-bugs-follo...@perl.org> wrote: > sub foo($bar!) { say $bar }; foo(42) > > On 2017-07-22 11:19:41, alex.jakime...@gmail.com

Re: [perl #131774] [PERF] Simple, if artificial, string concatenation example hogs memory and time

2017-07-20 Thread Lloyd Fournier via RT
I did an experiment a while ago and found that string concatenation in a loop was Ο(n²) in rakudo. I asked about it on irc and jnthn explained to me that this was expected because strings are immutable (and therefore wasn't worth RTing): https://irclog.perlgeek.de/perl6/2015-12-15#i_11720228 (some

Re: [perl #131681] default values in subsignitures don't work

2017-07-03 Thread Lloyd Fournier via RT
That makes sense. Thank you! On Mon, Jul 3, 2017 at 8:09 PM jn...@jnthn.net via RT < perl6-bugs-follo...@perl.org> wrote: > On Fri, 30 Jun 2017 06:41:35 -0700, lloyd.fo...@gmail.com wrote: > > sub foo( %h ( :$foo = "bar", :$baz) ) { > > %h; > > } > > > > note foo( { :baz } ); #-> {baz => Tru

Re: [perl #131584] [REGERSSION] EXPORTHOW SUPERSEDE/DECLARE Cannot invoke this object

2017-06-16 Thread Lloyd Fournier via RT
Ohh and now we have toast: https://toast.perl6.party/ Which shows maybe it was: 2017.05-394-g56e71d5 On Fri, Jun 16, 2017 at 10:13 PM Lloyd Fournier < perl6-bugs-follo...@perl.org> wrote: > # New Ticket Created by Lloyd Fournier > # Please include the string: [perl #131584] > # in the subject

Re: [perl #131583] [BUG] Sort content of ^methods

2017-06-15 Thread Lloyd Fournier via RT
Str.^methods.sort(*.name) Is easy enough once you know to do it :) I don't think we should specify a particular order for the returned methods and alphabetic sorting is kinda arbitrary. Why not sorted by class inheritance for example? On Fri, Jun 16, 2017 at 2:09 PM Gabor Szabo wrote: > # New T

Re: [perl #131528] [PRECOMP] Issues when sub itself instead of its "dispatcher" used in sub EXPORT

2017-06-08 Thread Lloyd Fournier via RT
I think this is just another example of the compile time closures problem since EXPORT runs at compile time in during the loading module's compilation. https://rt.perl.org/Public/Bug/Display.html?id=128636 For an example in my own code: https://github.com/spitsh/spitsh/blob/master/lib/Spit/Const

Re: [perl #131324] Inheriting from lexical classes seems borked

2017-05-18 Thread Lloyd Fournier via RT
FWIW theoretically you get at any 'my' symbol in another module through the compunit interface by getting the CompUnit::Handle and using the '.unit' method to get the top lexpad of the loaded module. On Fri, May 19, 2017 at 8:20 AM Zoffix Znet via RT < perl6-bugs-follo...@perl.org> wrote: > To

Re: [perl #129346] [BUG] Whatever being called on where-blocked subroutine cannot handle the sigilless values correctly

2016-09-24 Thread Lloyd Fournier via RT
I think this is because .WHAT is a special case. It's not really a method which is what you need to make *.method work. *.WHAT will always return (Whatever) immediately. There is an odd what of working around this: perl6 -e 'sub foo(\a where *.&WHAT === Int ) { say "Hello"; }; foo(10); # works u

Re: [perl #128553] multi method cache causes Base64 regression

2016-07-27 Thread Lloyd Fournier via RT
I've been getting segfaults in this area recently. The trace is a bit different but I guess it's related. It seems that flag_map in gc_mark is no longer allocated so I get segfault. (lldb) r There is a running process, kill it and restart?: [Y/n] y Process 75673 exited with status = 9 (0x0009)

Re: [perl #128553] multi method cache causes Base64 regression

2016-07-27 Thread Lloyd Fournier via RT
By flag_map I mean ctx->callsite->arg_flags: (lldb) p ctx->arg_flags (MVMCallsiteEntry *) $8 = 0x (lldb) p ctx->callsite->arg_flags (MVMCallsiteEntry *) $9 = 0x10a72533 "" On Mon, Jul 11, 2016 at 3:59 AM Lloyd Fournier wrote: > I've been getting segfaults in this area re