»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'perl6: say 3;' or rakudo:, niecza:, std:, or /msg camelia perl6: ... | irclog: irc.perl6.org | UTF-8 is our friend!
Set by sorear on 25 June 2013.
00:06 thou joined 00:11 thou left 00:23 lichtkind left, ivanshmakov left 00:32 ivanshmakov joined
timotimo yes, compose is nyi 00:34
00:34 dmol left
cognominal m: my $ab = 'a b'; say @( << $ab c d $ab >> ).perl 00:56
camelia rakudo-moar 866817: OUTPUT«("a", "b", ("c", "d"), "a", "b").list␤»
00:56 silug left
cognominal how do I flatten that? 00:57
m: my $ab = 'a b'; say (flat << $ab c d $ab >> ).perl 00:58
camelia rakudo-moar 866817: OUTPUT«("a", "b", "c", "d", "a", "b").list␤»
cognominal ok
"Normal flat list context ignores parcel boundaries and flattens the list. Slice context turns any parcel objects into C<Seq> objects." Not sure what is a "normal flat context" mentionned in S04 though 01:00
01:00 jnap joined 01:01 jnap left 01:02 oJustDust joined 01:05 ivanshmakov left 01:09 ivanshmakov joined, silug joined 01:20 FROGGS_ joined 01:24 FROGGS left 01:26 bjz joined 01:34 Akagi201 joined 01:51 klapperl_ joined 01:54 klapperl left 01:55 thou joined 01:56 xenoterracide_ joined 01:59 thou left, vendethiel left, vendethiel joined 02:06 xenoterracide_ left, xenoterracide_ joined 02:10 nbrown left 02:13 noganex joined 02:16 noganex_ left 02:31 nbrown joined 02:36 BenGoldberg left 02:40 kurahaupo joined 02:52 oJustDust left 02:59 rindolf joined 03:03 kaare_ joined 03:06 xenoterracide_ left 03:22 xenoterracide_ joined 03:32 xenoterracide_ left 03:43 thou joined 03:47 thou left 03:48 nbrown left 03:49 nbrown joined, nbrown left 04:39 kurahaupo left 04:43 atroxaper joined 05:04 rindolf left 05:07 btyler left 05:13 atroxaper left 05:31 xragnar left, xragnar joined, thou joined 05:36 thou left 06:13 atroxaper joined 06:18 atroxaper left 06:22 zengargoyle joined 06:24 zengargo1le left 07:11 akaseki is now known as AnataNoImouto, AnataNoImouto is now known as akaseki 07:20 thou joined 07:24 thou left 07:31 Isp-sec joined 07:39 brrt joined, kweetal joined 07:43 atroxaper joined 07:47 atroxaper left
dalek ast: c73bd06 | (Pepe Schwarz)++ | S32-exceptions/misc.t:
Add corresponding ticket for two tests.
08:07
ast: feeea52 | (Pepe Schwarz)++ | S32-exceptions/misc.t:
Add test for RT #75320.
synopsebot Link: rt.perl.org/rt3//Public/Bug/Displa...l?id=75320
psch ...with that, greetings #perl6 :)
vendethiel o/ 08:10
08:11 Ven joined 08:28 molaf joined 08:33 darutoko joined 08:37 Akagi201 left 08:40 atroxaper joined 08:45 virtualsue joined 08:50 Isp-sec left 08:51 lizmat joined 08:54 atroxaper left
masak good antenoon, #perl6 08:56
psch masak o/
08:57 molaf left, woolfy joined 09:08 thou joined 09:12 thou left 09:13 PotatoGim joined 09:16 kaare_ left 09:17 Ven left 09:18 kivutar joined 09:19 Ven joined
Ven mmh, also, flip flop ranges don't get much description in the synopses 09:20
masak they don't. 09:22
the spectests are a much better source in that case.
09:24 dakkar joined
psch ff (and fff) are what .. did in scalar context in perl5, right? 09:24
masak ff is what .. did in scalar context. 09:27
fff is what ... did in scalar context.
from a Perl 6 perspective, it's quite crazy that infix:<...> was wasted on infix:<fff> of all things :P
09:28 dmol joined
psch right, i unintentionally omitted "(and ...)", thanks 09:29
it's crazy that perl5 uses ... as infix:<fff>? 09:30
masak it's crazy to waste such an accessible operator on such an unusual semantics. 09:32
compare how versatile infix:<...> is in Perl 6.
09:34 Ven left 09:35 rindolf joined
FROGGS_ I... don't understand p6bench :/ 09:35
masak FROGGS_: are you able to condense something into a question? 09:36
FROGGS_ masak: I run a single microbenchmark, get a json output file with the timings, but the output html does not show the graph 09:37
and also, the benchmark gets an SCALE argument as input, which results in a string length... the longer the string the slower it gets 09:38
but my visible graph for one test looks like as is it is the slower the smaller the string is 09:39
09:42 spider-mario joined 09:46 spider-mario left 09:47 Psyche^ joined 09:49 beastd joined
FROGGS_ hmmm, these plots also start at 0/0... jnthn.net/perl6/bench/2014-07-15.html 09:50
but why?
09:51 spider-mario joined, Psyche^_ left 09:54 atroxaper joined, brrt left 09:58 atroxaper left
FROGGS_ ahh, it ignored the compile time, and that is what I wanna bench 09:59
masak oh! 10:00
FROGGS_ and the bench script offers --ignore-compile, so I guessed the default wrong 10:01
10:02 rindolf left 10:08 kivutar left 10:12 rindolf joined
vendethiel masak: it's versatile, but I found out that it completly depends on what I'm doing. Sometimes I'll use it many times in one project, other times I won't use it at all 10:15
m: say if 'B' ff 'B' for <A B C B A> 10:19
camelia rakudo-moar 866817: OUTPUT«␤␤␤␤␤»
vendethiel m: .say if 'B' ff 'B' for <A B C B A> # erm 10:20
camelia rakudo-moar 866817: OUTPUT«A␤B␤C␤B␤A␤»
vendethiel so, basically, ff checks its rhs even though it just checked its lhs ? 10:21
masak vendethiel: oh, for sure. 10:25
vendethiel then, ... is probably what I'll be using most of the time 10:28
psch m: .say if 'B' fff 'B' for <A B C B A> 10:29
camelia rakudo-moar 866817: OUTPUT«A␤B␤C␤B␤A␤»
psch i'm not really sure i understand those fully, anyway :)
vendethiel the behavior on camelia is incorrect, fwiw 10:30
10:32 brrt joined 10:35 CuriousSpectator joined 10:37 molaf joined 10:39 CuriousSpectator left, molaf left 10:40 spider-mario left
masak vendethiel: this is my favorite use of infix:<...> ever: github.com/masak/dlx-simple/blob/b...nks.pm#L57 10:40
vendethiel: re 'behavior on camelia is incorrect' -- you're assuming smartmatch semantics. 10:41
vendethiel: (which is not the case in Perl 6)
10:43 spider-mario joined
psch S03:2929 10:44
synopsebot Link: perlcabal.org/syn/S03.html#line_2929
10:44 denis_boyun_ joined, anaeem1 joined
psch masak: that says "smartmatch against $_" 10:44
masak huh -- so it does. 10:45
and it's been that way since May last year. :) 10:46
TimToady++
10:51 araujo left 10:54 denis_boyun_ left 10:55 salv0 left 10:56 thou joined 11:01 thou left 11:02 denis_boyun_ joined 11:08 Akagi201 joined 11:12 salv0 joined 11:29 SamuraiJack joined 11:36 telex left 11:38 telex joined
colomon if I want to parse an HTML file and extrace bits from it, is there a module for that? 11:42
FROGGS_ there is an XML parser 11:43
11:44 atroxaper joined
masak github.com/tony-o/perl6-html-parser-xml/ 11:44
FROGGS_ oi, nice
colomon I don't want an XML document at the end, though. I just want to be be able to scrape this web site. 11:45
masak ok, could you define "extract bits" a bit more clearly? 11:46
_sri Mojo::DOM might be rather easy to port to perl6
colomon masak: Here's (one of) the pages: thesession.org/recordings/387 11:47
I just need to get at the track listing so I can tag MP3 files with it.
masak well, I see three paths: 11:48
colomon I guess I could build a simple parser myself
masak (a) hack -- forget HTML parsing, and just read line-by-line, pulling things out by regex
11:48 atroxaper left
masak (b) DOM -- parse the whole document, then access what you want with an XPath-like expression 11:48
_sri with perl5 ;p 11:49
perl -Mojo -E 'g("thesession.org/recordings/387")->...item-title a")->text->join("\n")->encode->say'
masak (c) SAX -- find or build a parser that emits events on opening and closing tags, and use it to build a small state machine that picks up the content that you want.
I guess what _sri++ just posted (which is awesome, by the way) is an instance of (b).
we should totally have that in Perl 6.
masak is jealous, in a good way :) 11:50
_sri :D
masak Perl 5 has a number of things where it can brag superiority to Perl 6. Mojo is one of them. 11:53
_sri the command line testing tool can do it too actually "mojo get thesession.org/recordings/387 ".manifest-item-title a" text"
masak wow.
colomon is hacking up a simple grammar 11:55
11:57 carlin joined
carlin panda doesn't seem to want to build on Windows, as JSON::Tiny is failing tests with; No such method 'package' for invocant of type 'NQPAttribute' 12:02
masak o.O 12:03
carlin: could you catch the relevant output from that and put it up as a gist?
carlin when I run them manually they work fine, but during panda bootstrap they fail 12:10
gist.github.com/carbin/0b3de07de9fa3b93b61a
I'll try compiling them and running the tests again in a bit 12:11
to see if that's the problem
masak carlin++
could be a precompilation problem, yes. 12:12
12:20 brrt left 12:25 jnap joined 12:26 jnap left
FROGGS_ benchmark for the charrange fixes: froggs.de/perl6/charrange.html 12:26
timotimo wowza. 12:31
it's very hard to read, as all pre-charrange implementations just abort to the very left %)
dalek p: a0842ef | (Tobias Leich)++ | / (9 files):
RT #67122 fix slowdown in large character ranges in regexes

On all platforms it built a string with every codepoint of the given range, and when :i was in effect it built that string with uppercase and lowercase codepoints to do a "cheap" character lookup later. Building this string is very expensive and might even crash on long ranges. Now it just checks if a char is within the range, (lower <= char <= upper).
Benchmark: froggs.de/perl6/charrange.html
12:34
synopsebot Link: rt.perl.org/rt3//Public/Bug/Displa...l?id=67122
FROGGS_ timotimo: true, because they failed to turned invalid codepoints into chars :o)
but one can see that there is a critical point, where the performance drops 12:35
timotimo i can't really see anything there :) 12:36
FROGGS_ O.o
timotimo i mean
FROGGS_ only look at 2014.07, and you'll see that it looks like /`
timotimo ... i don't know
yeah 12:37
but the "angle" seems the same as in the charrange version, just further down
FROGGS_ on the last shown dot the moar/2014.07 is three times slower than moar/charrange
timotimo ah, ok 12:38
FROGGS_ for the case insensitive version it is six times slower, which is kinda predictable :o)
timotimo ya :) 12:39
FROGGS_ also, the charrange version has a constant compile+execution time of 0.055s, the 2014.07 takes about 0.3s on the longest range testable
also: 12:42
/usr/bin/time components/nqp-moar/2014.07/install/bin/nqp-m -e '"\c[50000]" ~~ /:i<[\c0..\c[50000]]>/'
0.24user 0.06system 0:00.30elapsed 99%CPU (0avgtext+0avgdata 219804maxresident)k
compared to:
/usr/bin/time components/nqp-moar/charrange/install/bin/nqp-m -e '"\c[50000]" ~~ /:i<[\c0..\c[50000]]>/'
0.04user 0.01system 0:00.06elapsed 98%CPU (0avgtext+0avgdata 23740maxresident)k
the maxresident part
dalek kudo/nom: bbdcfd6 | (Tobias Leich)++ | tools/build/NQP_REVISION:
bump nqp rev to get charrange improvements
12:44
12:44 thou joined 12:45 BenGoldberg joined, atroxaper joined
psch github.com/rakudo/rakudo/pull/292 # flip-flop.t passes as before, with a bunch of "unitialized value of type Any in string context", but i think the tests actually rely on that 12:46
timotimo oooooh
psch: now i can't ~~ a different variable against a flipflop any more? 12:48
psch timotimo: i haven't tested that. do you have a snippet handy?
timotimo: fwiw, ff and fff should smartmatch against $_, according to S03:2929 12:49
synopsebot Link: perlcabal.org/syn/S03.html#line_2929
12:49 thou left 12:50 atroxaper left
psch although the wording seems a bit unclear to me, "against $_" seems to imply $_ as rhs to ~~, which doesn't really make sense in my opinion 12:50
timotimo oh 12:52
so it's a spec question really
can i $foo ~~ "A" ff "B"?
12:52 kivutar joined
masak interesting question. 12:52
psch ~~ sets lhs as $_ 12:53
so that should still work
masak I think that would end up involving two smartmatches, semantically.
one from the ~~ and one from the ff
psch $foo ~~ "A" ff "B" binds $_ to $foo for the ff and "A" and "B" get smartmatched against that 12:54
that's how i understand it at least, from poking around in make_smartmatch for tr///
timotimo hm, ok
masak precedence problem. 12:56
ff binds looser than ~~
so you'd need parens.
(I had to check S03 to be sure)
colomon Grammar::Debugger still broken. :( 13:00
carlin that JSON::Tiny problem does only happen when compiled 13:01
and it's only JSON::Tiny itself. JSON::Tiny::Actions and ::Grammar still work 13:03
masak and only on Windows?
which backend? Moar?
carlin moar, Windows 7 64-bit 13:04
is working fine in Linux 64
masak it sounds to me like you have the perfect prerequisites for golfing the problem down. 13:05
masak attempts to build Rakudo/Moar on Windows 7 64-bit
carlin: how did you install Rakudo? 13:10
carlin git clone, strawberry perl, MS VC compiler 13:12
masak ok. 13:13
13:13 brrt joined 13:18 denis_boyun_ left 13:21 ivanshmakov left 13:24 ivanshmakov joined 13:25 chenryn joined 13:26 ponbiki left, chenryn left 13:28 kurahaupo joined 13:33 ponbiki joined, ponbiki is now known as Guest94700 13:35 BenGoldberg left
masak building on Windows wasn't completely unproblematic. will continue later. 13:37
walk &
carlin yeah I find getting it to build on Windows isn't as straight-forward as on Unixy OSes 13:39
when I manually compile each module it works... so it must be something specific to what panda does
and `perl6 -e "use JSON::Tiny"` is enough to get the error 13:43
ah ha 13:51
it's the build order
panda compiles in the order: JSON::Tiny --> JSON::Tiny::Actions --> JSON::Tiny::Grammar 13:52
when I manually compile in that order it breaks, but if you do JSON::Tiny last it works fine
now that I've figured out that I can try and golf it :) 13:53
dalek ast: bea8d27 | (Tobias Leich)++ | S05-metasyntax/charset.t:
RT #67122 unfudge tests but use valid codepoints
13:55
synopsebot Link: rt.perl.org/rt3//Public/Bug/Displa...l?id=67122
13:59 denis_boyun_ joined, dmol left 14:02 guru joined 14:03 guru is now known as Guest86561, Guest86561 is now known as ajr_ 14:06 atroxaper joined, chenryn joined
FROGGS_ .tell jnthn Is that a valid patch about rooting? gist.github.com/FROGGS/534f320aa548e12f75c4 14:08
yoleaux FROGGS_: I'll pass your message to jnthn.
14:08 brrt left 14:13 zakharyas joined 14:14 Akagi201 left
colomon has his script working now. :) 14:18
14:20 Akagi201 joined 14:23 rindolf left 14:24 chenryn left 14:25 bjz left 14:26 chenryn joined 14:27 kivutar left 14:31 brrt joined 14:33 thou joined
carlin masak: here's a golf: gist.github.com/carbin/a808d2eb91e1a2ea56ba 14:33
14:34 denis_boyun_ left 14:37 thou left
dalek ast: ff5bd05 | (Tobias Leich)++ | S05-metasyntax/regex.t:
RT #118985 test lexical regexes in classes
14:49
synopsebot Link: rt.perl.org/rt3//Public/Bug/Displa...?id=118985
FROGGS_ carlin: does it still fail when you add a multi baz also? 14:52
carlin FROGGS_: yes it does 14:56
FROGGS_ hmmm 14:57
ohh, perhaps because Foo is a module and not also a class?
carlin changing Foo to a class, the error becomes: No STable at index 5 14:59
FROGGS_ ó.ò
you have recompiled both? 15:00
carlin yip
15:03 kivutar joined
dalek ast: c6e4b9b | (Tobias Leich)++ | S02-types/hash.t:
RT #117431 test hash itemization
15:18
synopsebot Link: rt.perl.org/rt3//Public/Bug/Displa...?id=117431
15:19 molaf joined
dalek ast: 2e900e5 | (Tobias Leich)++ | S02-types/set.t:
RT #117103 test metaop set assign
15:24
synopsebot Link: rt.perl.org/rt3//Public/Bug/Displa...?id=117103
dalek ast: 4da54d8 | (Tobias Leich)++ | S05-metasyntax/litvar.t:
RT #117091 test vars in :i in interpolation/assertion
15:30
synopsebot Link: rt.perl.org/rt3//Public/Bug/Displa...?id=117091
15:40 chenryn left 15:43 chenryn joined
carlin it's panda's fault. On Windows it compiles the modules in a different order than on Linux 15:46
gist.github.com/carbin/d0dff5de558279350be6 15:47
15:47 nbrown joined
[Coke] masak: aha, but host07.perl6.com:8080/report/coke is all green! (of course, that's a pretty teeny single module) 15:49
flussence I'm having a really un-fun day debugging this bit of code; can anyone take a minute to see if the test failures are reproducable (via panda install or whatever)? github.com/flussence/Test-Corpus/b...pus.pm#L33 15:52
(it'll do different things depending on an env var, but right now *all* of them fail/crash/segfault...) 15:53
dalek kudo-star-daily: 55e661f | coke++ | log/ (14 files):
today (automated commit)
15:54
rl6-roast-data: aba5c7c | coke++ | / (5 files):
today (automated commit)
[Coke] ugh, I can't believe this quest has taken SIX months: questhub.io/realm/perl/quest/52e80...996000001b 15:56
[Coke] will finish it today, curses.
15:57 kurahaupo left
[Coke] .seen petdance 16:00
yoleaux I haven't seen petdance around.
16:00 chenryn left 16:01 ajr_ left 16:02 guru joined, guru is now known as Guest75382, Guest75382 is now known as ajr_
[Coke] m: my %h; %h<bar><baz> := 'zoom' 16:10
camelia ( no output )
16:10 ajr_ left
[Coke] m: my %h; %h<bar><baz> := 'zoom' ; say %h.perl 16:11
camelia rakudo-moar bbdcfd: OUTPUT«("bar" => {"baz" => "zoom"}).hash␤»
flussence ...do "»." things do real threading now? That'd explain these new failures...
"Internal error: zeroed target thread ID in work pass" 16:12
16:12 btyler joined
timotimo no, they do not 16:13
16:14 ajr joined, dmol joined
dalek ast: b77befe | coke++ | S02-types/hash.t:
mention RT in todo
16:14
16:14 ajr is now known as Guest64379
dalek ast: e5dbea7 | coke++ | TODO:
Add a note about RTs.
16:19
carlin I found the panda problem! 16:20
github.com/tadzik/panda/blob/maste...der.pm#L28
that doesn't account for the paths containing backslashes
so the it tries to find deps for things like "lib\JSON\Tiny" instead of "JSON::Tiny" and ends up compiling the modules in the wrong order 16:21
16:21 thou joined
[Coke] m: my %hash = :a(1), :b(2), :c(3), :d(4); my @slice := %hash<b c>; say @slice.perl 16:22
camelia rakudo-moar bbdcfd: OUTPUT«(2, 3)␤»
16:22 brrt left
[Coke] m: my %hash = :a(1), :b(2), :c(3), :d(4); my @slice := %hash<b c>; say ((@slice,*) = <A B C D>).perl; 16:25
camelia rakudo-moar bbdcfd: OUTPUT«(("A", "B"), *)␤»
16:26 thou left
[Coke] ^^ there's a test that expects that to be just "A", "B"; I suspect whatever handling in this case might have mutated since the test was written. 16:26
[Coke] updates the test to match camelia, since that seems reasonable here.
m: my %hash = :a(1), :b(2), :c(3), :d(4); my @slice := %hash<b c>; say ((@slice,*) = <A B C D>).perl; say @slice.perl;
camelia rakudo-moar bbdcfd: OUTPUT«(("A", "B"), *)␤("A", "B")␤»
16:32 Mouq left
dalek ast: 28f9dba | coke++ | S32-hash/slice.t:
Fix test - validating @slice, not @slice && *
16:33
[Coke] wonders where this is defined: 16:35
m: import PROCESS <%ENV>;
camelia ( no output )
[Coke] r: import PROCESS <%ENV>; 16:36
camelia ( no output )
[Coke] (er, the import works, but there is no "%ENV" after import.
16:40 Guest94700 is now known as ponbiki 16:42 bjz joined
[Coke] m: my $पहला = 1; 16:43
camelia rakudo-moar bbdcfd: OUTPUT«===SORRY!=== Error while compiling /tmp/Txc2zns0pX␤Two terms in a row␤at /tmp/Txc2zns0pX:1␤------> my $पहल⏏[31mा = 1;␤ expecting any of:␤ scoped declarator␤ constraint␤ postfi…»
16:47 SamuraiJack left
[Coke] m: say uniname(0x2029) 16:47
camelia rakudo-moar bbdcfd: OUTPUT«PARAGRAPH SEPARATOR␤»
16:49 dmol left
dalek ast: d4a402b | coke++ | S02- (2 files):
Refer to newly-created RTs
16:49
[Coke] m: $_ = "aaaa"; .++.say while 1 16:51
camelia rakudo-moar bbdcfd: OUTPUT«(timeout)aaaa␤aaab␤aaac␤aaad␤aaae␤aaaf␤aaag␤aaah␤aaai␤aaaj␤aaak␤aaal␤aaam␤aaan␤aaao␤aaap␤aaaq␤aaar␤aaas␤aaat␤aaau␤aaav␤aaaw␤aaax␤aaay␤aaaz␤aaba␤aabb␤aabc␤aabd␤aabe␤aabf␤aabg␤aabh␤aabi␤aa…»
[Coke] m: my @array = 1,2,3; @array>>\ .++ ; say @array 16:52
camelia rakudo-moar bbdcfd: OUTPUT«Cannot find method 'postcircumfix:<( )>'␤ in sub METAOP_HYPER_CALL at src/gen/m-CORE.setting:17538␤ in block at /tmp/1qE1RsIlEN:1␤␤»
[Coke] m: my @array = 1,2,3; @array>>.++ ; say @array
camelia rakudo-moar bbdcfd: OUTPUT«Cannot find method 'postcircumfix:<( )>'␤ in sub METAOP_HYPER_CALL at src/gen/m-CORE.setting:17538␤ in block at /tmp/MYp0yFPj5U:1␤␤»
[Coke] m: my @array = 1,2,3; @array>>.sqrt ; say @array
camelia rakudo-moar bbdcfd: OUTPUT«1 2 3␤»
16:55 SamuraiJack joined, atroxaper left
dalek ast: 657c54a | coke++ | S0 (2 files):
Link to RT #122342
16:57
synopsebot Link: rt.perl.org/rt3//Public/Bug/Displa...?id=122342
masak carlin: nice golf! 17:00
carlin++
carlin: heh, and I saw the different build order on Windows, and thought "it's probably because of the backslashes" :) 17:02
carlin: well debugged!
carlin, tadzik: that line, github.com/tadzik/panda/blob/maste...der.pm#L28 -- is there a way to have IO::Path handle some of that, for great compatibility? 17:03
haha *sob* -- and that subroutine is straight out of ufo, so it's ultimately "my fault" ;( 17:04
[Coke] m: use MONKEY_TYPING: augment class Code{method xyzzy(Code $x: *@y) { $x.(@y) }}; say (xyzzy { @^x }: 1, 2, 3)
camelia rakudo-moar bbdcfd: OUTPUT«===SORRY!=== Error while compiling /tmp/ON_0uohFWk␤Confused␤at /tmp/ON_0uohFWk:1␤------> use MONKEY_TYPING⏏: augment class Code{method xyzzy(Code $␤ expecting any of:␤ statement list␤»
[Coke] m: use MONKEY_TYPING; augment class Code{method xyzzy(Code $x: *@y) { $x.(@y) }}; say (xyzzy { @^x }: 1, 2, 3)
camelia rakudo-moar bbdcfd: OUTPUT«===SORRY!=== Error while compiling /tmp/NyubD3Pthw␤Two terms in a row␤at /tmp/NyubD3Pthw:1␤------> x: *@y) { $x.(@y) }}; say (xyzzy { @^x }⏏: 1, 2, 3)␤ expecting any of:␤ postfix␤ statemen…»
[Coke] ^^^ does that look like it should work? 17:05
m: use MONKEY_TYPING; augment class Code{method xyzzy(Code $x: *@y) { $x.(@y) }}; say (xyzzy { @^x },: 1, 2, 3)
17:05 Guest64379 left
camelia rakudo-moar bbdcfd: OUTPUT«===SORRY!=== Error while compiling /tmp/4vy8mNT5xI␤Two terms in a row␤at /tmp/4vy8mNT5xI:1␤------> : *@y) { $x.(@y) }}; say (xyzzy { @^x },⏏: 1, 2, 3)␤ expecting any of:␤ postfix␤ statemen…» 17:05
carlin masak: my suggest fix was going to be this: github.com/carbin/panda/commit/ff4...22656247ed 17:06
masak [Coke]: what, wuh...
[Coke] S02-lexical-conventions/unspace.t
masak [Coke]: I don't see what that colon even tries to do there.
carlin: yes, I like that as a stopgap solution. 17:07
[Coke] there's a test for that first one, and a few variations of how to write the colon: ":", "\ :", and " :"
17:07 guru joined, guru is now known as ajr_
[Coke] Looks like it was "we are passing a named argument, here, have a colon". 17:07
masak carlin: but the underlying problem is we're treating an interesting problem (paths on different platforms) with blunt tools (strings and regexes)
[Coke] oh. test says "indirect method calls" 17:08
masak oh!
[Coke] We don't have those, yes?
masak and we're augmenting Code. I see.
no, we don't have those, AFAIR.
17:08 xinming joined
masak it's the same as would allow the syntax `say $*ERR: 1, 2, 3` 17:08
[Coke] killing test…
m: say $*ERR: 1, 2, 3 17:09
masak [Coke]: um, as in "NYI".
camelia rakudo-moar bbdcfd: OUTPUT«===SORRY!=== Error while compiling /tmp/M1gHkcgZzU␤Two terms in a row␤at /tmp/M1gHkcgZzU:1␤------> say $*ERR⏏: 1, 2, 3␤ expecting any of:␤ postfix␤ infix stopper␤ infix or meta-in…»
masak [Coke]: don't know if they should be killed.
niecza: say $*OUT: 1, 2, 3
[Coke] masak: indirect method calls appear only once in the spec, and not in a way that makes me think they're coming
camelia niecza v24-109-g48a8de3: OUTPUT«===SORRY!===␤␤Invocant handling is NYI at /tmp/Y0_UecSxpU line 1 (EOF):␤------> say $*OUT: 1, 2, 3⏏<EOL>␤␤Unhandled exception: Check failed␤␤ at /home/p6eval/niecza/boot/lib/CORE.setting line 1502 …»
[Coke] ok. I'll open a ticket and let someone else decide. no worries. 17:10
masak [Coke]: I think I recall TimToady wistfully hoping for that feature.
I do note that it doesn't have its own table row on perl6.org/compilers/features though.
masak adds one
dalek ast: fd13f17 | coke++ | S02-lexical-conventions/unspace.t:
link to RT #122343
17:12
ast: 49d414d | coke++ | S02-lexical-conventions/unspace.t:
Link to RT #122344
synopsebot Link: rt.perl.org/rt3//Public/Bug/Displa...?id=122343
synopsebot Link: rt.perl.org/rt3//Public/Bug/Displa...?id=122344
carlin github.com/tadzik/panda/pull/91 # there's a pull request for now 17:13
I'm not sure what a IO::Path solution would be at this point
dalek atures: 9847622 | (Carl Mäsak)++ | features.json:
[features.json] add "Indirect method calls"

Which currently are Not Yet Implemented on Niecza as well as Rakudo, all backends.
17:15
17:16 SamuraiJack left
masak carlin: me neither. 17:17
dalek ast: 75cd875 | coke++ | S02-literals/char-by-name.t:
link to RT #117683
synopsebot Link: rt.perl.org/rt3//Public/Bug/Displa...?id=117683
masak but I think the long-term right solution is to delegate to IO::Path.
because this is a problem that should be solved centrally, not in userland.
carlin it would be a much nicer solution 17:18
masak in fact, why not have a 'path-to-module' builtin?
17:19 dmol joined, nbrown left
masak admires the pure evil of RT #122325 17:19
synopsebot Link: rt.perl.org/rt3//Public/Bug/Displa...?id=122325
masak FROGGS++
oh, maybe FROGGS-- didn't originate it; only reported it. 17:20
dalek ast: aa03827 | coke++ | S02-literals/listquote-whitespace.t:
Link to RT #122285

  (this makes it easier to skip these emit lines when looking for TODOs)
17:20 ajr_ left
synopsebot Link: rt.perl.org/rt3//Public/Bug/Displa...?id=122285 17:20
masak sorear++ is the author of that test.
17:21 denis_boyun_ joined
masak it also says "Test primarily aimed at Niecza", but it seems to have caught a Parrotbug. nice. 17:21
[Coke] wonders if he can get the non RT/NYI/unspecced fudges down under 800 today.
17:21 SamuraiJack joined, guru joined 17:22 guru is now known as Guest38578, Guest38578 is now known as ajr_
masak r: for 1, 2, 3 { sub foo($x = next) { $x }; say foo }; say "alive" 17:22
camelia rakudo-{jvm,moar} bbdcfd: OUTPUT«alive␤»
..rakudo-parrot bbdcfd: OUTPUT«alive␤Nominal type check failed for parameter '$x'; expected Any but got Mu instead␤»
masak haha, Parrot, you silly. 17:23
r: sub { sub foo($x = return) { $x }; say foo }(); say "alive"
camelia rakudo-jvm bbdcfd: OUTPUT«alive␤»
..rakudo-moar bbdcfd: OUTPUT«Attempt to return outside of any Routine␤ in block at src/gen/m-CORE.setting:556␤ in sub foo at /tmp/tmpfile:1␤ in sub at /tmp/tmpfile:1␤ in block at /tmp/tmpfile:1␤␤»
..rakudo-parrot bbdcfd: OUTPUT«alive␤Nominal type check failed for parameter '$x'; expected Any but got Mu instead␤»
masak same trick works in many shapes.
hey, but that's a moarbug right there...
[Coke] masak: check out github.com/perl6/roast/blob/master...ages.t#L93
17:23 bowtie_ left
masak submits moarbug 17:24
[Coke]: yeees...?
[Coke] looks like it's expecting the first call to foo() to be undefined?
masak because $a is 17:25
makes sense to me.
at least that's one way I could've argued it.
(the other way being that foo() returns 0 the first time)
[Coke] m: say foo; my $a; sub foo() { $a++}
camelia rakudo-moar bbdcfd: OUTPUT«0␤»
masak right, that way. 17:26
[Coke] m: say foo, foo, foo; my $a; sub foo() { $a++}
camelia rakudo-moar bbdcfd: OUTPUT«012␤»
17:26 atroxaper joined
[Coke] so if you could argue it either way, what next? :) 17:26
spec question?
or let jnthn++ decide?
(there are 3 "nom regressions" in that file which are all basically the same issue) 17:28
FROGGS_ masak: aye, I've only filed RT #122325
synopsebot Link: rt.perl.org/rt3//Public/Bug/Displa...?id=122325
FROGGS_ eww, t/spec/S02-magicals/args.t fails only in m-spectests here, and is a speshbug :( 17:29
[Coke] masak: opening a ticket on that one.
masak [Coke]: "spec question" sounds good to me. 17:30
17:30 atroxaper left 17:32 SamuraiJack left
masak [Coke]++ # opening RT tickets for failing tests 17:33
I know that can't be fun work, but it's *very useful*.
dalek ast: 9c096d9 | coke++ | S02-names-vars/variables-and-packages.t:
link to RT #122346
17:34
synopsebot Link: rt.perl.org/rt3//Public/Bug/Displa...?id=122346
masak re flapping tests, by the way: martinfowler.com/articles/nonDeterminism.html -- required reading. I've always liked this one. 17:35
17:35 spider-mario left 17:38 spider-mario joined, Akagi201 left 17:39 Akagi201 joined
dalek ast: 5717a50 | coke++ | S02-types/capture.t:
Reduce scope of skip
17:39
[Coke] r: my buf8 $buffer = ('A' .. 'Z').map({sprintf('%08d', .ord)}).cat; 17:40
camelia rakudo-{parrot,jvm,moar} bbdcfd: OUTPUT«No such method 'cat' for invocant of type 'List'␤ in block at /tmp/tmpfile:1␤␤»
17:41 brrt joined
[Coke] masak: how do you feel about fudges in files that aren't in t/spectest.data ? 17:43
17:43 Akagi201 left
[Coke] I am leaning towards a "keep it in a branch if you're working on a new feature" policy so that master is "clean". (and I don't spend time trying to fix directives for stuff that is obviously not done.) 17:44
17:47 carlin left 17:50 lizmat left, xenoterracide_ joined
[Coke] m: my Complex $namcu =1.3; say $namcu.WHAT; 17:51
camelia rakudo-moar bbdcfd: OUTPUT«Type check failed in assignment to '$namcu'; expected 'Complex' but got 'Rat'␤ in block at /tmp/RwaUOyDQ9D:1␤␤»
17:52 ajr_ left 17:53 woolfy left
[Coke] m: my Module $a; 17:54
camelia rakudo-moar bbdcfd: OUTPUT«===SORRY!===␤Type 'Module' is not declared␤at /tmp/S0G6RhnFs9:1␤------> my Module⏏ $a;␤Malformed my␤at /tmp/S0G6RhnFs9:1␤------> my ⏏Module $a;␤ expecting any of:␤ scoped…»
FROGGS_ wth... I closed a bunch of RT tickets and now it grew again :o( 17:55
eight more tickets 17:56
17:56 nbrown joined
[Coke] Only about 800 more to go. 17:56
(there's lots of stuff with no tickets in roast)
17:57 zakharyas left, bowtie joined 17:58 bowtie is now known as Guest35753
[Coke] do we have a standard way to refer to github issues? We have "RT #foo" for RTs... 18:01
18:01 mr-foobar left
[Coke] MoarVM #87 ? 18:01
18:02 slavik left 18:04 mr-foobar joined 18:05 nbrown left 18:06 denis_boyun_ left 18:07 denis_boyun joined 18:09 thou joined 18:10 Ven joined 18:11 denis_boyun___ joined 18:12 denis_boyun left 18:14 thou left 18:26 Sqirrel joined 18:31 ventica joined 18:33 hoverboard joined
dalek ast: 9ef729f | coke++ | S02-types/declare.t:
link to RT; use "NYI"
18:40
ast: a63adf3 | coke++ | S32-str/lc.t:
use <system> #<number>
18:42 Ven left
masak [Coke]: keeping master clean is something I'm 100% on board with. 18:47
[Coke]: fudges in un-spectest.data'd files -- no particular opinion.
[Coke] ok. Plenty of other stuff for me to clean in the meantime. 18:48
er: 18:49
m: "what the" ~~ / (<[a..z]>)+ <ws> (\d+)? <ws> (<[a..z]>)+ / ; say $/;
camelia rakudo-moar bbdcfd: OUTPUT«No such method 'from' for invocant of type 'Any'␤ in method caps at src/gen/m-CORE.setting:12942␤ in method gist at src/gen/m-CORE.setting:12973␤ in sub say at src/gen/m-CORE.setting:13793␤ in block at /tmp/KdkIh8lqiA:1␤␤»
[Coke] the +'s are in the wrong place, but that seems like an odd error. 18:50
(same error if you move them inside the ()'s, so that's not it..
FROGGS_ now that is weird
18:52 Ven joined
FROGGS_ m: "what the" ~~ / (<[a..z]>)+ <ws> (\d+)? <ws> (<[a..z]>)+ / ; say $/.perl 18:52
camelia rakudo-moar bbdcfd: OUTPUT«Match.new(orig => "what the", from => 0, to => 8, ast => Any, list => ([Match.new(orig => "what the", from => 0, to => 1, ast => Any, list => ().list, hash => EnumMap.new()), Match.new(orig => "what the", from => 1, to => 2, ast => Any, list => ().list, ha…»
19:00 hoverboard is now known as cholby, cholby is now known as hoverboard
[Coke] wonders why S01-perl-5-integration/basic.t is in t/spectest.data - we skip everything but a few simple assignments. 19:01
(everything is fudged AND skip_rest'd) 19:02
FROGGS_: that looks like it's your file. How to proceed? (leave it alone? remove from the list of things to test..?) 19:03
FROGGS_ I'd rip it out because I that is something fits in star but not the compiler itself 19:04
19:05 zakharyas joined 19:08 darutoko left 19:09 Akagi201 joined
Ven wrote a little something about ff vs fff, but still think it might be confusing 19:11
19:13 denis_boyun___ left 19:14 Akagi201 left 19:15 denis_boyun_ joined
Ven timotimo: erm, are the `orelse` tests okay now :P ? 19:16
dalek kudo/nom: a8cfa19 | coke++ | t/spectest.data:
Remove file that runs no tests.
19:17
Ven 600 lines already, uh. 19:19
19:22 anaeem1 left, denis_boyun_ left 19:23 denis_boyun_ joined 19:33 denis_boyun_ left, dakkar left
avuserow [Coke]++ # unending test improvements 19:35
FROGGS_ masak: I've got a patch for RT #122332 19:36
synopsebot Link: rt.perl.org/rt3//Public/Bug/Displa...?id=122332 19:37
[Coke] avuserow: I think they are ending. :)
Ven It's "fun" to read RTs from 2008, even back then it was really different 19:38
masak FROGGS_: nice!
dalek ast: f35b982 | (Tobias Leich)++ | S13-overloading/metaoperators.t:
RT #122332 test for sub as infix op between []
19:41
synopsebot Link: rt.perl.org/rt3//Public/Bug/Displa...?id=122332
Ven (reading stuff from 2002/2003 perl monks posts and seeing now ... well!)
19:43 brrt left 19:44 denis_boyun_ joined
masak ooh, perlmonks posts from 2002/2003? what were people saying? :) 19:45
Ven well, I think I linked it back then (I was barely starting on perl 6, and either you or moritz++ pointed out it was from 2003 ..) 19:46
masak ok. :) I don't remember that.
Ven I can probably find it again, though.
masak would be interesting, if it's not too onerous.
Ven (can you filter by year on google ?) 19:47
masak no idea.
Ven www.perlmonks.org/index.pl?node_id=253366 found it :)
masak looks
Ven ha, it still had the diamond :P 19:48
masak oh, I remember using the diamond, I think.
Ven it had ??::, $x+(-1)
masak it was cute that =<> looked like a fish.
Ven damn, that keyboard's enter is not where I think it is.
masak or a jellyfish or something.
19:49 kaare_ joined
Ven but it already had any/none back then ... Other languages are so far behind :P 19:49
dalek kudo/nom: fc0cbb1 | (Tobias Leich)++ | src/Perl6/ (2 files):
fix sub as infix op like in `2 [&add] 4`

We have to wrap it in another QAST::Op, so that additional arguments to the infix sub will be pushed to the added QAST::Op, and not to the QAST::Op that does the lookup of the &add sub we wanna call.
19:49 zengargoyle left
Ven also, www.perl.com/pub/2003/04/p6pdigest/20030427.html 19:52
avuserow what is the state of moarvm support for star? I'm poking around with a star release and wondering if I can do my testing on moarvm first for speed, and then parrot (and jvm if needed?)
Ven avuserow: I think moar is in
avuserow (poking around with trying to *make* a 2014.07 star release) 19:53
19:54 zengargoyle joined 19:55 denis_boyun_ left
masak "Of cours"Of course as Perl 6 doesn't exist yet [...]" -- it *did*, but the PR efforts from Parrot's side were nonexistent. 19:55
19:56 zakharyas left
masak does a quick translation of that script to Today's Perl 6 19:57
19:58 thou joined 20:02 thou left 20:06 Ven left 20:08 Ven joined 20:10 Akagi201 joined
dalek kudo/nom: 9a9f357 | (Pepe Schwarz)++ | src/Perl6/Grammar.nqp:
Added reason "Missing semicolon" for RT #75230.
20:11
kudo/nom: aa15259 | (Tobias Leich)++ | src/Perl6/Grammar.nqp:
Merge pull request #291 from peschwa/rt75230

Added reason "Missing semicolon" for RT #75230.
synopsebot Link: rt.perl.org/rt3//Public/Bug/Displa...l?id=75230
synopsebot Link: rt.perl.org/rt3//Public/Bug/Displa...l?id=75230
ast: 6811e52 | (Pepe Schwarz)++ | S32-exceptions/misc.t:
Match the reason, compare Rakudo PR #291 and commit aa15259.
20:14
psch thanks FROGGS++
20:14 Akagi201 left
FROGGS_ ahh, I was about to adjust the test :o) 20:15
masak ok, here's my translation: gist.github.com/masak/f74ce61b40ea996b9583
haven't tried to run it yet -- trying now :)
psch FROGGS_: you can update the ticket, if you want :)
FROGGS_ psch: was about to ask that :o) 20:16
psch: done
.u a 20:19
yoleaux U+0061 LATIN SMALL LETTER A [Ll] (a)
masak ok, it runs now, a couple of changes later. 20:21
it doesn't advance the board, though.
Ven (why can't we have package foo; like in p5 ?) 20:22
Ven is reading S10 to explain modules in his learnxiny
masak: you decided to go with fixed pos, uh ? 20:23
FROGGS_ Ven: package foo; is disallowed to detect P5 early 20:24
Ven (instead of for ^$.dimension->$x ... for ^$.dimension->$y, why not ^$.dimension X ^$.dimension ?)
masak no real reason.
just staying close to the original on that one.
Ven FROGGS_: seems like something quite useful, though ? maybe allow it if there's a use v6 ?
masak Ven: I think X still has a bit of a performance penalty, too. not 100% sure, though. 20:25
Ven masak: fwiw, github.com/Nami-Doc/GameOfLife/blo...er/gol.pl, my first perl 6 script
when I first ran it, it ran at maybe 1 fps :P
FROGGS_ Ven: you can still use module Foo; or class Foo; 20:26
masak ok, now it works.
Ven FROGGS_: why have both package and module, then ?
(it looks like s10 is missing some bits)
FROGGS_ m: package Foo { }
camelia ( no output )
FROGGS_ I dunno, really
Ven uh
[Coke] I think blaming "the pr efforts from parrot's side" is... not right. 20:27
masak having both package and module always confused me, too.
Ven so, humm, nobody deep into perl 6 really knows why :P ? *waits for somebody else to pop up with the answer* 20:28
masak I think 'package' is there mostly for side-compat with Perl 5. 20:29
Ven makes sense. But then, I'll probably avoid explaining it.
dalek ast: 425f65c | (David Warring [email@hidden.address] | / (2 files):
Corrected and unfudged tests. Added proto to multisub example.
20:30
masak sounds good to me.
20:33 hoverboard is now known as moistcherry, tgt joined 20:34 avuserow left, avuserow joined
masak Ven: very interesting reading. I read the rest of the thread too. 20:34
dalek p: fc99946 | (Tobias Leich)++ | src/QRegex/P6Regex/Actions.nqp:
RT #122245 fix \C[...] (negated \c)
20:37
synopsebot Link: rt.perl.org/rt3//Public/Bug/Displa...?id=122245
20:47 virtualsue left 20:49 virtualsue joined
dalek ast: 9e3a259 | (David Warring [email@hidden.address] | integration/advent2009-day14.t:
is() => is_deeply() on type tests
20:50
kudo/nom: 97882c3 | (Tobias Leich)++ | tools/build/NQP_REVISION:
bump nqp rev for <[\C[...]]> fix
20:55
ast: 29abad5 | (Tobias Leich)++ | S05-mass/named-chars.t:
RT #122245 unfudge now passing \C tests
20:56
synopsebot Link: rt.perl.org/rt3//Public/Bug/Displa...?id=122245
Ven ooh, around 66 fudges ! FROGGS_ ++ 20:57
psch m: say "abc" ~~ s/c$// # uhm...
camelia rakudo-moar fc0cbb: OUTPUT«Cannot modify an immutable Str␤ in sub infix:<=> at src/gen/m-CORE.setting:16978␤ in block at /tmp/BP7SmnVwsQ:1␤␤»
psch duhs
m: my $a ="abc"; say $a ~~ s/c$// # uhm... 20:58
camelia rakudo-moar fc0cbb: OUTPUT«True␤»
Ven psch: well, you clearly assigned to this poor `"abc"`
20:58 akaseki left
psch m: my $a ="abc"; $a ~~ s/c$//; say $a # uhm... 20:58
camelia rakudo-moar fc0cbb: OUTPUT«ab␤»
psch that's curious
m: my $a ="abc"; $a ~~ s/c$/i/; say $a
camelia rakudo-moar fc0cbb: OUTPUT«===SORRY!=== Error while compiling /tmp/VYmw2fyuzc␤Malformed replacement part; couldn't find final /␤at /tmp/VYmw2fyuzc:1␤------> my $a ="abc"; $a ~~ s/c$/i/; say $a⏏<EOL>␤ expecting any of:␤ postf…»
psch aha
suddenly $/ 20:59
m: my $a ="abc"; $a ~~ s/c$ /i/; say $a
camelia rakudo-moar fc0cbb: OUTPUT«abi␤»
21:00 Ven left, moistcherry left
psch for reference, that came from RT #82108 but clearly has another problem than the one in the ticket 21:01
synopsebot Link: rt.perl.org/rt3//Public/Bug/Displa...l?id=82108
21:01 ventica left
dalek ast: 2946712 | (David Warring [email@hidden.address] | integration/advent2009-day17.t:
tweak. 'our' no longer needed
21:02
21:03 akaseki joined 21:08 nbrown joined 21:14 tgt left 21:15 spider-mario left 21:17 kivutar left
masak m: my $a = "abc"; say $a ~~ /c$/ 21:19
camelia rakudo-moar fc0cbb: OUTPUT«「c」␤␤»
masak arguably, that's a bit inconsistent.
if // can handle $ appearing right by the end of the pattern, why not s/// ?
21:28 gfldex left
psch m: my $a = 'abc'; $a ~~ s/c$/ /; say $a.perl # this is fine too 21:28
camelia rakudo-moar fc0cbb: OUTPUT«"ab "␤»
psch masak: i agree, it should work 21:29
masak psch: feel free to submit a rakudobug about it. 21:32
21:32 SevenWolf joined
psch masak: i'll do that; i'll look at it a bit more, but i doubt i'll get it today; and even if, having a ticket is better than not 21:34
masak aye -- ticket regardless ;) 21:35
21:37 kaare_ left 21:46 thou joined 21:51 thou left 21:57 kurahaupo joined 22:11 kweetal left
masak 'night, #perl6 22:19
22:26 hoverboard joined 22:27 nbrown left, psch left, nbrown joined 22:31 atroxaper joined 22:35 xenoterracide_ left 22:36 atroxaper left 22:37 beastd left 22:39 labster left, aoseki joined 22:41 akaseki left
[Coke] m: 0.1234567891011121314151617181920.Rat.say 22:46
camelia rakudo-moar 97882c: OUTPUT«0.123456789101112129891646418400␤»
[Coke] m: 0.1234567891011121314151617181920.Rat.WHAT.say 22:47
camelia rakudo-moar 97882c: OUTPUT«(Rat)␤»
[Coke] m: 0.1234567891011121314151617181920.Rat.perl.say
camelia rakudo-moar 97882c: OUTPUT«0.123456789101112129891646418400␤»
Ulti_ what's the difference between str and Str? 22:48
other than one is native :P
how is str represented differently?
[Coke] m: my str $hi; 22:49
camelia ( no output )
[Coke] huh, I was guessing NYI
Ulti_ jnthn.net/perl6/bench/2014-07-13.html it's in some of the code examples in the benchmark of jnthns string magic 22:51
[Coke] in general, natives are immutable and are represented with native data types. (I am not sure if str follows that latter)
Ulti_ well the value might not be mutable but the variable is getting changed 22:52
for_concat_2_native vs the non native one
I have some tests that take 35 seconds atm that might get suddenly fast if just switching to 'str' instead of 'Str' works out 22:53
22:54 labster joined
Ulti_ though the concatenation isn't in a for loop but I can just make it like that 22:54
22:58 nbrown left
dalek ast: def56cb | (David Warring [email@hidden.address] | integration/advent2009-day18.t:
enable/unfudge parametric role tests
23:06
23:27 bjz left 23:34 thou joined
timotimo oh, huh. we haven't had a Rakudo Star release since 2014.04? 23:36
23:39 thou left 23:40 kurahaupo left 23:45 nbrown_ joined 23:50 xenoterracide_ joined 23:51 nbrown_ left, akaseki joined 23:52 aoseki left 23:57 nbrown joined