Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2013-09-22

Perl 6 | Reference Documentation | Rakudo

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:00 btyler joined #perl6
00:12 Psyche^_ joined #perl6
00:22 mstwu00 joined #perl6
00:45 dayangkun joined #perl6
00:51 Mouq r: macro infix:<d>($a, $b) {quasi { (1..{{{$b}}}).roll({{{$a}}}) }}; say 5 d 20
00:51 camelia rakudo 776f18: OUTPUT«10 4 3 14 3␤»
01:12 colomon not rolling very well there.  ;)
01:15 colomon not sure why you'd want your dice rolls to be a macro?
01:16 Mouq Originally I was hoing to be able to do "5d20", but that requires weird parsing
01:17 Mouq r: sub infix:<d>($a, $b) { ($b-3..+$b).roll($a)}; say 5 d 20
01:17 camelia rakudo 776f18: OUTPUT«18 18 20 17 19␤»
01:18 colomon much better… hey, you cheated!
01:19 Mouq Sorry, looks like I may have over-loaded my dice
01:20 colomon r: sub infix:<d>($a, $b) { ($b-3..+$b).roll($a)}; say 5d20
01:20 camelia rakudo 776f18: OUTPUT«[31m===[0mSORRY![31m===[0m Error while compiling /tmp/gfKe6HEi3tâ�¤Confusedâ�¤at /tmp/gfKe6HEi3t:1â�¤------> [32m>($a, $b) { ($b-3..+$b).roll($a)}; say 5[33mâ��[31md20[0mâ�¤    expecting any of:â�¤        whitespaceâ�¤Â»
01:20 colomon r: sub infix:<d>($a, $b) { ($b-3..+$b).roll($a)}; say 5d 20
01:20 camelia rakudo 776f18: OUTPUT«[31m===[0mSORRY![31m===[0m Error while compiling /tmp/EQN5LTMK41â�¤Confusedâ�¤at /tmp/EQN5LTMK41:1â�¤------> [32m>($a, $b) { ($b-3..+$b).roll($a)}; say 5[33mâ��[31md 20[0mâ�¤    expecting any of:â�¤        whitespaceâ�¤Â»
01:20 colomon r: sub infix:<d>($a, $b) { ($b-3..+$b).roll($a)}; say 5 d 20
01:20 camelia rakudo 776f18: OUTPUT«20 18 18 20 20␤»
01:20 colomon hmm
01:24 EvanTeitelman joined #perl6
01:25 woosley joined #perl6
01:25 xenoterracide joined #perl6
01:29 bruges joined #perl6
01:37 FROGGS joined #perl6
01:43 benabik joined #perl6
02:20 TimToady nr: sub postfix:<d20>($a) { (1..20).roll($a)}; say 5d20
02:20 camelia rakudo 776f18: OUTPUT«6 8 20 19 8␤»
02:20 camelia ..niecza v24-95-ga6d4c5f: OUTPUT«7 2 10 16 3␤»
02:20 TimToady surely you don't have that many kind of dice :)
02:20 FROGGS joined #perl6
02:22 TimToady *kinds
02:23 colomon TimToady: good point!  d4 d6 d8 d10 d12 d20 d100 … maybe d3
02:23 colomon would it be possible to make a macro to make defining a new die really easy?
02:25 TimToady nr: sub postfix:<d6> ($a) { ('⚀'..'⚅').roll($a) }; say 5d6
02:25 camelia rakudo 776f18: OUTPUT«⚁ ⚅ ⚂ ⚅ ⚄␤»
02:25 camelia ..niecza v24-95-ga6d4c5f: OUTPUT«⚅ ⚀ ⚁ ⚁ ⚀␤»
02:25 benabik I've seen a fair number of d30
02:30 colomon benabik: really?  I can't recall ever seeing one.  Nor having a desire for it.
02:30 * colomon is mostly diceless anyway.
02:31 benabik colomon: They're not usually in ye standard red box set, but they're in most game stores.
02:32 * lue wonders if an "is parsed(...)" on the macro would allow 5d20 ...
02:33 * colomon has a sudden urge for a d17
02:34 TimToady nr: sub postfix:<p50> ($a) { ('①'..'⑳','㉑'..'㉟','㊱'..'㊿').pick($a) }; say 6p50
02:34 camelia niecza v24-95-ga6d4c5f: OUTPUT«(timeout)»
02:34 camelia ..rakudo 776f18: OUTPUT«㉞ ① ⑯ ㉔ ③ ㊺␤»
02:34 TimToady n: sub postfix:<p50> ($a) { ('①'..'⑳','㉑'..'㉟','㊱'..'㊿').pick($a) }; say 6p50
02:34 * lue wants to find a d1
02:34 benabik colomon: Erm, I don't think there is a regular 17-hedron
02:34 camelia niecza v24-95-ga6d4c5f: OUTPUT«(timeout)»
02:34 colomon benabik: I'd be surprised if there was
02:34 benabik lue: sphere or mobius strip, I'd thing
02:35 * TimToady wonders shy that takes niecza so long...
02:35 TimToady *why
02:35 TimToady (works locally, eventually)
02:35 lue n: sub postfix:<p50> ($a) { my @z = ('①'..'⑳','㉑'..'㉟','㊱'..'㊿'); @z.pick($a) }; say 6p50
02:35 camelia niecza v24-95-ga6d4c5f: OUTPUT«(timeout)»
02:36 benabik n: my @z = ('①'..'⑳','㉑'..'㉟','㊱'..'㊿'); say @z
02:36 camelia niecza v24-95-ga6d4c5f: OUTPUT«(timeout)»
02:36 colomon :(
02:36 * TimToady is guessing it is generating a very long list somehow
02:36 benabik .u ① ㉑
02:36 yoleaux U+0020 SPACE [Zs] ( )
02:36 yoleaux U+2460 CIRCLED DIGIT ONE [No] (①)
02:36 yoleaux U+3251 CIRCLED NUMBER TWENTY ONE [No] (㉑)
02:37 TimToady unfortunately, the ranges are not contiguous
02:37 benabik n: '㉑'.say
02:37 camelia niecza v24-95-ga6d4c5f: OUTPUT«㉑␤»
02:37 benabik n: ('㉑'..'㉟').say
02:37 camelia niecza v24-95-ga6d4c5f: OUTPUT«"㉑".."㉟"␤»
02:37 TimToady n: sub postfix:<p50> ($a) { ('①'..'⑳','㉑'..'㉟').pick($a) }; say 6p50
02:37 benabik n: ('①'..'⑳').say
02:37 camelia niecza v24-95-ga6d4c5f: OUTPUT«(timeout)»
02:37 camelia niecza v24-95-ga6d4c5f: OUTPUT«"①".."⑳"␤»
02:38 benabik n: ('㊱'..'㊿').say
02:38 camelia niecza v24-95-ga6d4c5f: OUTPUT«"㊱".."㊿"␤»
02:38 benabik n: ('a'..'f','q'..'z').say
02:38 camelia niecza v24-95-ga6d4c5f: OUTPUT«"a".."f" "q".."z"␤»
02:38 benabik Dunno.
02:38 TimToady n: sub postfix:<p50> ($a) { ('①'..'⑳','㊱'..'㊿').pick($a) }; say 6p50
02:39 camelia niecza v24-95-ga6d4c5f: OUTPUT«(timeout)»
02:39 lue r: sub postfix:<p50> ($a) { my @z = ('①'..'⑳','㉑'..'㉟','㊱'..'㊿'); @z.pick($a) }; say 6p50
02:39 camelia rakudo 776f18: OUTPUT«㊶ ⑭ ⑰ ㊱ ⑮ ㉙␤»
02:39 Teratogen does Perl 6 do infix, prefix, AND postfix!?
02:40 Teratogen Why Perl 6 is a Reverse Polish Notation Calculator!
02:40 TimToady n: sub postfix:<p50> ($a) { ('①','⑳','㉑','㉟','㊱','㊿')».chars }; say 6p50
02:40 Teratogen =)
02:40 camelia niecza v24-95-ga6d4c5f: OUTPUT«Potential difficulties:â�¤  $a is declared but not used at /tmp/eV5CWEInjv line 1:â�¤------> [32msub postfix:<p50> ([33mâ��[31m$a) { ('â‘ ','⑳','㉑','㉟','㊱','㊿')».chars }[0mâ�¤â�¤1 1 1 1 1 1â�¤Â»
02:40 benabik RPN.pm6 that defines a postfix operator on lists for all the normal mathematics?
02:41 Teratogen If I can use Perl 6 as a RPN calculator I am SOLD!
02:42 benabik Would probably need to (ab)use macros to use it without using enough parentheses to make it look like Lisp.
02:42 TimToady it's not quite so simple
02:42 TimToady no space allowed before a postfix, and postfixes by default bind rather tightly
02:46 * colomon fantasizes about having the time to implement Forth in NQP...
02:47 dylanwh Sixth
02:51 colomon yeah, the temptation would be to make it more Factor than Forth
02:53 diakopter .
02:53 TimToady .u .
02:53 yoleaux U+002E FULL STOP [Po] (.)
02:54 diakopter .u ENERGY
02:54 yoleaux No characters found
02:54 diakopter .u VOLT
02:54 yoleaux U+26A1 HIGH VOLTAGE SIGN [So] (⚡)
02:54 diakopter .u WATT
02:54 yoleaux U+3357 SQUARE WATTO [So] (㍗)
02:54 diakopter .u PIKACHU
02:54 yoleaux No characters found
02:54 diakopter .u QUIETFANATIC
02:54 yoleaux No characters found
02:55 TimToady .u mouse
02:55 yoleaux U+1F401 MOUSE [So] (🐁)
02:57 TimToady .u 𒁏
02:57 yoleaux U+1204F CUNEIFORM SIGN BU OVER BU UN [Lo] (𒁏)
03:29 Mouq n: sub postfix:<p50> ($a) { my @z = ('①'..'⑳'),('㉑'..'㉟'),('㊱'..'㊿'); @z.roll($a) }; say 6p50
03:29 camelia niecza v24-95-ga6d4c5f: OUTPUT«(timeout)»
03:31 Mouq n: my @a = 'a'..'z'; @a.pick.say
03:31 camelia niecza v24-95-ga6d4c5f: OUTPUT«k␤»
03:31 Mouq n: my @a = 'a'..'z'; @a.pick(5).say
03:31 camelia niecza v24-95-ga6d4c5f: OUTPUT«k l u a i␤»
03:35 Mouq rn: my @a = '™',*.ord.succ.chr ... *.ord >= 9000; @a.roll(5).say
03:35 camelia niecza v24-95-ga6d4c5f: OUTPUT«⅀ ⇴ ⅎ ⋫ ∗␤»
03:35 camelia ..rakudo 776f18: OUTPUT«⊮ ⊬ ⊿ ≍ ⊫␤»
03:38 TimToady n: sub postfix:<p50> ($a) { ('①'..'⑳','㊱'..'㊿')[^40].pick($a) }; say 6p50
03:38 camelia niecza v24-95-ga6d4c5f: OUTPUT«(timeout)»
03:39 TimToady n: sub postfix:<p50> ($a) { (('①'...'⑳'),('㊱'...'㊿'))[^40].pick($a) }; say 6p50
03:39 camelia niecza v24-95-ga6d4c5f: OUTPUT«㊳ ㊻ ① (Any) (Any) ⑫␤»
03:40 TimToady n: say ('①'..'⑳')[20]
03:40 camelia niecza v24-95-ga6d4c5f: OUTPUT«(Any)␤»
03:42 TimToady n: say '㉑'.succ
03:43 camelia niecza v24-95-ga6d4c5f: OUTPUT«WTF␤»
03:43 TimToady there you go
03:43 TimToady n: say '㉑'...'㉟'
03:43 camelia niecza v24-95-ga6d4c5f: OUTPUT«㉑ ㉒ ㉓ ㉔ ㉕ ㉖ ㉗ ㉘ ㉙ ㉚ ㉛ ㉜ ㉝ ㉞ ㉟␤»
03:43 TimToady n: say '㉑'..'㉟'
03:43 camelia niecza v24-95-ga6d4c5f: OUTPUT«"㉑".."㉟"␤»
03:44 TimToady well, maybe not
03:45 TimToady n: say ('㉑'..'㉟').elems
03:45 camelia niecza v24-95-ga6d4c5f: OUTPUT«(timeout)»
03:45 TimToady n: say ('㉑'..'㉟').list
03:45 camelia niecza v24-95-ga6d4c5f: OUTPUT«(timeout)»
03:45 TimToady n: say ('㉑'..'㉟')[^20]
03:45 camelia niecza v24-95-ga6d4c5f: OUTPUT«㉑ WTF WTG WTH WTI WTJ WTK WTL WTM WTN WTO WTP WTQ WTR WTS WTT WTU WTV WTW WTX␤»
03:46 TimToady yes, it tries to do .. directly rather than convert to ...
03:46 TimToady n: say ('㉑'...'㉟')[^20]
03:46 camelia niecza v24-95-ga6d4c5f: OUTPUT«㉑ ㉒ ㉓ ㉔ ㉕ ㉖ ㉗ ㉘ ㉙ ㉚ ㉛ ㉜ ㉝ ㉞ ㉟ (Any) (Any) (Any) (Any) (Any)␤»
03:47 diakopter rn: say ()[^20]
03:47 camelia niecza v24-95-ga6d4c5f: OUTPUT«(Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any)␤»
03:47 camelia ..rakudo 776f18: OUTPUT«␤»
03:47 diakopter rn: say ()[^20000]
03:47 camelia niecza v24-95-ga6d4c5f: OUTPUT«(Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) (Any) …»
03:47 camelia ..rakudo 776f18: OUTPUT«␤»
03:57 Mouq rn: my @a = '㉑'...'㉟'; ({say shift @a} xx 5)».() # unrelated
03:57 camelia rakudo 776f18, niecza v24-95-ga6d4c5f: OUTPUT«㉑␤㉒␤㉓␤㉔␤㉕␤»
03:58 Mouq rn: my @a = '㉑'...'㉟'; say ({shift @a} xx 5)».() # unrelated
03:58 camelia rakudo 776f18: OUTPUT«㉓ ㉕ ㉒ ㉔ ㉑␤»
03:58 camelia ..niecza v24-95-ga6d4c5f: OUTPUT«㉑ ㉒ ㉓ ㉔ ㉕␤»
03:58 Mouq rn: my @a = '㉑'...'㉟'; say ({shift @a} xx 5)map(*.()) # alas
03:58 camelia rakudo 776f18: OUTPUT«[31m===[0mSORRY![31m===[0m Error while compiling /tmp/CPW6EHCMybâ�¤Two terms in a rowâ�¤at /tmp/CPW6EHCMyb:1â�¤------> [32mmy @a = '㉑'...'㉟'; say ({shift @a} xx 5)[33mâ��[31mmap(*.()) # alas[0mâ�¤    expecting any of:â�¤        postfixâ�¤        infix stopperâ�¤       …»
03:58 camelia ..niecza v24-95-ga6d4c5f: OUTPUT«[31m===[0mSORRY![31m===[0m��Two terms in a row at /tmp/OKz6GOYwDc line 1:�------> [32mmy @a = '㉑'...'㉟'; say ({shift @a} xx 5)[33m�[31mmap(*.()) # alas[0m��Parse failed��»
03:59 Mouq rn: my @a = '㉑'...'㉟'; say ({shift @a} xx 5).map(*.()) # alas
03:59 camelia niecza v24-95-ga6d4c5f: OUTPUT«Unhandled exception: Unable to resolve method postcircumfix:<( )> in type Whatever␤  at /tmp/wzw_L8TGHt line 1 (mainline @ 6) ␤  at /home/p6eval/niecza/lib/CORE.setting line 4583 (ANON @ 3) ␤  at /home/p6eval/niecza/lib/CORE.setting line 4584 (module-C…»
03:59 camelia ..rakudo 776f18: OUTPUT«No such method 'postcircumfix:<( )>' for invocant of type 'Whatever'␤  in block  at /tmp/Pj5wdmCblU:1␤␤»
04:00 preflex_ joined #perl6
04:00 Mouq If it were DWIM, it would make *.() into a WhateverCode.
04:04 Mouq …I can't really think of a time where "*.()" makes sense as acting on Whatever.
04:05 Mouq Here's the dumb one-liner that spawned the question in the first place:
04:05 Mouq rn: my @u = 0.chr, *.ord.succ.chr ... *; loop { say (({(shift @u).perl} xx 5).map({$_()}))».fmt("% -10s"); sleep 1}
04:05 camelia niecza v24-95-ga6d4c5f: OUTPUT«(timeout)»
04:05 camelia ..rakudo 776f18: OUTPUT«(timeout)"\x[0]"    "\x[1]"    "\x[2]"    "\x[3]"    "\x[4]"   ␤"\x[5]"    "\x[6]"    "\x[7]"    "\b"       "\t"      ␤"\n"       "\x[b]"    "\x[c]"    "\r"       "\x[e]"   ␤"\x[f]"    "\x[10]"   "\x[11]"   "\x[12]"   "\x[13]"  ␤"\x[14]"   "\x[15]"   "\x[16]"  …»
04:11 Mouq .u ෴
04:11 yoleaux U+0DF4 SINHALA PUNCTUATION KUNDDALIYA [Po] (෴)
04:14 Ghost___ joined #perl6
04:22 Ghost___ left #perl6
04:42 mattp_ joined #perl6
04:52 logie joined #perl6
05:20 mattp_ joined #perl6
05:51 FROGGS joined #perl6
05:53 SamuraiJack__ joined #perl6
06:28 BenGoldberg .u iota
06:28 yoleaux U+0196 LATIN CAPITAL LETTER IOTA [Lu] (Ɩ)
06:28 yoleaux U+0269 LATIN SMALL LETTER IOTA [Ll] (ɩ)
06:28 yoleaux U+0345 COMBINING GREEK YPOGEGRAMMENI [Mn] (◌ͅ)
06:32 BenGoldberg How hard would it be to write APL with perl6?
06:32 xinming joined #perl6
06:37 FROGGS joined #perl6
06:46 denis_boyun joined #perl6
07:12 FROGGS joined #perl6
07:15 SamuraiJack__ joined #perl6
07:18 darutoko joined #perl6
07:25 mstwu00 joined #perl6
07:32 FROGGS joined #perl6
08:12 Rotwang1 joined #perl6
08:23 xinming joined #perl6
08:28 xinming_ joined #perl6
08:36 spider-mario joined #perl6
08:39 sqirrel joined #perl6
08:57 iSlug joined #perl6
09:05 masak good Sunday antenoon, good #perl6 people.
09:06 bonsaikitten I claim it be afternoon, but a good day to all y'all either way
09:10 PZt joined #perl6
09:11 lizmat good *, #perl6!
09:11 lizmat does anybody know why jakudo dropped to 61% ?
09:12 lizmat BenGoldberg: shuddering at the thought of APL (it's been 30+ since I last touched that), but generally should be doable, I think
09:13 lizmat *years
09:18 FROGGS hi all
09:18 masak hi FROGGS
09:19 FROGGS is there an easy way to glue apache2 and perl6 together?
09:19 masak I know the allure of turning Perl 6 into "your language" is very strong... but I look at the 5d20 thing in the backlog, and it seems very quixotic to not just .roll given Die.new("5d20"); or something
09:20 masak good design is knowing when to stop bending the language, and to bend a little yourself :)
09:20 bonsaikitten FROGGS: CGI :D
09:20 FROGGS :(
09:21 FROGGS bonsaikitten: don't I need a handler to execute the perl 6 scripts?
09:21 bonsaikitten #! should work
09:21 FROGGS k, will try
09:21 FROGGS I feared I had to do more
09:24 SamuraiJack__ joined #perl6
09:36 dmol joined #perl6
09:41 FROGGS r: #!/usr/local/bin/perl6
09:41 camelia rakudo 776f18: ( no output )
09:43 lizmat r: #foo
09:43 camelia rakudo 776f18: ( no output )
09:44 lizmat shebang handling is a property of the shell you're running in, afaik
09:44 FROGGS lizmat: was just a test if this triggers a warning in apache's error log
09:44 FROGGS [Sun Sep 22 11:40:48 2013] [error] [client 127.0.0.1] use of uninitialized value of type Any in string context
09:44 FROGGS [Sun Sep 22 11:40:48 2013] [error] [client 127.0.0.1]   in any  at src/gen/ModuleLoader.nqp:349
09:45 FROGGS this is method load_setting, but I don't know why that happens when running under apache2
09:46 FROGGS hmmm, just spitting out an html snippet takes 0.9 seconds :/
09:47 lizmat "perl6 is fast enough, except when it isn't"  :-)
09:47 FROGGS hehe, I hear TimToady saying it like that :o)
09:48 masak get off my lawn. I delivered web content using Rakudo Perl back in 2008.
09:49 masak it was slow as all that, but through various tricks we managed to bring the typical response time from 17 s to 1.5 s.
09:49 lizmat don't we have a Perl6 PSGI layer already ?
09:50 masak HTTP::Server::Simple claims to have PSGI support.
09:50 masak so yeah, there's no legitimate reason not to kill CGI. with fire.
09:50 lizmat FROGGS: fwiw, apache2 / mod_perl is on the way out with many outfits, including e.g. Booking
09:51 hummeleB1 joined #perl6
09:53 FROGGS so, I'd use HTTP::Server::Simple together with CGI/FastCGI or mod_perl?
09:53 GlitchMr Perl 6? Web?
09:53 GlitchMr Last time I checked, sending a webpage took 1 second.
09:54 lizmat FROGGS: just HTTP::Server::Simple and your script as a PSGI app
09:55 lizmat http://plackperl.org/psgi-faq.html for some Plack / PSGI background
09:58 FROGGS so, still then configure my apache like before? AddHandler cgi-script .pl?
10:00 lizmat I don't think apache is in that picture anymore
10:00 FROGGS that is a problem
10:00 lizmat ah, ok, I didn't know apache was a prerequisite
10:00 lizmat sorry for the noise, then
10:00 FROGGS because the other ten webpages/vhosts would be sad if apache is not the listener enymore
10:00 FROGGS anymore*
10:02 FROGGS thanks anyway for the tips, I really appreciate it
10:03 * lizmat is bored running a 5 minute make, perl6 -e '01' cycle trying to find out where it gets into a RAM gobbling loop
10:04 FROGGS :/
10:04 lizmat I guess I should be glad it's only 5 minutes per iteration
10:05 FROGGS could be worse, yeah
10:05 FROGGS hmmm, maybe I write my webapp in nqp :P
10:11 lizmat FROGGS: or run this on another port, and reverse proxy to it from apache2
10:11 FROGGS hmmmm, that sounds good
10:14 SamuraiJack joined #perl6
10:15 lizmat .oO( sometimes I forget that these tricks, that I have been using since ~1995, may be new to other people )
10:20 clkao joined #perl6
10:21 FROGGS well, not new, but I forgot about that right now :o)
10:22 FROGGS I was thinking about a listener on another port a few days ago, and we have reverse proxies at work...
10:22 FROGGS but sometimes the connection between these is not properly established correctly in my head
10:30 lizmat ok, seems X::Comp::Group.gist is sending us into oblivion
10:32 masak lizmat++ # perseverence
10:34 dayangkun_ joined #perl6
10:41 spider-mario joined #perl6
10:47 spider-mario joined #perl6
10:47 itz_ shouldn't the debugger be in star?
10:54 lizmat isn't it ?
11:03 lizmat the rabbit hole goes deeper: X::Comp.gist
11:03 PacoAir joined #perl6
11:08 lizmat for @.modules.reverse[1..*]   seems to be the line that hangs
11:11 lizmat what does that actually mean ???
11:12 lizmat moritz added/changed that on 30 August 2012
11:13 nebuchadnezzar joined #perl6
11:14 lizmat r: my @a=1,2,3; say @a.reverse[1..*]  # also hangs
11:14 camelia rakudo 776f18: OUTPUT«2 1␤»
11:15 wtw joined #perl6
11:15 lizmat ah, not here, but on my perl it does
11:19 lizmat removing the [1..*] solves the problem
11:19 lizmat but I'm still not sure what this is supposed to do:
11:19 lizmat reverse the array and drop the originally last element ?
11:22 darutoko joined #perl6
11:25 iSlug joined #perl6
11:35 EvanTeitelman joined #perl6
11:36 lizmat Anybody have any suggestions about this AST https://gist.github.com/lizmat/6659103 for $ perl6 --target=ast -e 'my @a; @a.reverse[1..*]
11:36 lizmat it does not seem to call any of the [Callable] candidates, so I'm assuming it's generating 1..*
11:38 lizmat r: say (1..*).list
11:38 camelia rakudo 776f18: OUTPUT«(timeout)»
11:38 lizmat seeing the same behaviour for @a.reverse[1..*]
11:38 tadzik .gist of a list
11:39 lizmat tadzik: shorter
11:39 lizmat r: 1 for 1..*
11:40 camelia rakudo 776f18: OUTPUT«(timeout)»
11:40 tadzik well, what did you expect? :P
11:40 tadzik sink?
11:43 lizmat ok, then what should:  @a.reverse[1..*]    do ?
11:44 rindolf joined #perl6
11:45 FROGGS r: map { 1 } 1..*
11:45 camelia rakudo 776f18: OUTPUT«[31m===[0mSORRY![31m===[0m Error while compiling /tmp/Rq2556pPxWâ�¤Two terms in a rowâ�¤at /tmp/Rq2556pPxW:1â�¤------> [32mmap { 1 } [33mâ��[31m1..*[0mâ�¤    expecting any of:â�¤        postfixâ�¤        statement endâ�¤        statement modifierâ�¤        statement modi…»
11:45 FROGGS r: map { 1 }, 1..*
11:45 camelia rakudo 776f18: OUTPUT«(timeout)»
11:45 FROGGS r: map { 1 }, 1..*; 1
11:45 lizmat still greedy
11:45 camelia rakudo 776f18: OUTPUT«(timeout)»
11:45 FROGGS gah
11:46 tadzik something is fishy, yes
11:46 FROGGS r: my @a = map { 1 }, 1..*; 1
11:46 FROGGS w/e
11:46 lizmat r: my @a=^10; say @a.reverse[1..*]   # what is this really supposed to do ?
11:46 camelia rakudo 776f18: OUTPUT«(timeout)»
11:46 camelia rakudo 776f18: OUTPUT«8 7 6 5 4 3 2 1 0␤»
11:47 lizmat r: my @a=^10; say @a[1..*]   # what is this really supposed to do ?
11:47 camelia rakudo 776f18: OUTPUT«1 2 3 4 5 6 7 8 9␤»
11:47 lizmat just skip the first element ?
11:47 lizmat aha, I guess I know what's going on now
11:48 lizmat because [] is now a subcall, the whatever is not able to get at the .elems of the array anymore
11:48 masak yes, just skip the first element.
11:48 lizmat would that be a valid theory?
11:48 masak it needs to get at it in a different way, but surely it should still be just as possible?
11:51 eternaleye joined #perl6
11:52 lizmat I guess we need to generate different AST for the Whatever case
11:53 krokite joined #perl6
11:54 lizmat which would be a new thing for me...
11:54 lizmat FROGGS: any suggestions?
11:54 * FROGGS is thinking
11:54 lizmat simplest case: my @a; @a[1..*]
11:54 FROGGS r: my @a; @a[1..*]
11:54 camelia rakudo 776f18: ( no output )
11:55 FROGGS lizmat: this only hangs on your box, right?
11:55 lizmat in the method2sub branch
11:55 FROGGS do you have additional local changes?
11:55 lizmat nope
11:56 FROGGS k
11:56 lizmat just debug statements that I just removed
11:56 lizmat so double checking now, will tell you in about 4 mins
11:58 FROGGS k, building too
12:02 lizmat yup,  perl6 -e 'my @a; @a[1..*]' in method2sub as on github
12:02 lizmat hangs
12:04 lizmat .tell jnthn in method2sub, my @a; @a[1..*] hangs because, most likely, the whatever cannot see the .elems of the object anymore
12:04 yoleaux lizmat: I'll pass your message to jnthn.
12:06 FROGGS lizmat: which candidate gets called, do you know that?
12:06 lizmat I don't think the candidate gets called
12:08 lizmat it seems to expect a QAST::WVal(Int) for the infix<..>
12:09 lizmat I guess the WVal is not set up correctly
12:09 lizmat looking at perl6 --target=ast -e 'my @a; @a[1..*]'
12:09 sqirrel joined #perl6
12:09 FROGGS https://gist.github.com/FROGGS/88fe1bfcd2385b027656
12:10 lizmat will try that
12:10 FROGGS lizmat: the ast seems fine
12:10 lizmat oops, nothing to try yet
12:10 colomon Is Grammar::Debugger broken atm?
12:10 lizmat except that the WVal on method2sub is probably not set up correctly
12:11 colomon > rf
12:11 colomon Cannot modify an immutable value
12:11 colomon in block  at lib/Grammar/Debugger.pm:100
12:12 lizmat colomon: could be
12:12 lizmat FROGGS: what sets up the WVal in either case ?
12:13 FROGGS this: perl6 --target=ast -e '1'
12:13 FROGGS so, decint or so
12:14 eternaleye joined #perl6
12:20 FROGGS r: multi sub test(\SELF, Callable $block) { say 1 }; my @a; test(@a, 1..*)
12:20 camelia rakudo 776f18: OUTPUT«Cannot call 'test'; none of these signatures match:␤:(\SELF, $block)␤  in sub test at /tmp/WmMVWXS6dZ:1␤  in block  at /tmp/WmMVWXS6dZ:1␤␤»
12:20 FROGGS r: multi sub test(\SELF, Whatever) { say 1 }; my @a; test(@a, 1..*)
12:20 camelia rakudo 776f18: OUTPUT«Cannot call 'test'; none of these signatures match:␤:(\SELF, Whatever )␤  in sub test at /tmp/p287VEdfnw:1␤  in block  at /tmp/p287VEdfnw:1␤␤»
12:21 FROGGS r: multi sub test(\SELF, Positional \pos) { say 1 }; my @a; test(@a, 1..*)
12:21 camelia rakudo 776f18: OUTPUT«1␤»
12:21 FROGGS ahh
12:21 lizmat indeed
12:21 lizmat hmmm...
12:25 FROGGS I added debug statements, so in a few minutes we should know which candidate gets called (if we end up in one)
12:27 lizmat yup, pos candidate
12:27 lizmat which then does an pos.map{}.eager.Parcel
12:28 lizmat which then hangs
12:29 eternaleye joined #perl6
12:30 lizmat aha, ok
12:30 lizmat found it
12:30 FROGGS multi sub postcircumfix:<[ ]>( \SELF, $pos ) is rw {    # NOT SELECTED
12:30 FROGGS nqp::say($?LINE);
12:30 FROGGS fail "Cannot use negative index $pos on {SELF.WHAT.perl}" if $pos < 0;
12:30 FROGGS SELF.at_pos($pos);
12:30 FROGGS }
12:30 lizmat seems I lost some code in the positional candidare
12:30 spider-mario joined #perl6
12:30 FROGGS it calls this, over and over again
12:30 lizmat yup,
12:31 lizmat I think I found the pb now
12:31 FROGGS cool
12:31 lizmat FROGGS++
12:31 FROGGS :o)
12:31 FROGGS glad to help :o)
12:32 FROGGS you have to fix moarvm now in exchange :P
12:32 lizmat ok, what do I need to do ?
12:32 Mouq joined #perl6
12:32 FROGGS I even can't explain what goes wrong
12:33 lizmat I guess I need to clone moarvm now
12:33 FROGGS it has something todo with lexial scopes, and it can't find its outer scope under some circumstances
12:33 eternaleye joined #perl6
12:33 FROGGS I guess it is too hairy for all except jnthn
12:33 lizmat then most definitely too hairy for me
12:34 Rotwang1 joined #perl6
12:34 FROGGS yeah, I wasn't that serious about the need for exchange :o)
12:35 lizmat r: my @a; @a[1..*]:k  # should also hang
12:35 camelia rakudo 776f18: ( no output )
12:35 lizmat Hmmm...
12:36 spider-mario_ joined #perl6
12:37 FROGGS it does, locally
12:37 FROGGS even if the output is not identical
12:40 FROGGS lunch&
12:40 denis_boyun joined #perl6
12:58 lizmat $ perl6  -e 'my @a=^10; say @a[1..*]'
12:58 lizmat 1 2 3 4 5 6 7 8 9
12:58 lizmat :-)
13:02 FROGGS push push push :o)
13:04 lizmat not before I run a spectest
13:06 lizmat $positions.map( { last if $_ >= $list.gimme( $_ + 1 ); $_} ).eager.Parcel;   # wonder whether $positions[0] .. $list.elems wouldn't do the trick either
13:08 timotimo the first one is lazy, the second one is eager. dunno if it makes a difference really
13:11 dalek rakudo/method2sub: 1b704cc | (Elizabeth Mattijsen)++ | src/core/array_slice.pm:
13:11 dalek rakudo/method2sub: Handle [1..*] properly (somehow got lost in the refactor  :-( )
13:11 dalek rakudo/method2sub: review: https://github.com/rakudo/rakudo/commit/1b704cc460
13:12 lizmat yes, but the result of the map is made eager, so I don't think there is a difference
13:12 timotimo the result is made eager, but there's a last in it
13:12 lue joined #perl6
13:13 lizmat there's another reason I just realize
13:13 lizmat $positions doesn't need to have contiguous values in them
13:14 lizmat *it
13:15 timotimo gimme returns an element from the list, yes?
13:15 lizmat no, just reifies, afaik
13:15 timotimo so what's the if for? :/
13:15 lizmat it returns the index of the last element reified
13:16 timotimo ah, ok
13:16 timotimo so basically this stops as soon as the gimme doesn't reify a new element?
13:16 lizmat yes, that's how I understand it
13:17 * timotimo doesn't know
13:18 spider-mario joined #perl6
13:18 lizmat # return the number of elements we have now
13:18 lizmat $count
13:18 lizmat I guess it's .elems really, not index
13:20 masak it is.
13:21 masak that's why *-1 is the index of the last element of the array, for example, because it's .elems-1
13:27 lizmat seems t/spec/S29-os/system.t is failing the last 2 tests, timotimo ?
13:27 lizmat (on OS X)
13:27 lizmat ah, of course, I didn't merge the hot fix yet
13:28 lizmat some :v tests still failing, will look at that after some cycling&
13:40 pmurias joined #perl6
13:40 pmurias hi
13:41 diakopter hi
13:42 tadzik hi
13:43 diakopter hi
13:43 masak hi
13:45 diakopter hi
13:45 diakopter .
13:45 timotimo hi
13:45 timotimo oh shit i missed it ;(
13:46 diakopter .
13:51 EvanTeitelman joined #perl6
13:51 masak he said with a wink and a frown
13:57 cogno joined #perl6
14:05 sqirrel joined #perl6
14:05 zakharyas joined #perl6
14:06 dalek rakudo-js: 9dbb04d | (Pawel Murias)++ | runtime/sixmodel.js:
14:06 dalek rakudo-js: Stop cloned objects from having a pointer to the SC of the orginal.
14:06 dalek rakudo-js: review: https://github.com/pmurias/rakudo-js/commit/9dbb04d207
14:06 dalek rakudo-js: 891eab7 | (Pawel Murias)++ | / (5 files):
14:06 dalek rakudo-js: Refactor CodeRef to a seperate file.
14:06 dalek rakudo-js: review: https://github.com/pmurias/rakudo-js/commit/891eab7bf4
14:10 kaare_ joined #perl6
14:10 ggoebel joined #perl6
14:14 cogno joined #perl6
14:15 * TimToady points out that 1..* is not ever going to ask for .elems; it's just an infinite range
14:15 EvanTeitelman joined #perl6
14:15 TimToady the * in 1..* behaves differently from *-1
14:16 masak good point.
14:16 TimToady and .[1..*] quits because the range runs off the end, not becauase .elems was fed to it
14:17 ajr joined #perl6
14:17 TimToady S09:218
14:17 synopsebot Link: http://perlcabal.org/syn/S09.html#line_218
14:20 fridim__ joined #perl6
14:25 cogno joined #perl6
14:26 cogno joined #perl6
14:28 mtj_ joined #perl6
14:42 iSlug joined #perl6
14:56 xinming joined #perl6
15:13 GlitchMr `
15:13 masak rn: say ord('`')
15:13 camelia rakudo 776f18, niecza v24-95-ga6d4c5f: OUTPUT«96␤»
15:13 GlitchMr My mistake
15:15 masak rn: say [+] "My mistake".lc.subst(" ", "").comb>>.ord >>->> ord("a") >>+>> 1
15:15 camelia rakudo 776f18, niecza v24-95-ga6d4c5f: OUTPUT«116␤»
15:15 masak rn: say 116 - 96
15:15 camelia rakudo 776f18, niecza v24-95-ga6d4c5f: OUTPUT«20␤»
15:16 masak rn: say "GlitchMr".chars * 2.5
15:16 camelia rakudo 776f18, niecza v24-95-ga6d4c5f: OUTPUT«20␤»
15:17 masak coincidence? I think not!
15:17 GlitchMr ;-)
15:18 EvanTeitelman joined #perl6
15:19 GlitchMr http://olive.undo.it/log?channel=perl6&amp;time=20130502#1281
15:19 synopsebot Link: https://rt.perl.org/rt3//Public/Bug/Display.html?id=1281
15:19 GlitchMr coincidence? I think not!
15:25 spider-mario joined #perl6
15:27 Rotwang1 joined #perl6
15:34 masak synopsebot: false positive. shame on you.
15:34 masak synopsebot: clearly when there is \H *before* the '#', you shouldn't... g'ah.
15:35 xenoterracide joined #perl6
15:36 masak GlitchMr: yes, I tend to use that phrase when making fun of a conspiracy theory. I believe I picked it up from Slashdot many years ago.
15:49 colomon https://github.com/colomon/perl6-WSN
15:53 * masak .oO( it was definitely Wirth it )
15:54 masak colomon: so, {} means 0..* repetitions, it seems. what do () and [] mean?
15:55 colomon masak: http://en.wikipedia.org/wiki/Wirth_syntax_notation
15:55 masak ah, [] means 0..1
15:55 colomon () is grouping, [ ] is optional
15:55 masak and parens are just for gr... right.
15:55 masak I gathered from wsn2p6 :)
15:55 colomon yes, it's pretty straightforward there.
15:56 colomon may still have bugs, I'm just now trying the code it outputs.
15:57 colomon this is me exercising my laziness, as I have a 344 WSN grammar I'd like to convert to p6
15:57 colomon *344 line
16:03 denis_boyun joined #perl6
16:12 rindolf joined #perl6
16:14 rindolf joined #perl6
16:16 FROGGS lizmat++ # seems to work
16:19 colomon FROGGS: that's not fair at all.  lizmat clearly works hard.  ;)
16:21 rindolf joined #perl6
16:21 GlitchMr oh noes, I killd IRC logs.
16:22 GlitchMr (well, at least http://olive.undo.it/log?channel=perl6 does work)
16:22 GlitchMr Oh, it's just me.
16:23 FROGGS colomon: it wasn't meant that way...
16:23 FROGGS :P
16:24 colomon FROGGS: yes, I know.  :)
16:28 rindolf joined #perl6
16:31 ajr joined #perl6
16:33 masak meh. I'm editing a gist, and I keep feeling that clicking "Edit", editing the text in a textarea, and then "Update gist". I wish there were a "Quick edit" operation where I could highlight some text, hit a key to get a small popup edit box, make the change, and then just hit a key again to save the change.
16:33 rindolf joined #perl6
16:33 masak reloading the page twice just to make a small change feels so 1990s.
16:33 colomon I got the output from my WSN to perl 6 grammar convertor working.  But I had to manually change two of the rules to regexes to get it working.  :(
16:38 rindolf joined #perl6
16:43 rindolf joined #perl6
16:47 rindolf joined #perl6
16:49 rindolf joined #perl6
16:57 FROGGS masak: one problem too is that the edit button is at the top... which is not very handy if you spotted something to change on a bigger gist
17:01 rindolf joined #perl6
17:02 rindolf joined #perl6
17:02 rindolf joined #perl6
17:03 masak FROGGS: troo. context is lost.
17:03 FROGGS and it is work to scroll all up
17:04 masak [Home]
17:04 timotimo you don't have a "pos 1" key on your keyboard?
17:04 FROGGS so, a double click on the thing to change might be nicer
17:04 FROGGS timotimo: I dont use that on laptops usually
17:05 timotimo well ...
17:05 BenGoldberg joined #perl6
17:08 rindolf joined #perl6
17:13 rindolf joined #perl6
17:14 dalek evalbot: 43baccc | Mouq++ | evalbot.pl:
17:14 dalek evalbot: Un-bug (fix?) utf8 truncation (Issue #3)
17:14 dalek evalbot: review: https://github.com/perl6/evalbot/commit/43baccc459
17:15 pmurias colomon: what grammar are you converting from WSN to perl6?
17:16 colomon ISO-10303 part 11's grammar
17:16 colomon https://github.com/colomon/perl6-WSN/blob/master/iso-10303-11--2004-raw.wsn
17:17 rindolf joined #perl6
17:22 colomon r: say '\q'
17:22 camelia rakudo 776f18: OUTPUT«���[���3���1���m���=���=���=������[���0���m���S���O���R���R���Y���!������[���3���1���m���=���=���=������[���0���m��� ���E���r���r���o���r��� ���w���h���i���l�
17:22 colomon errrr....
17:22 timotimo those golfs get shorter and shorter each day
17:22 colomon n: say '\q'
17:22 camelia niecza v24-95-ga6d4c5f: OUTPUT«␤»
17:23 Mouq Oh no! Sorry
17:23 colomon rn: say '\'
17:23 Mouq Bad Mouq
17:23 camelia niecza v24-95-ga6d4c5f: OUTPUT«[31m===[0mSORRY![31m===[0m��Unsupported use of bare 'say'; in Perl 6 please use .say if you meant $_, or use an explicit invocant or argument at /tmp/N08o7EIFgO line 1:�------> [32msay[33m�[31m '\'[0m��Confused at /tmp/N08o7EIFgO line 1:�------…»
17:23 camelia ..rakudo 776f18: OUTPUT«[31m===[0mSORRY![31m===[0m Error while compiling /tmp/R_tvmU_ReSâ�¤Unable to parse expression in single quotes; couldn't find final "'"â�¤at /tmp/R_tvmU_ReS:1â�¤------> [32msay '\'[33mâ��[31m<EOL>[0mâ�¤    expecting any of:â�¤        argument listâ�¤        prefix or…»
17:23 colomon rn: say '\\'
17:23 camelia rakudo 776f18, niecza v24-95-ga6d4c5f: OUTPUT«\␤»
17:23 timotimo one day it'll be enough to say "i'm going to ask you a very personal question" and it'll blow up
17:24 timotimo camelia: don't worry, i'm not actually going to ask you a personal question
17:24 geekosaur heh
17:24 * lizmat is back, and not working yet  :-)
17:24 FROGGS *g*
17:25 Mouq Wait, I don't think that's my fault... What is '\q' doing?
17:27 * geekosaur thinks that thing above was not Mouq's fault at all but a longstanding rakudo weirdness (possibly related to mixing different representations in an error message)
17:27 geekosaur errr
17:27 geekosaur ^different rep^different unicode rep
17:28 geekosaur notably, that looks a lot like utf32 being output as utf8
17:28 Mouq That's my thought as well…
17:30 moritz \o
17:30 colomon geekosaur++
17:30 timotimo i thought it kinda looked like stack data; like lots of small integers
17:33 EvanTeitelman joined #perl6
17:38 ssutch joined #perl6
17:42 denis_boyun joined #perl6
17:48 geekosaur timotimo: all the right characters are there but there are 3 NULs being output with each one
17:51 Mouq i.e., "\x[0]", i.e. buf8(0).new.decode("utf8")
17:52 Mouq *buf8.new(0)
18:00 benabik joined #perl6
18:10 colomon anyone know if using :i in grammars works yet?
18:11 pmurias it should
18:11 colomon it's spec'd, yes.
18:12 colomon looks like it compiles, at least
18:13 * colomon would like to know why ISO 10303 defines all the keywords in lower case, but always uses them upper case.  :\
18:26 masak rn: say "AAAAAA" ~~ / :i a /
18:26 camelia rakudo 776f18, niecza v24-95-ga6d4c5f: OUTPUT«「A」␤␤»
18:26 masak colomon: my p6eval is shorter than your question :P
18:27 colomon masak: but do grammars use the same code?  That is the question.
18:27 colomon I'll have my generated grammar capable of testing it shortly.  ;)
18:29 ajr joined #perl6
18:30 masak colomon: yes, grammars use the same code.
18:30 masak colomon: there are not two engines, one running regexes and another running grammars. it's all the same code paths.
18:32 timotimo well, there's the NFA and the straight up regex matching, so *kind of* two engines, but not really
18:33 colomon masak: \o/
18:37 denis_boyun joined #perl6
18:39 masak timotimo: huh?
18:40 timotimo that's a slightly different mode of parsing, but they are just part of the same process
18:40 timotimo and the nfa part isn't always a part of the matching
18:40 masak right.
18:42 spider-mario joined #perl6
18:48 SamuraiJack joined #perl6
18:49 benabik joined #perl6
18:51 * colomon is now debugging a 334 line auto-generated grammar.  ;)
18:51 diakopter o_O
18:53 colomon mind you, it hasn't successfully parsed anything yet
18:56 masak colomon: did you consider writing tests for both the code generation and using the generated result to parse stuff?
18:56 colomon masak: I did consider it
18:56 masak colomon: I tend to forget TDD in such situations, even when it's really appropriate.
18:57 colomon it's not really clear to me how to write effective tests for this.
18:58 colomon In general, that is -- and in specific, at the moment I'm hand modifying the generated grammar to see what works
18:59 colomon I can confirm that :i works in grammars, btw
18:59 colomon I'm running Grammar::Tracer, and it's getting past there.
19:00 masak colomon: is parse($wsn).parse($input), $expected_output;
19:00 masak (or equivalent)
19:00 colomon the problem is, you can have multiple valid outputs for one grammar
19:01 masak oh, sorry, I meant
19:01 masak ok parse($wsn).parse($input1)
19:01 lue hello world o/
19:01 masak not parse($wsn).parse($input2)
19:01 masak lue! \o/
19:01 masak nok*
19:02 colomon oh, wait, I see, you're running parse on the output of the parser.  that is an interesting notion, indeed.
19:02 masak yes, that was my main point.
19:02 masak treating the generated result as a black box, and just testing for its expected semantics.
19:02 colomon does that work?  I assumed I'd have to write out a file, or at least call eval
19:02 masak that was the handwaving part.
19:03 masak in these cases, I tend to write the ideal API client code first, and then the API ;)
19:07 arnsholt WSN sounds like another ideal place for slangs \=
19:07 arnsholt Er, =)
19:07 arnsholt (Keyboard-layout-confusion strikes again)
19:07 colomon arnsholt: :)
19:09 colomon I'm not wildly optimistic about the prospects, just because it seems WSN is not really well-specified.
19:10 masak colomon: what about it doesn't feel well-specified?
19:11 colomon Using p6 terminology, some rules want :sigspace and some don't, and there's no rhyme or reason I can see for it.
19:11 masak oh, and that's why you're having trouble with "regex" vs "rule"...?
19:11 colomon yes, exactly
19:12 sergot hi! o/
19:12 colomon if you look at that one on the wikipedia page, you'll see that it makes no allowances for whitespace
19:13 colomon meaning if you take it without :sigspace, it cannot parse itself
19:13 colomon but at the same time, if you add :sigspace everywhere, then identifiers can have spaces in them.
19:14 colomon also, it never defines "letter" or "character"
19:15 benabik joined #perl6
19:16 masak sergocie! \o/
19:20 sergot masak! \o/
19:43 gdeepi joined #perl6
19:50 gdeepi can anyone help me with perl script to download youtube video _
19:51 ssutch joined #perl6
19:51 FROGGS gdeepi: is this a perl 6 related question?
19:53 gdeepi i want a perl script ..is this channel not for that ?
19:53 masak gdeepi: note the '6' at the end of '#perl6' :)
19:53 diakopter gdeepi: you probably have perl version 5..
19:53 FROGGS and yes, that makes a huge difference :o)
19:54 gdeepi ok am not sure act the diff ..if this question is not meant to b answered here .sorry abt that
19:55 * geekosaur likes how they joined both #perl and #perl6 but asked here instead of there
19:55 * colomon wonders what the answer is
19:55 * geekosaur also wonders what's wrong with youtube-dl
19:55 gdeepi yes i hv ver 5 but i guess i can upgrade it to 6 ! isn't it ?
19:56 colomon gdeepi: but no one has written a youtube downloader in perl 6.
19:56 gdeepi ok got it
19:56 * colomon is not sure if there is one in perl 5 or not.
19:56 gdeepi thanks colomon !
19:57 gdeepi left #perl6
20:07 colomon match!
20:13 masak \o/
20:14 colomon turns out rule doesn't work at all, the grammar cannot ratchet.
20:15 colomon so the first half is regex, and the second half is regex :sigspace
20:15 colomon (this is the huge ISO-10303 part 11 grammar)
20:17 denis_boyun joined #perl6
20:20 timotimo ah, interesting
20:22 timotimo for some reason, my lexical-to-local optimization is a bit too shy for simple things
20:26 pmurias timotimo: how do you test your optimalisations?
20:27 timotimo i see if they work by using --target=optimize and if they do work, i run perl6-bench with all the microbenchmarks for nqp
20:27 timotimo (actually, i did it the other way around this time, which was dumb)
20:50 timotimo oh!
20:50 timotimo interesting
20:50 timotimo the outermost block doesn't have a Stmts as its first child
20:50 timotimo instead, it has a QAST::Var(lexical @ARGS :decl(param))
20:51 timotimo that's why my optimization wouldn't optimize the outermost block in a program
20:54 logie joined #perl6
21:01 dalek nqp/r-lex-to-local: 7642d39 | (Timo Paulssen)++ | src/NQP/Optimizer.nqp:
21:01 dalek nqp/r-lex-to-local: handle the outermost block as well. it's special.
21:01 dalek nqp/r-lex-to-local: review: https://github.com/perl6/nqp/commit/7642d39c9a
21:09 timotimo i wonder why most of the benchmarks don't run at all with current nqps.
21:11 xinming joined #perl6
21:19 denis_boyun joined #perl6
21:25 * [Coke] came down with narsty head cold Thursday night. still not right.
21:25 timotimo oh no! :(
21:34 flussence joined #perl6
21:37 masak [Coke]: get well soon.
21:56 dalek perl6-roast-data: fb978ed | coke++ | / (5 files):
21:56 dalek perl6-roast-data: today (automated commit)
21:56 dalek perl6-roast-data: review: https://github.com/coke/perl6-roast-data/commit/fb978edc2b
21:59 PZt joined #perl6
22:01 lizmat [Coke]: best wishes!   has rakudo.jvm also caught a cold at 61.15% ?
22:01 timotimo seems like
22:02 woolfy [Coke]: did I infect you in Frankfurt?  I should not have touched you at all.  I am dangerous!
22:03 * geekosaur misreads "did I infer you..."
22:07 [Coke] woolfy: my wife was ill when I returned, and my daughter was before I left. It was -probably- not you.
22:08 woolfy I hope so. I still don't know what is wrong with me.  Well, some bits I know, harharhar...  :->
22:10 woolfy So, leaves me with a "get well soon" and a virtual bear-hug.  Done.
22:11 EvanTeitelman joined #perl6
22:11 [Coke] woolfy: ow
22:13 [Coke] lizmat: *cough* maybe.
22:51 BenGoldberg joined #perl6
23:05 dalek rakudo/method2sub: 42a5487 | (Elizabeth Mattijsen)++ | src/core/ (3 files):
23:05 dalek rakudo/method2sub: Convertd SLICE_ONE to use slurpy hash + adapted multi candidates accordingly
23:05 dalek rakudo/method2sub:
23:05 dalek rakudo/method2sub: This will now also properly notice invalid combinations, and unknown named
23:05 dalek rakudo/method2sub: params.
23:05 dalek rakudo/method2sub: review: https://github.com/rakudo/rakudo/commit/42a5487b92
23:06 lizmat more tomorrow, first sleep&
23:24 dalek Pugs.hs: acfb3a5 | coke++ | t/spectest.data:
23:24 dalek Pugs.hs: don't run this test until we :delete
23:24 dalek Pugs.hs: review: https://github.com/perl6/Pugs.hs/commit/acfb3a5b4e
23:25 dalek roast: af0d83a | coke++ | S29-os/system.t:
23:25 dalek roast: pugs fudge
23:25 dalek roast:
23:25 dalek roast: use BEGIN with a block for pugs
23:25 dalek roast: review: https://github.com/perl6/roast/commit/af0d83a3d1
23:26 dmol joined #perl6
23:36 logie joined #perl6
23:36 dalek niecza: 434ff8f | coke++ | t/spectest.data:
23:36 dalek niecza: can't run :delete tests...
23:36 dalek niecza: review: https://github.com/sorear/niecza/commit/434ff8f996
23:42 [Coke] colomon: had to eliminate a test about array:delete for niecza
23:45 masak 'night, #perl6
23:46 [Coke] ~~
23:51 mcglk joined #perl6
23:52 mcglk joined #perl6

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

Perl 6 | Reference Documentation | Rakudo