Announce: Rakudo Perl 6 compiler, Release #108 (2017.02)

2017-02-18 Thread zoffix
rformance of internals [ed4ef3b][f85978b] The following people contributed to this release: Zoffix Znet, Elizabeth Mattijsen, Samantha McVey, Pawel Murias, Will "Coke" Coleda, Jonathan Worthington, Wenzel P. P. Peppmeyer, Antonio Quinonez, Altai-man, Cale, Daniel Green, Tom Browder, Mori

Announce: Rakudo Perl 6 compiler, Release #109 (2017.03)

2017-03-18 Thread zoffix
0][5843ee6][7c279c3][318f8ee][4ef1e69][9d497e9] [b597398][4bc826d][9da50e3][2a2e460][0633f03][d444f65][f94a2c7] The following people contributed to this release: Zoffix Znet, Elizabeth Mattijsen, Wenzel P. P. Peppmeyer, Samantha McVey, Will "Coke" Coleda, Pawel Murias, Jonathan Worthing

Announce: Rakudo Perl 6 compiler, Release #110 (2017.04)

2017-04-17 Thread zoffix
62][b64f210][1277fb5] [463898a][3f36508][65037c3][e408e47][6ef7b59][a4b30dc][7875eaf][d793e21][bf63719][9a2446c] [0dbe451][1867099][2694f5d] The following people contributed to this release: Zoffix Znet, Elizabeth Mattijsen, Pawel Murias, Larry Wall, Samantha McVey, Timo Paulssen, Jona

Announce: Rakudo Perl 6 compiler, Release 2017.04.1

2017-04-18 Thread zoffix
h.resolve fix for JVM, as it does not yet know how to do utf8-c8 decode [88a6facc] The following people contributed to this release: Larry Wall, Zoffix Znet If you would like to contribute or find out more information, visit <http://perl6.org>, <http://rakudo.org/how-to-help>,

Announce: Rakudo Perl 6 compiler, Release 2017.04.2

2017-04-18 Thread zoffix
[f4f1c42] The following people contributed to this release: Stefan Seifert, Zoffix Znet If you would like to contribute or find out more information, visit <http://perl6.org>, <http://rakudo.org/how-to-help>, ask on the mailing list, or ask on IRC #perl6 on freenode. Additionally,

Announce: Rakudo Perl 6 compiler, Release 2017.04.3

2017-04-23 Thread zoffix
ues with false positive case-insensitive regex matches when only start of string and end of string match [f756b4b54f][25048824c8] The following people contributed to this release: Samantha McVey, Timo Paulssen, Larry Wall, Zoffix Znet If you would like to contribute or find out more informat

Announce: Rakudo Perl 6 compiler, Release #111 (2017.05)

2017-05-20 Thread zoffix
391b][b1fbd133][7404c706][762fd239] [fec547a1][5ec8a464][8088f080][45305eca][e7087f29][f4017c32][3f7d1334][6ea2f12e] [788e6de6][3fb3c27e][09506dc8] The following people contributed to this release: Zoffix Znet, Elizabeth Mattijsen, Pawel Murias, Daniel Green, Samantha McVey, Stefan Seif

Announce: Rakudo Perl 6 compiler, Release #112 (2017.06)

2017-06-17 Thread zoffix
Julián Merelo Guervós, Gabor Szabo, Trey Harris, Eckhart Arnold, Julien Simonet, Moritz Lenz, Timo Paulssen, flussence, raiph, Kris Shannon, Aleks-Daniel Jakimenko-Aleksejev, Fyodor Sizov, Zoffix Znet If you would like to contribute or find out more information, visit <http://perl6.org>, <

Announce: Rakudo Perl 6 compiler, Release #113 (2017.07)

2017-07-15 Thread zoffix
eptions are caught [1a4d9493] + Assorted internal improvements to CPU/memory use [3d2a521c][5a80412c][c4e14731][19be8722] [f03a176c][fff43337][f71cbed4][79ce1a99][640404fc][b4561229][30619e8d][9d14a724][a2a0d5c6] [66aef589][a95c70bd][d7e10466][73c3bcc6][7f109ed7][80b3e89b][0

Re: Announce: Rakudo Star Release 2017.07

2017-07-24 Thread zoffix
Quoting Darren Duncan : On 2017-07-24 11:40 AM, Steve Mynott wrote: A useful and usable production distribution of Perl 6 The download links on http://rakudo.org/how-to-get-rakudo/ still name the April release and will need updating. -- Darren Duncan I updated the link text now (the link

Re: Verifiable Releases/The Build System is Ridiculous

2017-07-27 Thread zoffix
Quoting R0b0t1 : Are there any releases signed by the developers? The official releases located at https://rakudo.perl6.org/downloads/star/ do not seem to have signatures available. There's Rakudo the compiler and Rakudo Star distribution which is the compiler + docs + some modules. Yes, the

Re: [perl #127330] [SLOW] 10_000 lines with 「say ‘a’;」 take 16 seconds to run

2017-10-11 Thread zoffix
Quoting Parrot Raiser <1parr...@gmail.com>: Round trips to the OS, like repeated "says", have been slow relative to internal processes since the dawn of time. In this case, there are no trips. It's the *parsing* time that's slow. In fact, if you change it to `$ = ‘a’;` it's equally slow.

[NOTICE] Main Development Branch Renamed from “nom” to “master”

2017-10-26 Thread zoffix
If you track latest rakudo changes by means of a local checkout of the development repository, please take notice that we renamed our unusually-named main development branch from nom to the more traditional name master See http://rakudo.org/2017/10/27/main-development-branch-renamed-fro

Re: %% with zero denominator

2017-12-11 Thread zoffix
On 2017-12-11 12:22 PM, Sean McAfee wrote: Well, not really. I don't think x %% 0 should return a Failure at all. Is there a particular problem the current implementation fails to solve? In boolean context `x %% 0` *is* equivalent to False. The Failure carries additional information to th

Re: XML:XPath

2018-05-12 Thread zoffix
I was going to suggest that your zef may be too old and doesn't yet know how to handle the "+" in the dependency version. However, I don't see any module in the ecosystem use the `0.0.7+` as version requirement any more (I know we had one in the past, but I'm now unsure whether zef was taug

Announce: Raku Perl 6 'Diwali' 6.d Language Specification Release

2018-11-04 Thread zoffix
Tadeusz “tadzik” Sośnierz, thebooort, Thor Michael Støre, threadless-screw, thundergnat, Tim Smith, Timo Paulssen, Tobias Boege, Tobias Leich, Tom Browder, tomboy64, Tommy Stanton, Trey Harris, Tzu-Li "tison" Chen, Valentin Anger, ven, Viacheslav Lotsmanov, vinc17fr, Vladimir Marek, Vynce Mo

Announce: Rakudo Perl 6 compiler, Release #100 (2016.06)

2016-06-19 Thread zoffix
ijsen, Jonathan Worthington, Jan-Olof Hendig, Zoffix Znet, Josh Soref, Pawel Murias, Wenzel P. P. Peppmeyer, Aleks-Daniel Jakimenko-Aleksejev, Tom Browder, Daniel Green, Jonathan Stowe, titsuki, Stefan Seifert, Pepe Schwarz, Christian Bartolomäus, Will "Coke" Coleda, Steve Mynott, T

Re: [perl #126976] [SEGV] on "/".IO.mkdir

2016-07-04 Thread zoffix
1 on attempting to much around with '/' Cheers, ZZ Quoting Brandon Allbery : On Mon, Jul 4, 2016 at 6:44 PM, Zoffix Znet via RT < perl6-bugs-follo...@perl.org> wrote: > Ticket should be closable once a test has been added to Roast. Is it really appropriate to attempt to cr

Re: [perl #126976] [SEGV] on "/".IO.mkdir

2016-07-04 Thread zoffix
ug in panda. It wasn't a pretty picture. It's fine to check failure modes on an existing directory we create during testing, but I'm a definite -1 on attempting to much around with '/' Cheers, ZZ Quoting Brandon Allbery : On Mon, Jul 4, 2016 at 6:44 P

Reminder: upcoming Rakudo #101 Release

2016-07-11 Thread zoffix
🎺🎺🎺 REMINDER: the next version of Rakudo will be released this Saturday. You are invited to update the ChangeLog, the ROADMAP, or any other relevant source of information. You are also invited to run the full stresstest on your machine, to ensure the release is tested on as many architectur

Announce: Rakudo Perl 6 compiler, Release #101 (2016.07)

2016-07-16 Thread zoffix
ly some of the changes in this release. For a more detailed list, see “docs/ChangeLog”. The following people contributed to this release: Elizabeth Mattijsen, Zoffix Znet, Jan-Olof Hendig, Stefan Seifert, Tom Browder, Wenzel P. P. Peppmeyer, Pepe Schwarz, Brock Wilcox, Jonathan Worthington, Ale

Re: Announce: Rakudo Perl 6 compiler, Release #101 (2016.07)

2016-07-16 Thread zoffix
Quoting Parrot Raiser <1parr...@gmail.com>: When's the next Rakudo* likely to be out? There's a serious consideration to cut a release this month, so you will likely see one in the next couple of weeks. Cheers, ZZ

Announce: Rakudo Perl 6 compiler, Release 2016.07.1

2016-07-18 Thread zoffix
en incorrect arguments + Improved error message when .polymod is given a zero as divisor + Efficiency: + Str.samecase is now 5x faster + Str.indices is 10% faster + Str.rindex is 30% faster + Str.index is 30% faster The following people contributed to this release: Zoffix Znet, Ste

Re: [perl #126119] [RFC] Instant.from-posix has false future leap second knowledge

2016-07-27 Thread zoffix
Perhaps, we should evaluate some of the leap-second estimation algorithms. There are more leap second problems in Rakudo besides the .from-posix, that I now opened in https://rt.perl.org/Ticket/Display.html?id=128752 Quoting Zefram : Zoffix Znet via RT wrote: Returning zero is much

Announce: Rakudo Perl 6 compiler, Release #102 (2016.08)

2016-08-20 Thread zoffix
geLog”. The following people contributed to this release: Zoffix Znet, Wenzel P. P. Peppmeyer, Elizabeth Mattijsen, Pawel Murias, Jonathan Worthington, Altai-man, Larry Wall, Tom Browder, Will "Coke" Coleda, Jan-Olof Hendig, Stefan Seifert, Moritz Lenz, Itsuki Toyota, Christopher Botto

Announce: Rakudo Perl 6 compiler, Release 2016.08.1

2016-08-20 Thread zoffix
# Announce: Rakudo Perl 6 compiler, Release 2016.08.1 On behalf of the Rakudo development team, I'm announcing an out-of-schedule release of the Rakudo Perl 6 compiler. Rakudo is an implementation of Perl 6 on the Moar Virtual Machine[^1]. This release is a point release in addition to the regu

Announce: Rakudo Perl 6 compiler, Release #103 (2016.09)

2016-09-17 Thread zoffix
de is not affected by this change. The following people contributed to this release: Zoffix Znet, Elizabeth Mattijsen, Jonathan Worthington, Daniel Green, Tom Browder, Jan-Olof Hendig, Will "Coke" Coleda, Stefan Seifert, LemonBoy, Pawel Murias, Timo Paulssen, Itsuki Toyota, Christia

Announce: Rakudo Perl 6 compiler, Release #104 (2016.10)

2016-10-15 Thread zoffix
rformance + Made dir() about 20% faster + Made Regex.Bool about 2x as fast + Made Str.match about 3% faster The following people contributed to this release: Zoffix Znet, Pawel Murias, Elizabeth Mattijsen, Wenzel P. P. Peppmeyer, Jonathan Worthington, Will "Coke" Coleda, Pepe Schw

Announce: Rakudo Perl 6 compiler, Release #105 (2016.11)

2016-11-19 Thread zoffix
now about 40% faster [b5aa3c5] + Rational.base is now about 30% faster [b5aa3c5] + Various streamlining of code that's hard to measure the final impact of The following people contributed to this release: Elizabeth Mattijsen, Zoffix Znet, Will "Coke" Coleda, Pawel Murias,

Announce: Rakudo Perl 6 compiler, Release #106 (2016.12)

2016-12-17 Thread zoffix
[474ea33] + Made print, say and note 25% faster to stderr and stdout [e9ce28a] The following people contributed to this release: Zoffix Znet, Pawel Murias, Elizabeth Mattijsen, Wenzel P. P. Peppmeyer, Will "Coke" Coleda, Samantha McVey, Altai-man, Jonathan Worthington, Stefan Seife

Announce: Rakudo Perl 6 compiler, Release #107 (2017.01)

2017-01-20 Thread zoffix
+ Made reified List.Array about 3x faster [c9a9bc8] + Made List/Array.sum about 30% faster [017c6cf] + Made List/Array.fmt with no args about 60x faster [22e589a] + Made List/Array.fmt("%s") about 60x faster [7ef3682] + Made List/Array.join about 20% faster [ed482ec] The fol

[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 https://github.com/perl6/r

[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 fix

[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 #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: https://github.com/rakudo/rakudo/commit/301bcf93

[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 thankful

[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 cla

[perl #130763] [BUG][LTA] Weird error in anonymous class value in Hash

2017-02-12 Thread Zoffix Znet via RT
Golfed a bit: m: { foo => class {} }() rakudo-moar 266f34: OUTPUT«When invoking 1 '', provided outer frame 0x322f4e0 (3 '') does not match expected static frame 0x322f5e8 (2 '')␤ in block at line 1␤␤»

[perl #130774] [BUG] Rat.norm() doesn't normalize, but Rat.nude() does - in place!

2017-02-13 Thread Zoffix Znet via RT
The avoidance of reduction is for optimization purposes. The .norm stuff is fixed now in https://github.com/rakudo/rakudo/commit/aac9efcbda and tested in https://github.com/perl6/roast/commit/7d0daf5286 However, there's a data-race in Rational.REDUCE-ME and it needs to go: https://irclog.perlg

[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 #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 pa

[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 Raku

[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 Raku

[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 sh

[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 #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 #125757] shell().exitcode is always 0 when :out is used

2017-02-14 Thread Zoffix Znet via RT
On Thu, 18 Feb 2016 09:51:34 -0800, ug...@cpan.org wrote: > The assignment fix can be simplified further: > $ perl6 -e 'my $p = shell("false", :out); |$p.out.close; say > $p.exitcode' > 1 Or even simpler: $ perl6 -e 'my $p = shell("false", :out); $p.out.close.exitcode.say' 1 .close doesn

[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 req

[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 https://github.com/perl6/roast/

[perl #128047] [IO] Rakudo may crash if you use get() when -n is used (perl6 -ne 'say get' <<< 'hello')

2017-02-21 Thread Zoffix Znet via RT
On Sun, 01 May 2016 04:12:34 -0700, alex.jakime...@gmail.com wrote: > This bug report is somewhat related to > https://rt.perl.org/Ticket/Display.html?id=128046 > > get() crashes with a weird error if the stream has ended. > > Command: > perl6 -ne 'get' <<< $'hello\nworld\ntest' > > Result: > wo

[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 Per

[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. In

[perl #130852] [SEGV][MOAR] nqp::p6recont_ro(Scalar)

2017-02-24 Thread Zoffix Znet via RT
On Fri, 24 Feb 2017 08:21:12 -0800, c...@zoffix.com wrote: > Originally encountered this grepping CORE:: symbols and calling > .unique on the result. > > Golfed it down to nqp::p6recont_ro(Scalar): > > m: unique Scalar > rakudo-moar d41b68: OUTPUT: «(signal SEGV)» > > m: use nqp; nqp::p6recon

[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 exce

[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.

[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 .ba

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

2017-02-28 Thread Zoffix Znet via RT
On Mon, 27 Feb 2017 16:53:02 -0800, zef...@fysh.org wrote: > Zoffix Znet via RT wrote: > >Fix: https://github.com/rakudo/rakudo/commit/61a65cee3d > > You've just moved the problem along. There's now a new class of > object that, if evaluated to, will be treate

[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 #130874] [BUG] Nil value misdescribed at repl

2017-02-28 Thread Zoffix Znet via RT
On Mon, 27 Feb 2017 01:59:07 -0800, elizabeth wrote: > Fixed with https://github.com/rakudo/rakudo/commit/a274bdd122 , tests > needed Test added: https://github.com/rakudo/rakudo/commit/0f37dd38e0

[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 t

[perl #130892] t\spec\S32-io\IO-Socket-INET.t hangs

2017-03-01 Thread Zoffix Znet via RT
Hi, would you please include the version you're using?. You can get it by running `perl6 -v`

[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 #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'; 13:41

[perl #130863] [LTA][BUG] Cannot extract partially dimensioned view of array from fixed-size array

2017-03-04 Thread Zoffix Znet via RT
On Sat, 25 Feb 2017 22:06:29 -0800, cookbook_...@yahoo.co.jp wrote: > See the following example: > > $ perl6 -e 'my @a; @a = [[1, 2], [3, 4]]; @a[0;*].say;' > (1 2) > > $ perl6 -e 'my @a[2;2]; @a = [[1, 2], [3, 4]]; @a[0;*].say;' > Partially dimensioned views of arrays not yet implemented. Sorry

[perl #130863] [LTA][BUG] Cannot extract partially dimensioned view of array from fixed-size array

2017-03-04 Thread Zoffix Znet via RT
On Sat, 25 Feb 2017 22:06:29 -0800, cookbook_...@yahoo.co.jp wrote: > See the following example: > > $ perl6 -e 'my @a; @a = [[1, 2], [3, 4]]; @a[0;*].say;' > (1 2) > > $ perl6 -e 'my @a[2;2]; @a = [[1, 2], [3, 4]]; @a[0;*].say;' > Partially dimensioned views of arrays not yet implemented. Sorry

[perl #130886] multi subs with inconsistent where clauses don't work correctly

2017-03-04 Thread Zoffix Znet via RT
7;". My best guess is that because it first tries to figure > out which candidate to invoke and then actually calls into the candidate > (which starts with code generated by the fast binder) it hits a bind > failure as if you had directly invoked that candidate yourself but with >

[perl #130920] Tap's closing callback doesn't call back

2017-03-04 Thread Zoffix Znet via RT
On Sat, 04 Mar 2017 13:24:08 -0800, comdog wrote: > This is the example from the Tap docs. I expect the output to be > "Tap closed", but I get no output using 2017.01: > > my $s = Supplier.new; > my $tap = $s.Supply.tap( > -> $v { say "the value is $v" }, > done=> { say

[perl #130954] [BUG] Capture.WHICH does not distinguish rw arguments

2017-03-08 Thread Zoffix Znet via RT
Related: https://rt.perl.org/Ticket/Display.html?id=128977#ticket-history

[perl #130953] [REGRESSION][REGEX] chars that look different in .fc break :i regex matches

2017-03-08 Thread Zoffix Znet via RT
Ooops. Never mind. That hang is due to RT#130940 As for this ticket, I've added fudged tests to cover it now: https://github.com/perl6/roast/commit/2fa32e11eb Please note, this ticket is now marked as a release blocker, with the release scheduled to occur on March 18, 2017.

[perl #130955] [BUG] split with skip-empty not woring on null string

2017-03-08 Thread Zoffix Znet via RT
On Wed, 08 Mar 2017 04:46:55 -0800, blackcatoverw...@gmail.com wrote: > Split a null string with skip-empty not working. > > Code: > > say "".split(';', :skip-empty).perl; > > say "".split(';').perl; > > Result: > > ("",) > > ("",) > > perl6 -v : > > This is Rakudo version 2017.02 built on

[perl #130891] [LTA] infix: always returns a Block with .arity 0 and .count Inf

2017-03-08 Thread Zoffix Znet via RT
On Tue, 28 Feb 2017 14:41:07 -0800, sml...@gmail.com wrote: > my &a = *+1; > my &b = */2; > > say &a.arity; # 1 > say &b.arity; # 1 > say (&a o &b).arity; # 0 > > say &a.count; # 1 > say &b.count; # 1 > say (&a o &b).count; # Inf >

[perl #130963] [BUG] Array.perl.EVAL loses Nil

2017-03-09 Thread Zoffix Znet via RT
On Thu, 09 Mar 2017 04:06:27 -0800, zef...@fysh.org wrote: > > my @a is default(Nil); @a[0] = Nil > Nil > > @a[0] > Nil > > @a.perl.EVAL[0] > (Any) > > .perl.EVAL fails to round-trip the Nil element value in the Array. > Nil itself round-trips fine, so the failure here is specific to the Array. >

[perl #130891] [LTA] infix: always returns a Block with .arity 0 and .count Inf

2017-03-09 Thread Zoffix Znet via RT
On Tue, 28 Feb 2017 14:41:07 -0800, sml...@gmail.com wrote: > my &a = *+1; > my &b = */2; > > say &a.arity; # 1 > say &b.arity; # 1 > say (&a o &b).arity; # 0 > > say &a.count; # 1 > say &b.count; # 1 > say (&a o &b).count; # Inf >

[perl #130979] [LTA] `use` instead of `sub` give an error with no line number

2017-03-10 Thread Zoffix Znet via RT
On Fri, 10 Mar 2017 19:11:53 -0800, ddgr...@gmail.com wrote: > [21:51] m: use CheckSystemDependency ( $name ) { say "lol" } > [21:51] <+camelia> rakudo-moar f190f2: OUTPUT: «===SORRY!===␤Cannot call > method 'List' on a null object␤» > [21:51] that's meant to be "sub" instead of use Golfed a bi

[perl #131002] [RFC] Add support for Unicode versions of ?? and !!

2017-03-15 Thread Zoffix Znet via RT
Rakudo: PR that added support: https://github.com/rakudo/rakudo/pull/1029/ Revert commit: https://github.com/rakudo/rakudo/commit/9644fc360f Roast: PR that added tests: https://github.com/perl6/roast/pull/246 Revert commit: https://github.com/perl6/roast/commit/b4d4df1e09 Docs: Issues on new tern

[perl #131002] [RFC] Add support for Unicode versions of ?? and !!

2017-03-15 Thread Zoffix Znet via RT
Per discussion[^1], closing this RFC due to current lack of interest in the feature. [1] https://irclog.perlgeek.de/perl6/2017-03-15#i_14269321

[perl #130867] [BUG] `only` methods are used where `multies` should be, preventing dispatch to Mu.* candidates

2017-03-15 Thread Zoffix Znet via RT
Another piece-meal fix: for Bool:U.Str: https://github.com/rakudo/rakudo/commit/3de5fb24c9 https://github.com/perl6/roast/commit/de5f00b909

[perl #128977] [BUG] Capture.WHICH confused by mutable argument

2017-03-18 Thread Zoffix Znet via RT
On Wed, 17 Aug 2016 15:42:04 -0700, zef...@fysh.org wrote: > > my $a = 3; my $c = \($a); say $c.WHICH; $a = 555; say $c.WHICH > Capture|(Int|3) > Capture|(Int|555) > > The Capture's identity, as judged by .WHICH, is apparently changing. > That should never happen. To accurately reflect the object

[perl #130954] [BUG] Capture.WHICH does not distinguish rw arguments

2017-03-18 Thread Zoffix Znet via RT
On Wed, 08 Mar 2017 03:55:38 -0800, sml...@gmail.com wrote: > my $x = 42; > > my $c1 = \($x); > my $c2 = \(42); > > say $c1 eqv $c2; # True > say $c1 === $c2; # True > say $c1.WHICH;# Capture|(Int|42) > say $c2.WHICH;# Capture|(Int|42) > > Since the two captures in this example are not

[perl #130940] [Bug] Infinite loop in dispatch in many Cool methods

2017-03-18 Thread Zoffix Znet via RT
On Mon, 06 Mar 2017 12:51:12 -0800, TimTom wrote: > If you pass an undefined value into starts-with, it loops forever > because the Cool class has a wrapper method that casts the parameters > to Str then invokes that. The Str class, however, defines the method > as only taking a defined string. So

[perl #128041] [JVM] Failing tests for equivalence of Buf objects

2017-03-20 Thread Zoffix Znet via RT
On Sat, 30 Apr 2016 11:16:44 -0700, barto...@gmx.de wrote: > Starting with rakudo commit fe2be65806 two tests in S16-io/supply.t > start to fail with rakudo-j. The following rakudo commit 463e7589a1 > seems to change the code path for the tests in question, but also > makes them fail. Only if one r

[perl #131008] lcm should not work with Nums, and maybe gcd too (2.5 lcm 5)

2017-03-21 Thread Zoffix Znet via RT
Thank you for the report. However, there's no bug here and I'm going to reject this ticket. > Another option is to make it return 5 (kinda DWIM) No, it's not another option because that doesn't make any sense mathematically. The math operations lcm[^1] and gcd[^2] ops perform apply to integer

[perl #126262] [IO] IO::Path.absolute(): String or IO::Path?

2017-03-23 Thread Zoffix Znet via RT
On Sun, 04 Oct 2015 12:57:26 -0700, duelafn wrote: > http://doc.perl6.org/type/IO::Path#method_absolute > > Says: method absolute (IO::Path:D: $base = ~$*CWD --> IO::Path:D) > > But IO::Path in Rakudo returns a string. > > S16 doesn't really commit to an answer, saying just "absolute the > abs

[perl #130460] Can we relax indir's test on the target directory?

2017-04-03 Thread Zoffix Znet via RT
On Fri, 30 Dec 2016 14:06:51 -0800, comdog wrote: > indir is in S16 but not documented elsewhere, but it's a really cool > feature that I think many people will find useful. It's certainly much > more convenient > > indir '/Users/brian', { > put "Directory is $*CWD"; > } > > indir '/etc',

[perl #131097] Why doesn't Perl 6's try handle a non-zero exit in shell()?

2017-04-04 Thread Zoffix Znet via RT
On Tue, 04 Apr 2017 02:52:53 -0700, comdog wrote: > I originally asked about this on Stackoverflow > (http://stackoverflow.com/q/43199427/2766176) > > This `try` catches the exception: > > try die X::AdHoc; > say "Got to the end"; > > The output shows that the program continues: > > Got to the

[perl #131092] [REGEX] Alternation fails matching the same token on either side

2017-04-04 Thread Zoffix Znet via RT
On Sun, 02 Apr 2017 19:19:11 -0700, lloyd.fo...@gmail.com wrote: > use Grammar::Tracer; > grammar G { > token TOP { || } > token first-fail { '?' } > token second-succeed { '!' } > token thing { "foo" } > } > note G.parse("foo!") > > #grammar tracer output: > > TOP > | first-

[perl #130857] WARNING: unhandled Failure detected in DESTROY

2017-04-04 Thread Zoffix Znet via RT
I only now realized what this message actually means /o\ A Failure that neither exploded nor was handled got GCed, potentially indicating an error in user's code due to missed Failures. I improved the message in https://github.com/rakudo/rakudo/commit/75c3f29100

[perl #131099] [LTA] is assoc('list') gives "MVMArray: Can't pop from an empty array"

2017-04-04 Thread Zoffix Znet via RT
do version 2017.03-20-g027aa54 built on MoarVM version > 2017.03-7-g029d121 > implementing Perl 6.c. > > The error points to at gen/moar/stage2/NQPHLL.nqp:1099 > (/home/zoffix/.rakudobrew/moar- > nom/install/share/nqp/lib/NQPHLL.moarvm:EXPR_reduce) > > However, I don'

[perl #131111] [@LARRY] %c = %a, %b and @c = @a, @b should behave similarly

2017-04-06 Thread Zoffix Znet via RT
On Thu, 06 Apr 2017 13:46:00 -0700, alex.jakime...@gmail.com wrote: > Code: > my @a = ; > my @b = <1 2 3>; > my @c = @a, @b; > say @c > > Result: > [[a b c] [1 2 3]] > > > So with arrays, nothing is flattened and you get an array with two > elements. Makes sense. > > And if we want to get a dif

[perl #131114] Should junctions collapse unique values?

2017-04-07 Thread Zoffix Znet via RT
Hi, > Should junctions only care about unique values? No, Junctions aren't about unique values. They're a superposition of values that threads through routines without them even knowing they're working with a Junction: m: my $a = 3|3; my $x++ for ^$a; say $x rakudo-moar 49c0ab: OUTPUT

[perl #131118] Junctions that can evaluate to True shouldn't blow up for items that won't

2017-04-07 Thread Zoffix Znet via RT
On Fri, 07 Apr 2017 10:08:54 -0700, comdog wrote: > Consider this junction which you probably shouldn't make but you know > will happen in the hands of users: > > any( 5, 'flarg' ) == 5 > > Despite having an element that satisfies the condition, it blows up > because one of them doesn't: > >

[perl #131118] Junctions that can evaluate to True shouldn't blow up for items that won't

2017-04-07 Thread Zoffix Znet via RT
And if you just give a Failure into a Junction it doesn't explode it and propagates it: m: say so any("flarg",42)».Numeric rakudo-moar 15a25d: OUTPUT: «True␤» m: say sub ($_) { .^name }( +any("flarg",42) ) rakudo-moar 15a25d: OUTPUT: «any(Failure, Int)␤» Wonder if there'

[perl #131118] Junctions that can evaluate to True shouldn't blow up for items that won't

2017-04-07 Thread Zoffix Znet via RT
On Fri, 07 Apr 2017 19:09:55 -0700, lloyd.fo...@gmail.com wrote: > IMO any() junctions should propagate exceptions regardless of whether one of > its other values succeeded Well, they do. The exception gets thrown. It just aborts all of the results. In a superimposition of multiple universes cal

[perl #130900] [BUG] nul in pathname

2017-04-10 Thread Zoffix Znet via RT
On Thu, 02 Mar 2017 02:29:27 -0800, zef...@fysh.org wrote: > > spurt("foo\x[0]bar", "wibble") > True > > The above writes to a file named "foo". It is less than awesome that > Perl 6 accepts "foo\x[0]bar" as a pathname, when it doesn't resemble > any pathname valid on the OS, and silently treats

[perl #128969] [RFC] Proposal to move grammar related part of error messages behind a runtime flag

2017-04-13 Thread Zoffix Znet via RT
On Tue, 16 Aug 2016 18:25:28 -0700, ddgr...@gmail.com wrote: > Paraphrasing from IRC where my first comment starts here: > http://irclog.perlgeek.de/perl6/2016-08-17#i_13035789 > > My feeling has always been that Perl 6's errors are good, but I'm > sympathetic to whoever it was that complained tha

[perl #131149] [REGRESSION] uint attributes no longer accept 2**64-1

2017-04-14 Thread Zoffix Znet via RT
02 c: 2017.03,HEAD class { has uint $.x }.new: :x(2**64-1) > 13:02 committable6Zoffix, ¦2017.03: «» ¦HEAD(fbc6697): «Cannot > unbox 64 bit wide bigint into native integer␤ in block at > /tmp/EY1TW4ElM7 line 1␤ «exit code = 1»» > 13:02 Zoffix That's got broke

[perl #130441] [REGRESSION] Writablity of elements of slurpy params depends on given arguments

2017-04-16 Thread Zoffix Znet via RT
This seems very related: m: sub foo (*@foo) { dd @foo[1] = 42 }; foo ; foo |; rakudo-moar 88140b: OUTPUT: «42␤Cannot modify an immutable Str␤ in sub foo at line 1␤ in block at line 1␤␤» It actually affects whether values in a created Map are mutable, *depending on how the Map was cre

[perl #130441] [REGRESSION] Writablity of elements of slurpy params depends on given arguments

2017-04-16 Thread Zoffix Znet via RT
This seems very related: m: sub foo (*@foo) { dd @foo[1] = 42 }; foo ; foo |; rakudo-moar 88140b: OUTPUT: «42␤Cannot modify an immutable Str␤ in sub foo at line 1␤ in block at line 1␤␤» It actually affects whether values in a created Map are mutable, *depending on how the Map was cre

[perl #131168] problems when using require ::($m)

2017-04-17 Thread Zoffix Znet via RT
On Mon, 17 Apr 2017 09:53:28 -0700, mt1...@gmail.com wrote: > Since I've installed perl6 version 2017.03-234-g0ebdaa4 built on MoarVM > version 2017.03-128-gc9ab59c, several modules are experiencing failures > when using the following construct (golfed down)(I am sure that the > module loads) >

  1   2   3   4   5   6   7   8   9   10   >