[perl #128469] [BUG] sometimes done() does not work and the program freezes

2016-07-13 Thread Zoffix Znet via RT
Did a bit more experimenting, it seems to freeze only SOME of the time: zoffix@VirtualBox:~$ perl6 -e 'react { whenever Supply.interval: 1 { say "Run $_"; done } }' Run 0 zoffix@VirtualBox:~$ perl6 -e 'react { whenever Supply.interval: 1 { say "Run $_"; done } }' Run 0 ^C zoffix@VirtualBox:~$

[perl #128469] [BUG] sometimes done() does not work and the program freezes

2016-07-13 Thread Zoffix Znet via RT
 Skip-fudge added in https://github.com/perl6/roast/commit/a047d78ac9 

[perl #127879] [BUG] map subroutine ignores the sequence in the specific case

2016-07-21 Thread Zoffix Znet via RT
Re-opening per TimToady's comments: http://irclog.perlgeek.de/perl6/2016-07-21#i_12881470 The map de-lazifies when sunk, but in this case the for's sinking doesn't seem to propagate to the map. This, for example, prints all the values: m: for ^3 { ^10 .map: *.say; Nil }; say 42; -- Cheers,

[perl #127879] [BUG] map subroutine ignores the sequence in the specific case

2016-07-20 Thread Zoffix Znet via RT
I'm going to close this, since the original report was ruled as not a bug. The lazines of such constructs has now also been documented in Traps. -- Cheers, ZZ | https://twitter.com/zoffix

[perl #128453] [BUG] t\spec\S10-packages\precompilation.rakudo.moar fails on Windows

2016-07-08 Thread Zoffix Znet via RT
Are you able to create those files manually? (e.g. C:\Users\sinan\AppData\Local\Temp\rakudo\tempfile-spurt-test)

[perl #127795] [BUG] "is" subroutine couldn't handle Set-valued Hash correctly in the specific case.

2016-07-09 Thread Zoffix Znet via RT
The `is` sub uses `eq` operator for comparison, which coerces items to Str. So this ticket comes down to whether or not .Str on sets should sort their elements. The problem with that is sets can contain different types of objects. You could further put the argument that .Strs (or .gists) of

[perl #130689] rapid network interaction crashes something

2017-02-02 Thread Zoffix Znet via RT
On Wed, 01 Feb 2017 09:03:37 -0800, rober...@semistable.com wrote: > hi everyone, > > I have these two tiny pieces of code: > > ---8<-- server.p6 -- > my $listen = IO::Socket::INET.new(:listen, :localhost<127.0.0.1>, > :localport()); > loop { >

[perl #130706] Return in block doesn't see outside return signature

2017-02-02 Thread Zoffix Znet via RT
No idea if there's any relation between the two, but there's also this ticket where a return type constraint set to Nil on a sub affects interpolation of a code block in a string inside that sub; almost as if the constraint propagated to it:

[perl #130715] IO::Handle::close shouldn't decide what's a failure

2017-02-03 Thread Zoffix Znet via RT
> But other close methods mention using a LEAVE > phaser to avoid exceptions. Would you be able to give a link where LEAVE is recommended? $proc.err.close doesn't throw; it returns the Proc object. The throwage happens when a Proc with non-zero exit status is **sunk**. So instead of the LEAVE

[perl #130659] harness5 misreports its options

2017-01-31 Thread Zoffix Znet via RT
On Sat, 28 Jan 2017 02:06:01 -0800, toolfor...@durchholz.org wrote: > harness5 has --moar, which is used in makefiles, and I think the code > also defines a --jvm. > Neither --moar nor --jvm are reported with --help. > > The POD section in harness5 carries most options in its SYNOPIS, but >

[perl #130339] [STAR] make install failure on rakudo star 2016.11

2017-01-31 Thread Zoffix Znet via RT
Closing, as the cause has been identified in previous replies.

[perl #127925] [BUG] Unicode handling on Windows command line

2017-02-07 Thread Zoffix Znet via RT
Another report in NQP repo: https://github.com/perl6/nqp/issues/346 ->8-- It is entirely possible that I am missing something obvious, but while trying to figure out what happens between typing C:\> perl6 -e "say 'yağmur'" and getting the output yagmur

[perl #130745] Can't smart match string Range's with strings on left and numbers on right";

2017-02-08 Thread Zoffix Znet via RT
All of the Range ~~ Range stuff is now fixed in https://github.com/rakudo/rakudo/commit/8477f3b6b0 and tested in https://github.com/perl6/roast/commit/e152a0ff3a37ef56c4c68af09421b47d5ad9d93c https://github.com/perl6/roast/commit/3688301754e46a8b3afdbfad4e73c377e592e339

[perl #127822] [BUG] Doing two S/// with an `andthen` between them messes up $_ in Rakudo

2017-02-01 Thread Zoffix Znet via RT
Thank you for the report. This is now fixed. Fix: https://github.com/rakudo/rakudo/commit/97359ae42e Test unfudged in: https://github.com/perl6/roast/commit/b15e0a0d9b

[perl #130355] S/// within map doesn't work

2017-02-01 Thread Zoffix Znet via RT
Thank you for the report. This is now fixed. Fix: https://github.com/rakudo/rakudo/commit/97359ae42e Test: https://github.com/perl6/roast/commit/1ed4d128d2 It's worth noting the fix is somewhat tangental to the original issue and the issue isn't actually a bug. What happens in the original

[perl #130719] [BUG] type check failed in binding to $value in loop

2017-02-04 Thread Zoffix Znet via RT
On Sat, 04 Feb 2017 16:36:21 -0800, jeff.lina...@gmail.com wrote: > I type this into the REPL: > > loop (my $i = 10; $i > 0; $i--) { say $i; } > > It loops and then crashes: > > 10 > 9 > 8 > 7 > 6 > 5 > 4 > 3 > 2 > 1 > Type check failed in binding to $value; expected Any but got Mu (Mu) > in

[perl #130686] [BUG] div doesn't work right on large int values

2017-02-03 Thread Zoffix Znet via RT
On Tue, 31 Jan 2017 18:58:22 -0800, pe...@mscha.org wrote: > % perl6 > To exit type 'exit' or '^D' > > my int $i = 10**16; > 1 > > say $i; > 1 > > say $i div 4; > 468729856 > > say $i / 4; > 2500 > > This is on a 64-bit build, Rakudo Star 2017.01.

[perl #130619] [BUG] Slipping an empty list into an infinite repetition, causes "Cannot shift from an empty Array"

2017-01-22 Thread Zoffix Znet via RT
On Sun, 22 Jan 2017 09:43:51 -0800, sml...@gmail.com wrote: > ➜ say (|() xx *)[0]; > Cannot shift from an empty Array > in block at line 1 > > Obviously, this golfed-down example is not useful as written. But this > happened as an edge case of some real code I was writing. > >

[perl #130613] [PERF] "if" without "else" much slower than "if" with empty "else"

2017-01-21 Thread Zoffix Znet via RT
On Sat, 21 Jan 2017 11:45:10 -0800, ale...@yahoo.com wrote: > Take a look at the following examples - the second is more than > 10x(!!!) faster: > m: my int $i = 0; loop { if $i++ == 10_000_000 { last }}; say now - > INIT now;rakudo-moar f97d5c: OUTPUT«2.0606382␤» > m: my int $i = 0; loop { if

[perl #130628] “so” is not a valid token name (token so { abc })

2017-01-24 Thread Zoffix Znet via RT
On Mon, 23 Jan 2017 01:02:07 -0800, alex.jakime...@gmail.com wrote: > Code: > grammar A { token TOP { }; token so { foo } }; say A.parse('foo') > > Result: > Too many positionals passed; expected 1 argument but got 2 > in any !reduce at /tmp/whateverable/rakudo- >

[perl #130629] [REGRESSION] custom defined method no longer works (method defined { … })

2017-01-24 Thread Zoffix Znet via RT
On Mon, 23 Jan 2017 01:37:16 -0800, alex.jakime...@gmail.com wrote: > Code: > class C { method defined { True } }; say ?C > > Result (2015.12,2016.02): > True > > Result (2016.03,HEAD): > False > > > > Bisectable points to >

[perl #130660] make t/spec/foo/bar.t modifies the current installation

2017-01-28 Thread Zoffix Znet via RT
On Sat, 28 Jan 2017 02:10:47 -0800, toolfor...@durchholz.org wrote: > I.e. it's copying perl6-m over perl6, I assume that's to select which backend to use for testing. `perl6` is just a 1-line wrapper bash script. That make target will also recompile the compiler if you made any changes to it.

[perl #130603] Test (module) fails while all tests return ok

2017-01-20 Thread Zoffix Znet via RT
On Fri, 20 Jan 2017 09:16:18 -0800, mt1...@gmail.com wrote: > Hi Will, > > How can it happen that a test gets hurt in this way? If I know this I > could better search for the problem. > > Regards, > Marcel Hi, Here's how that error happens: The TAP protocol[^1] expects tests to be numbered

[perl #130439] [REGRESSION] splice no longer attempts to numify things (@a.splice: ^3)

2017-01-20 Thread Zoffix Znet via RT
The original fix was reverted in https://github.com/rakudo/rakudo/commit/121e5e32e9 per discussion https://irclog.perlgeek.de/perl6-dev/2017-01-21#i_13962511

[perl #130615] [PERF] Autoincrement much slower in sink context

2017-01-21 Thread Zoffix Znet via RT
On Sat, 21 Jan 2017 13:52:37 -0800, ale...@yahoo.com wrote: > m: my int $i = 0; while $i < 10_000_000 {  $i++ }; say now - INIT > now;rakudo-moar 7f245f: OUTPUT«5.1848902␤» > m: my (int $i, int $nosink) = 0, 0; while $i < 10_000_000 {  $nosink = > $i++ }; say now - INIT now;rakudo-moar 7f245f:

[perl #130606] [BUG} RatStr Regression P6opaque: no such attribute '$!denominator'

2017-01-20 Thread Zoffix Znet via RT
On Fri, 20 Jan 2017 12:28:43 -0800, david.warring wrote: > [09:20] bisect: sub clip-to ($min, $v is rw, $max) { $v = > ($min > max $v) min $max }; sub blah ( Array() :$rgbd ) { clip-to 0, $_, 255 > for > @$rgbd; }; blah(rgbd => <.086, .165, .282> ); > [09:20] <+bisectable6> dwarring, Bisecting by

[perl #130660] make t/spec/foo/bar.t modifies the current installation

2017-01-29 Thread Zoffix Znet via RT
On Sun, 29 Jan 2017 01:56:16 -0800, j...@durchholz.org wrote: > My approach to solving this would be to have make test use perl-m resp. > perl-j directly. OK. It already does so. As stated above, `make test` doesn't overwrite anything. Closing.

[perl #130664] [BUG] Str.rindex returns error messages with missing or incorrect information

2017-01-29 Thread Zoffix Znet via RT
Dupe of https://rt.perl.org/Ticket/Display.html?id=129248#ticket-history including author and wording... Accidental re-emailing? Closing.

[perl #130827] [BUG] %hash«$key»:exists is true allways

2017-02-21 Thread Zoffix Znet via RT
On Tue, 21 Feb 2017 05:15:56 -0800, jar...@bansu.fi wrote: > EXAMPLE: > my %hash = foo => 1; > if %hash:exists { > say "not gonna print this"; > } > my $key = 'b'; > if %hash«$key»:exists { > say "why i'm here"; > } > > OUTPUT: > why i'm here > > EXPECTED RESULT: > (Should not print anything) >

[perl #130845] Some things that are less than 5 aren't

2017-02-23 Thread Zoffix Znet via RT
On Wed, 22 Feb 2017 19:32:31 -0800, comdog wrote: > Here's a curious change over in precision: > > > 4.999 ~~ 0..^5 > True > > 4. ~~ 0..^5 > False > > I figure this is an implementation detail that ties to storage, but > one of the selling points of

[perl #130845] Some things that are less than 5 aren't

2017-02-24 Thread Zoffix Znet via RT
On Thu, 23 Feb 2017 22:01:25 -0800, j...@durchholz.org wrote: > Somewhat offtopic: Feels like a bad place for offtopic discussions. You can ask questions in the same IRC channel you evaled your example. > toolforger: p6: say Inf cmp Inf > camelia: rakudo-moar 320c2f: OUTPUT: «Same␤» > > I.e.

[perl #130715] IO::Handle::close shouldn't decide what's a failure

2017-02-14 Thread Zoffix Znet via RT
On Mon, 13 Feb 2017 21:04:37 -0800, raiph wrote: > This comment is technically redundant. And maybe not helpful. I > apologize if it's annoying to anyone. Not annoying, but I feel we all have thoroughly confused bdfoy by now :P Some minor corrections: > 4.1 `sink some.expression;` > > In stark

[perl #130761] An if-block confuses &?ROUTINE to point at the wrong outer routine

2017-02-14 Thread Zoffix Znet via RT
On Sat, 11 Feb 2017 03:29:18 -0800, moritz wrote: > sub f($x) { > sub { > if True { > say &?ROUTINE.name > } > } > }.(42)() > > This prints f on Rakudo 2017.01-170-gc0a907f built on MoarVM version > 2017.01-31-g20dfa6b > > &?ROUTINE

[perl #130415] multi dispatch calls multi with named args even when none are passed and named-arg-less candidate is available

2017-02-09 Thread Zoffix Znet via RT
On Tue, 27 Dec 2016 11:02:17 -0800, c...@zoffix.com wrote: > In this code, I would've expected the second multi to be used, since > I'm not providing > any named args. I'm fuzzy on whether named params affect multi > dispatch, but even if they > wouldn't the multi without any named params is later

[perl #130715] IO::Handle::close shouldn't decide what's a failure

2017-02-13 Thread Zoffix Znet via RT
I found where the LEAVE was mentioned and removed it. The .close you're calling is actually from IO::Pipe, not IO::Handle. Probably something else should be clarified in the docs to avoid that sort of confusion as well. Marked it as TODO for my IO grant thing and will resolve this ticket as

[perl #127222] [GLR] Itemized empty list has wrong .perl stringification

2017-02-10 Thread Zoffix Znet via RT
On Sat, 09 Jan 2016 05:05:06 -0800, lucasbuchala wrote: > An itemized empty list is getting ".perl"-stringified as "$()", which > I think is wrong since $() means some idiom using "$/". The fix should > be just to make it stringify as "$( )" (with a space in the middle) or > maybe "().item" for

[perl #130753] 1.base(1) gives wrong exception : Attempt to divide by zero

2017-02-09 Thread Zoffix Znet via RT
On Thu, 09 Feb 2017 16:51:00 -0800, samant...@posteo.net wrote: > > 1.1.base(1) > Attempt to divide 2.30258509299405 by zero using / > in block at line 1 > > Fudged roast test in S32-num/base.t Thank you for the report. This is now fixed. Fix:

[perl #130776] Environment variables are case insensitive on Windows

2017-02-14 Thread Zoffix Znet via RT
On Mon, 13 Feb 2017 14:38:03 -0800, na...@cpan.org wrote: > $ echo %windir% > C:\WINDOWS > > $ echo %WINDIR% > C:\WINDOWS > > $ c:\opt\perl6-mingw\bin\perl6 -e "say %*ENV" > (Any) > > $ c:\opt\perl6-mingw\bin\perl6 -e "say %*ENV" > C:\WINDOWS > > $ c:\opt\perl6-mingw\bin\perl6 -v > This is

[perl #130776] Environment variables are case insensitive on Windows

2017-02-14 Thread Zoffix Znet via RT
On Mon, 13 Feb 2017 14:38:03 -0800, na...@cpan.org wrote: > $ echo %windir% > C:\WINDOWS > > $ echo %WINDIR% > C:\WINDOWS > > $ c:\opt\perl6-mingw\bin\perl6 -e "say %*ENV" > (Any) > > $ c:\opt\perl6-mingw\bin\perl6 -e "say %*ENV" > C:\WINDOWS > > $ c:\opt\perl6-mingw\bin\perl6 -v > This is

[perl #130786] [32BIT] unhandled Failure detected in DESTROY

2017-02-14 Thread Zoffix Znet via RT
Just realized something: I fixed Str ~~ Numeric to not throw, so on HEAD there won't be any Failures at all with the sample code. I tried changing the tests to use $a + $b instead of $a ~~ $b, but then the DESTROY warning does not occur... ... should this ticket be closed?

[perl #130663] problem mixing in role with multi builds

2017-02-13 Thread Zoffix Znet via RT
On Sat, 28 Jan 2017 16:42:46 -0800, mt1...@gmail.com wrote: > Hi, > > I get the following error using version 2016.08.1-66-g1ff1aae built on > MoarVM version 2016.08 > implementing Perl 6.c. > > Cannot resolve caller BUILD(CC+{RR}: ); none of these signatures match: > (CC $: Str :$t!, *%_)

[perl #129175] [BUG] `rotor` hangs when given an infinite Seq or List as the cycle

2017-02-09 Thread Zoffix Znet via RT
On Sat, 03 Sep 2016 21:03:12 -0700, c...@zoffix.com wrote: > To add, the cause is .is-lazy on slurpy args seems to attempt to reify > the entire sequence: > > -> *@a { @a.is-lazy.say }(1…∞) # hangs The rotor hang fixed in https://github.com/rakudo/rakudo/commit/d7b82149d31da0 The slurpy hang

[perl #130725] [REGRESSION] (gather foo()).rotor($n, :partial) broken by fd8df7f2ad

2017-02-10 Thread Zoffix Znet via RT
On Mon, 06 Feb 2017 04:04:16 -0800, consult...@jnthn.net wrote: > Discovered this after some $dayjob code got busted by updating Rakudo. > After bisecting, I got it down to this commit: > > https://github.com/rakudo/rakudo/commit/fd8df7f2ad509689a64b8825e1c4bb622cf7486f > > And from that

[perl #129762] [BUG] Array.clone does not return a properly independent array

2017-02-16 Thread Zoffix Znet via RT
Thank you for the report. This is now fixed: Rakudo fix: https://github.com/rakudo/rakudo/commit/dc69dafc42 https://github.com/rakudo/rakudo/commit/11d005e605 https://github.com/rakudo/rakudo/commit/4b85db6e8c Tests: https://github.com/perl6/roast/commit/a460cdc7ac

[perl #130788] Incorrect treatment of EOL causes test failures on Windows

2017-02-15 Thread Zoffix Znet via RT
Looks like several other tests in S17-procasync/basic.t would be failing as well if it weren't for the explicit kludges[^1][^2] added to replace "\r\n" to "\n". And `grep -nFR '\r\n' | grep subs` shows[^3] 32 potential places with a similar workaround. Pretty LTA for portable Perl 6 code to

[perl #130434] [LTA] X::TypeCheck.gotn returns too short messages for displaying types in NativeCall

2017-01-17 Thread Zoffix Znet via RT
On Tue, 17 Jan 2017 08:08:34 -0800, cookbook_...@yahoo.co.jp wrote: > On Tue, 17 Jan 2017 06:08:04 -0800, c...@zoffix.com wrote: > > Can you please include code that actually reproduces the problem? > > I'm very sorry. I can't remember exactly how to generate this error, I > just remember is that

[perl #130553] [BUG] segfault on a use that exports a operator

2017-01-17 Thread Zoffix Znet via RT
One more data point: reversing the load order prevents the segfault (that is, doing use A; use B; instead of use B; use A)

[perl #130434] [LTA] X::TypeCheck.gotn returns too short messages for displaying types in NativeCall

2017-01-17 Thread Zoffix Znet via RT
Can you please include code that actually reproduces the problem?

[perl #130590] HyperWhatever does not work with reduction metaop ([+] **)

2017-01-20 Thread Zoffix Znet via RT
On Thu, 19 Jan 2017 18:10:27 -0800, alex.jakime...@gmail.com wrote: > I guess it is supposed to work? Isn't this the case where HyperWhatever is used as a term by itself, so you're passing it itself to [+] metaop and doesn't curry and hence its complaining. Same's with regular Whatever: m:

[perl #130887] [BUG] .perl omits backtrace of exception

2017-02-28 Thread Zoffix Znet via RT
On Mon, 27 Feb 2017 14:35:17 -0800, zef...@fysh.org wrote: > > try { my Int $a; $a = "foo" }; say ?$!.backtrace; say > > ?$!.perl.EVAL.backtrace > True > False > > .perl.EVAL is failing to round-trip the exception object, as > demonstrated > by the differing truthiness of the value returned by

[perl #130889] perl6 can't find file it just created

2017-02-28 Thread Zoffix Znet via RT
Thank you for the report. This is now fixed. Fix: https://github.com/rakudo/rakudo/commit/76f71878da Test: https://github.com/perl6/roast/commit/908348eef1

[perl #130895] [SINK] `when` fails to sink stuff when it's not in a `given`

2017-03-01 Thread Zoffix Znet via RT
Sorry, wrong example of failure mode. It seems to happen in `while`: m: while $++ < 5 { when {True} {Failure.new} } rakudo-moar 9d497e: ( no output )

[perl #127403] [BUG] [WEIRD] Matching over 256 items yields wrong results, sometimes

2017-03-01 Thread Zoffix Znet via RT
I went to write a test for this, but can't repoduce the issue. I tried a handful of releases with the IRC bot, then built 2016.01 release and the mentioned 86a90be commit, but none of them fail. Perhaps this is an OSX-only issue? Could someone with OSX try reproing it on 86a90be commit and if

[perl #130900] [BUG] nul in pathname

2017-03-02 Thread Zoffix Znet via RT
FWIW, this bug makes at least mild exploitation possible, depending on how the program validates input: Setup: dir and input check to ensure user-supplied path is not outside of it: 13:41 IOninja m: "/tmp/root/tmp".IO.mkdir; "/tmp/root/secret.txt".IO.spurt: 'p4sswrd';

[perl #130876] [BUG] repl error report suppressed by prior output

2017-02-27 Thread Zoffix Znet via RT
On Mon, 27 Feb 2017 00:21:17 -0800, zef...@fysh.org wrote: > > say "a"; "a" + 2; say "b" > a > > "a" + 2 > Cannot convert string to number: base-10 number must begin with valid > digits or '.' in '^a' (indicated by ^) > in block at line 1 > > In both of these cases the addition signals an

[perl #130876] [BUG] repl error report suppressed by prior output

2017-02-27 Thread Zoffix Znet via RT
On Mon, 27 Feb 2017 14:27:04 -0800, zef...@fysh.org wrote: > Zoffix Znet via RT wrote: > >Fix: https://github.com/rakudo/rakudo/commit/db70a1fda8 > > This doesn't distinguish between an exception being thrown and the > expression evaluating to an exception object. The

[perl #127264] [BUG] Inconsistent file information

2016-09-02 Thread Zoffix Znet via RT
On Tue Aug 23 11:35:55 2016, coke wrote: > This is no longer an issue in at least 2016.07.1 > > Closable with tests. The issue is still present in current bleed (2016.08.1-73-gfbeadbf) > On Thu Jan 14 03:33:28 2016, nadim.khe...@gmail.com wrote: > > $?FILE is the path and file name > > > >

[perl #128964] [BUG] Type coercion doesn't work on Block.returns

2016-09-03 Thread Zoffix Znet via RT
Fixed in https://github.com/rakudo/rakudo/commit/b508576fc5 Tests added in https://github.com/perl6/roast/commit/dedfdf91e7

[perl #129192] Test module does not show “expected” and “got” values if PERL6_TEST_DIE_ON_FAIL is set

2016-09-05 Thread Zoffix Znet via RT
Fixed in: https://github.com/rakudo/rakudo/commit/75ba8cc6c3 Tests: https://github.com/perl6/roast/commit/350d02be0b

[perl #129160] [RFC] enum key for optional positional does not work

2016-09-05 Thread Zoffix Znet via RT
Fixed in https://github.com/rakudo/rakudo/commit/490cf728e6396dd99e10ab633f33e4df8cb35a52 Tests added in https://github.com/perl6/roast/commit/09c8d3fd7af5b01d79dda46e462e9ae46fa5f365

[perl #128545] [LTA] [UNI] Date.new(Str) poor error message for digit with diacritic

2016-09-08 Thread Zoffix Znet via RT
Thanks for the report. Fixed in https://github.com/rakudo/rakudo/commit/a2b6f74be1 Tests added in https://github.com/perl6/roast/commit/3ed2af4c42

[perl #129221] [BUG][UNI] Combinators get matched by regex even when no ignoremark is set

2016-09-08 Thread Zoffix Znet via RT
Not a bug. See also http://irclog.perlgeek.de/perl6-dev/2016-09-08#i_13170729

[perl #129080] [LTA] Missing bit in error message about R?? in Rakudo

2016-09-04 Thread Zoffix Znet via RT
Happens with 'S' and possibly some other ops. The missing bit is the `$.operator`, which is obtained from `$op` $ ./perl6 -e '1 S?? 2 !! 3' ===SORRY!=== Error while compiling -e Cannot sequence the args of because conditional operators are too fiddly at -e:1 --> 1 S?? 2 !!⏏ 3

[perl #129100] [BUG] method rand (Range) fails to check type of $!max

2016-09-03 Thread Zoffix Znet via RT
The issue is due to there being a multi new [^1] that takes a Real min value and *coerces* the max value to a real. So in the case described in this ticket, it will coerce the Str max to Int, and by the time we get to .rand, both args are Ints. As suggested on IRC [^2], we can try removing

[perl #129198] [BUG] [REPL] Still problems with syntactic errors in the REPL

2016-09-04 Thread Zoffix Znet via RT
Thanks for the report. The issue has now been fixed in https://github.com/rakudo/rakudo/commit/77d9d41fc4 (Tests added in the same commit).

[perl #129131] [RFC] Make .. a numeric operator, please (.say for ‘42’..‘51’)

2016-08-30 Thread Zoffix Znet via RT
On Tue Aug 30 11:46:53 2016, sml...@gmail.com wrote: > The trap comes from the fact that `..` and `...` with a Str endpoint > *don't* use .succ/.pred: > > "35".."40" # does something weird (and IMO useless) that is different > from .succ Agreed, that's weird. I'm unsure why it's counting down

[perl #129120] [CONC] in await: Cannot invoke this object (REPR: Null; VMNull)

2016-08-31 Thread Zoffix Znet via RT
Attached 'backtrace-original.txt' is the output from the added CATCH and --ll-exception. I was able to golf it down to this: await do for 3¹²³⁴⁵ … 3¹²³⁴⁵+127 -> $num { start $num.is-prime ?? "$num is prime" !! "$num is not prime";; } CATCH { .backtrace.full.say } And that backtrace

[perl #129252] routines sprintf and printf need auto newline capability

2016-09-11 Thread Zoffix Znet via RT
On Sun Sep 11 13:48:04 2016, tbrowder wrote: > Both routines need an alias (or adverb) so that a newline is > automatically appended to the output. I would like to see something > like: > > sprintfn > printfn I'd prefer to avoid adding two new subs and two new methods for the sake of saving a

[perl #128304] {BUG] :ww does not support other quotation marks (qww)

2016-09-09 Thread Zoffix Znet via RT
Fixed in https://github.com/rakudo/rakudo/commit/2287173ef2 Tests unfudged in https://github.com/perl6/roast/commit/addcec6732

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

2016-09-11 Thread Zoffix Znet via RT
On Sun Sep 11 07:01:11 2016, pierre.vig...@gmail.com wrote: > Hi, > > i stumbled a across a strange behaviour when playing with Supplier, i > tried to gulf it down, starting from the documentation of supply. The > following code, taken from the documentation and slightly modified is > working as

[perl #125938] [TESTNEEDED] Numbers: 2**10000000000 and 1/(2**10000)

2016-09-11 Thread Zoffix Znet via RT
Fudging tests and reopening as the issue appears to still exist on OSX: http://irclog.perlgeek.de/perl6-dev/2016-09-11#i_13187953

[perl #127208] [CONC][SEGV] Non-deterministic segfaults in parallel code

2016-09-10 Thread Zoffix Znet via RT
Fudged tests added in https://github.com/perl6/roast/commit/02d698835e Still segfaults about once in 10 runs on 2016.08.1-145-g87f772e

[perl #128787] [UNI] DOUBLE PARENTHESIS not recognised as parenthesis

2016-09-09 Thread Zoffix Znet via RT
Thanks for the report. Fixed in NQP: https://github.com/perl6/nqp/commit/32fd43da48 Fixed in Rakudo: https://github.com/rakudo/rakudo/commit/87f772ee53 Tests added in https://github.com/perl6/roast/commit/9650cd258f On Sun Jul 31 08:06:08 2016, gfldex wrote: > m: say Q ⸨oi!⸩ > #

[perl #129228] [SEGV] concurrent network access segfaults in libmoar.so

2016-09-08 Thread Zoffix Znet via RT
I'm unable to reproduce this on HEAD Rakudo even with $n set to 40 and RAKUDO_MAX_THREADS set to 50. What is your perl6 version (perl6 -v). Are you able to try this against HEAD [^1]? Yesterday a fix went in addressing issues in sockets and threads; and recently there have been many other

[perl #129242] [BUG] split gives incorrect results when splitting a number with the :skip-empty adverb

2016-09-10 Thread Zoffix Znet via RT
Thanks for the report. It appears all of .split's adverbs were broken on Cool, including the .split(@needles) call form. Fixed in https://github.com/rakudo/rakudo/commit/b771bcc97a Tests added in https://github.com/perl6/roast/commit/060cf7abff On Sat Sep 10 09:01:27 2016,

[perl #129256] [BUG] Infinite loop on CArray[].new

2016-09-12 Thread Zoffix Znet via RT
Thanks for the report! Unfortunately the fix you provided is a no-op, because empty arrays are falsy, so the check doesn't add anything extra. The issue was the nextsame candidate was the one with the slurpy that called the current candidate back again, resulting in an infiniloop. The issue

[perl #129255] [LTA] Syntax: Weird behavior of newline before the ... (infinite list) operator

2016-09-12 Thread Zoffix Znet via RT
On Mon Sep 12 07:33:33 2016, darek.cidlin...@atlas.cz wrote: > 2) should the newline before the ... operator be forbidden, > the error message could be clearer than a single asterisk. Thanks for the report, but I think I'm going to close this without any changes. What happens is your }

[perl #129258] [BUG] the trans method in Cool doesn't handle adverbs correctly

2016-09-12 Thread Zoffix Znet via RT
For others reading the ticket. I asked OP to submit the fix[^1] to get some practice fixing Rakudo bugs, so this ticket is taken. [1] http://irclog.perlgeek.de/perl6/2016-09-12#i_13194275

[perl #129291] [BUG] [SEGV] problems when run()ning two procs and passing the :out of one to the :in of the other

2016-09-24 Thread Zoffix Znet via RT
On Wed Sep 21 19:37:06 2016, ddgr...@gmail.com wrote: > Test added in https://github.com/perl6/roast/commit/6cc1a85cf4 This ticket still needs tests for Windows.

[perl #125923] [BUG] .classify-list doesn't work with BagHash in Rakudo

2016-09-24 Thread Zoffix Znet via RT
Fixed in https://github.com/rakudo/rakudo/commit/8f2279b155 Tests added in https://github.com/perl6/roast/commit/816b913d98 On Thu Aug 27 04:25:26 2015, masak wrote: > m: my %b := BagHash.new(); %b.classify-list( {.comb}, 20..40 > ); say %b.perl > rakudo-moar a46b09: OUTPUT«postcircumfix:<{ }>

[perl #128655] Mixup in candidates through optimizer

2016-10-04 Thread Zoffix Znet via RT
Posting on behalf of dogbert17: I believe that I have encountered the same bug under different circumstances. With the help of hackedNODE and others on #perl6 it seems as if the problem described below also suffers from the wrong multi candidate being called. In

[perl #128584] [BUG] reduce subroutine returns NaN when calculating decimals with negative exponents

2016-10-07 Thread Zoffix Znet via RT
First a bit of deconfusion: negative exponents just mean x⁻² = 1/x². That works just fine and is not relevant to this ticket: m: say (-2) ** -2 rakudo-moar 605f27: OUTPUT«0.25␤» Fractional exponents mean the number is raised to the power of the numerator and then the

[perl #128584] [BUG] reduce subroutine returns NaN when calculating decimals with negative exponents

2016-10-07 Thread Zoffix Znet via RT
First a bit of deconfusion: negative exponents just mean x⁻² = 1/x². That works just fine and is not relevant to this ticket: m: say (-2) ** -2 rakudo-moar 605f27: OUTPUT«0.25␤» Fractional exponents mean the number is raised to the power of the numerator and then the

[perl #129270] [BUG] Unicode ellipsis works as a Stub, but still triggers redeclaration errors

2016-09-16 Thread Zoffix Znet via RT
Fixed in https://github.com/rakudo/rakudo/commit/d63f983290 Tests added in https://github.com/perl6/roast/commit/0ade2a58c9

[perl #127421] : multi sub infix:<==> (Int $a, Str $b) { $a == $b } hangs in COMPILE time

2016-09-17 Thread Zoffix Znet via RT
On Fri Jan 29 06:50:08 2016, pawel.pab...@getresponse.com wrote: > multi sub infix:<==> (Int $a, Str $b) { $a == $b } > > Will never finish compilation on Rakudo 6.c and causes severe memory > leak. I found that: > > 1. Types must be different in signature > (Int $a, Str $b) # hangs > (Str $a,

[perl #129311] Simple Grammar Goes into infinite loop

2016-09-20 Thread Zoffix Znet via RT
I'm not seeing the bug here, to be honest. The `Body` is asking for one or more tokens `Text`, *nothing* is a valid match for those tokens, so after matching the provided text, your grammar continues to match nothing infinite number of times.

[perl #129321] [BUG] deepmap can recurse indefinitely under some circumstances

2016-09-23 Thread Zoffix Znet via RT
On Tue Sep 20 13:54:33 2016, jan-olof.hen...@bredband.net wrote: > # tested with > > dogbert@dogbert-VirtualBox ~ $ perl6 -v > This is Rakudo version 2016.09-19-g8be36b1 built on MoarVM version 2016.09 > implementing Perl 6.c > > # the following two examples behave quite differently > >

[perl #129311] Simple Grammar Goes into infinite loop

2016-09-20 Thread Zoffix Znet via RT
Here's a much shorter way to reproduce it: perl6 -e '"foo" ~~ /(.*)+/' # hangs While my previous explanation for why this occurs makes sense, it's worth noting this behaviour is not observed in Perl 5, for example: perl -e '"foo" =~ /(.*)+/' # does not hang

[perl #128469] [BUG] done() on first entry to whenever block does not exit react {}

2016-09-07 Thread Zoffix Znet via RT
This now appears to have been fixed by some of the recent async fixes. Tests now pass and have been unfudged in https://github.com/perl6/roast/commit/92951b39ee

[perl #128469] [BUG] done() on first entry to whenever block does not exit react {}

2016-09-07 Thread Zoffix Znet via RT
This now appears to have been fixed by some of the recent async fixes. Tests now pass and have been unfudged in https://github.com/perl6/roast/commit/92951b39ee

[perl #129596] [BUG] .subst-mutate does not return all matches when :x option is used

2016-09-28 Thread Zoffix Znet via RT
Fixed in https://github.com/rakudo/rakudo/commit/f6524e61e8 Tests added in https://github.com/perl6/roast/commit/391ecba7b9 On Wed Sep 28 06:02:48 2016, c...@zoffix.com wrote: > # I have the fix; filing for records > > The .subst-mutate routine returns a Match object (or Nil) on singular >

[perl #129779] Concurrency worse than no concurrency

2016-10-02 Thread Zoffix Znet via RT
Seems the issue has more to do with running an empty loop, rather than performing a real computation. This is a run on a 4-core box. Attempting to parallelize an empty loop makes the execution 1 second slower: my = { for ^2_000_000 { } }; my $start = now; (^4).map: my $stop = now;

[perl #123838] [IO] IO::Handle::tell return 0, no matter what

2016-09-26 Thread Zoffix Znet via RT
Seems to be fixed in latest Rakudo, per http://irclog.perlgeek.de/perl6/2016-09-26#i_13283196 Tests needed.

[perl #129374] [BUG] invalid arguments to .subst/.subst-mutate silently ignored

2016-09-27 Thread Zoffix Znet via RT
Fixed in https://github.com/rakudo/rakudo/commit/6ef4cdf543 Tests added in https://github.com/perl6/roast/commit/925cf4bd8b On Tue Sep 27 11:39:00 2016, c...@zoffix.com wrote: > # I have the fix; filing for records > > The .subst/.subst-mutate methods slurp several of their options into a >

[perl #129773] [BUG] [].splice: 0, [] infiniloops

2016-10-01 Thread Zoffix Znet via RT
Fixed in https://github.com/rakudo/rakudo/commit/28bf87439e Tests in https://github.com/perl6/roast/commit/3253db362c On Fri Sep 30 23:14:32 2016, c...@zoffix.com wrote: > # I have the fix; filing for records > > m: [].splice: 0, [] # w > rakudo-moar 1f29cb:

[perl #129773] [BUG] [].splice: 0, [] infiniloops

2016-10-01 Thread Zoffix Znet via RT
The original fix was not enough, as passing incorrect type to `offset` also has the same issue. Not pretty, but this commit fixes that issue: https://github.com/rakudo/rakudo/commit/b77d2b71db And tests for offset condition hang added in https://github.com/perl6/roast/commit/5d8750321d On

[perl #129829] .pick on large ranges returns binary-sparse result

2016-10-09 Thread Zoffix Znet via RT
Looks like libtommath has now been fixed: https://github.com/libtom/libtommath/pull/57 On Sat Oct 08 14:47:40 2016, timo wrote: > Apparently libtommath is known to leave some bits 0 when specific > conditions for the defines are met; i haven't looked but i suspect we > are hitting exactly this

[perl #129810] [BUG] JSON error output does not work with "use" (unknown) module

2016-10-09 Thread Zoffix Znet via RT
Fixed in https://github.com/rakudo/rakudo/commit/3b5ef07cee Tests added in https://github.com/perl6/roast/blob/412539ab809a769b7bf36df02c4aba8040f95f7e/S04-exceptions/exceptions-json.t#L27 On Wed Oct 05 11:07:23 2016, nxadm wrote: > Hi, > > Great job adding JSON error output (lizmat++). This

[perl #129906] Error when role stubbed as class

2016-11-08 Thread Zoffix Znet via RT
There's another couple of LTA errors for this, such us when a stubbed class is attempted to be `does` with or when a stubbed role is `does` with before it's defined: m: class A { ... }; class B does A { }; class A { } rakudo-moar a581bf: OUTPUT«Unhandled exception: No such method 'item' for

[perl #129363] duckmap doesn't retain structure types

2016-11-09 Thread Zoffix Znet via RT
On Tue, 08 Nov 2016 06:31:15 -0800, c...@fastmail.co.uk wrote: > Pull requests raised for discussion: > > https://github.com/rakudo/rakudo/pull/915 > https://github.com/perl6/roast/pull/180 Merged. Thanks.

  1   2   3   4   5   6   7   8   9   10   >