Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2016-12-23

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:03 buggable joined #perl6
00:05 labster m: my @a = 1,"foo"; my @b = @a.deepmap(*);
00:05 camelia rakudo-moar 0db081: OUTPUT«Type check failed in binding to &block; expected Callable but got Whatever (*)␤  in block <unit> at <tmp> line 1␤␤»
00:06 notviki AlexDaniel: maybe you should schedule it? The only way I see of reading is in the edit mode and IIRC that messes up the HTML code when it autosaves
00:06 notviki m: DateTime.now.utc.say
00:06 labster m: my @a = 1,"foo"; my @b = @a.deepmap();
00:06 camelia rakudo-moar 0db081: OUTPUT«2016-12-23T00:06:39.101908Z␤»
00:06 camelia rakudo-moar 0db081: OUTPUT«Too few positionals passed; expected 2 arguments but got 1␤  in block <unit> at <tmp> line 1␤␤»
00:06 notviki AlexDaniel: seems like it could even be published :)
00:07 AlexDaniel notviki: let's publish then? :)
00:07 notviki Yeah, publish :)
00:07 notviki labster: you need to give it a callable to deepmap with
00:07 notviki m: my @a = 1,"foo"; my @b = @a.deepmap(*.uc);
00:07 camelia rakudo-moar 0db081: ( no output )
00:07 notviki m: my @a = 1,"foo"; my @b = @a.deepmap(*.uc); dd @b
00:07 camelia rakudo-moar 0db081: OUTPUT«Array @b = ["1", "FOO"]␤»
00:07 labster But I just want to clone an array?
00:08 notviki hehe
00:08 AlexDaniel notviki: done
00:08 notviki labster: well, that'd be *.clone, I'd guess but I bet that's pretty broken
00:08 labster It's only a shallow clone.  Or so it says in the docs.
00:08 notviki labster: I mean .deepmap with *.clone
00:09 labster Oh interesting.  I mean this is all a lot of work for what will be a somewhat common use case.
00:10 notviki hehe
00:10 notviki Perl 6 users are so spoiled :)
00:11 labster who are we supposed to be tormenting? :P
00:11 AlexDaniel read the latest advent post for a clue, perhaps? ;)
00:11 labster https://design.perl6.org/S12.html#Cloning  Little explain, less spec, wow.
00:12 labster Tormenting our unit tests, apparently.
00:13 raiph joined #perl6
00:15 Herby_ joined #perl6
00:15 Herby_ \o
00:18 labster o/
00:26 notviki AlexDaniel++ good post
00:26 AlexDaniel \o/ thanks
00:31 MasterDuke joined #perl6
00:34 [Coke] anyone have any pointers about getting utf8 to work in a tmux connection?
00:35 [Coke] before I start tmux on irc.p6c.org, I can use utf8 - after tmux is started, nothing.
00:37 sjn [Coke]: I'm using tmux 2.1 and have no problems with utf8
00:38 sjn (tmux -V shows the version)
00:39 * sjn uses nb_NO.utf8 as locale, and othetwise a recent linux
00:40 sjn [Coke]: what does it look like when it's not working?
00:40 [Coke] ah. irc.p6c.org is only on 1.9
00:41 [Coke] sjn;it just doesn't send the unicode through. Here's an ellipsis:
00:41 [Coke] here:
00:48 sjn here's mine: …
00:49 * geekosaur is mildly confused, since utf8 support was one of the things tmux had over screen for a long time
00:49 SCHAAP137 joined #perl6
00:51 sjn [Coke]: can I have a login on p6c to see if I see someting weird too? <_< :)
00:53 Herby_ I keep fumbling with p6 regexes.  If I have a string of names, "NAME=Bob\nNAME=Carl\nNAME=Sally", how do I go about getting an array of (Bob, Carl, Sally)?
00:56 TEttinger I'm curious too, Herby_
00:57 TEttinger I know there's a fair amount of difference between standard PCRE-style regexes and Perl6's regexes/parsers/grammars
00:58 Herby_ TEttinger, yeah my regex knowledge is shaky at best and I stumble even more when trying to use p6 regexes
00:59 TEttinger my regex knowledge is not shaky but my perl6 knowledge is OOH LOOK A KITTY
01:00 cibs joined #perl6
01:01 timotimo m: "NAME=Bob\nNAME=Carl\nNAME=Sally".comb(/ '=' <( .*? )> \n /).perl.say
01:01 camelia rakudo-moar 0db081: OUTPUT«("Bob", "Carl")␤»
01:01 timotimo oh
01:01 timotimo m: "NAME=Bob\nNAME=Carl\nNAME=Sally".comb(/ '=' <( .*? )> $$ /).perl.say
01:01 camelia rakudo-moar 0db081: OUTPUT«("Bob", "Carl", "Sally")␤»
01:01 Herby_ \o/
01:02 Herby_ two questions:  why the '< >' around the capture group, and how would I push that into an array for later use
01:02 timotimo it's actually the <( thing and the )> thing
01:02 timotimo it has essentially the same effect as if you put the stuff before it into a lookbehind and the stuff after it into a lookahead
01:02 timotimo though i could imagine it's faster
01:04 Herby_ m: my @names = "NAME=Bob\nNAME=Carl\nNAME=Sally".comb(/ '=' <( .*? )> $$ /); say @names;
01:04 camelia rakudo-moar 0db081: OUTPUT«[Bob Carl Sally]␤»
01:04 TEttinger with more traditional regexes in Clojure I'd do: (re-seq #"(?<=NAME=)\S+" "NAME=Bob\nNAME=Carl\nNAME=Sally")
01:04 Herby_ i was trying to use m :g//
01:04 TEttinger not sure how perl6 does lookbehind
01:04 timotimo it's <?after foo>
01:04 TEttinger thanks
01:05 Herby_ thanks, timotimo
01:05 TEttinger is .comb short for something or is it like "combing the desert for clues"
01:05 timotimo my regex doesn't account for spaces, though
01:05 timotimo it's the latter, TEttinger
01:08 Herby_ timotimo: one more question for you if you're feeling adventurous
01:08 timotimo sure
01:08 Herby_ if I have the string ""NAME=Bob\nAGE=23\nNAME=Carl\nAGE=31\nNAME=Sally\nAGE=47", how would I return tuples of (NAME,AGE)
01:08 timotimo adventure is my second middle name
01:09 Herby_ so [(Bob,23),(Carl,31),(Sally,47)]
01:09 Herby_ or something similar
01:09 timotimo just a sec
01:09 Herby_ kk
01:09 timotimo are name and age always in the right order?
01:10 Herby_ yep. always NAME, and their AGE on the next line
01:10 timotimo well, that's easy then
01:10 timotimo m: "NAME=Bob\nAGE=23\nNAME=Carl\nAGE=31\nNAME=Sally\nAGE=47".comb(/ '=' <( .*? )> $$ /).rotor(2 => 2).perl.say
01:10 camelia rakudo-moar 0db081: OUTPUT«(("Bob", "23"), ("Sally", "47")).Seq␤»
01:10 timotimo oops?
01:11 timotimo m: "NAME=Bob\nAGE=23\nNAME=Carl\nAGE=31\nNAME=Sally\nAGE=47".comb(/ '=' <( .*? )> $$ /).rotor(2 => 0).perl.say
01:11 camelia rakudo-moar 0db081: OUTPUT«(("Bob", "23"), ("Carl", "31"), ("Sally", "47")).Seq␤»
01:11 timotimo there we go
01:11 Herby_ you're money
01:13 b2gills m: #~(you may want them in pairs though) say "NAME=Bob\nAGE=23\nNAME=Carl\nAGE=31\nNAME=Sally\nAGE=47".comb(/'=' <(.*?)> $$ /).map(*=>*).perl
01:13 camelia rakudo-moar 0db081: ( no output )
01:13 notviki m: "NAME=Bob\nAGE=23\nNAME=Carl\nAGE=31\nNAME=Sally\nAGE=47".comb(/"="<(\N+/).rotor(2 => 0).perl.say
01:13 camelia rakudo-moar 0db081: OUTPUT«(("Bob", "23"), ("Carl", "31"), ("Sally", "47")).Seq␤»
01:14 b2gills m: #`(you may want them in pairs though) say "NAME=Bob\nAGE=23\nNAME=Carl\nAGE=31\nNAME=Sally\nAGE=47".comb(/'=' <(.*?)> $$ /).map(*=>*).perl
01:14 camelia rakudo-moar 0db081: OUTPUT«(:Bob("23"), :Carl("31"), :Sally("47")).Seq␤»
01:14 japhb joined #perl6
01:14 b2gills .rotor(2=>0) can be spelled as .rotor(2)
01:15 notviki m: "NAME=Bob\nAGE=23\nNAME=Carl\nAGE=31\nNAME=Sally\nAGE=47".comb(/"="<(\N+/).Hash.say
01:15 camelia rakudo-moar 0db081: OUTPUT«{Bob => 23, Carl => 31, Sally => 47}␤»
01:15 Herby_ how would you tackle that with traditional regex, not utilizing comb and rotor?
01:15 Herby_ well, traditional p6 regex
01:16 notviki .ask samcv seems there's now merge conflict on the Linguist thing: https://github.com/github/linguist/pull/3377#issuecomment-267160040
01:16 yoleaux notviki: I'll pass your message to samcv.
01:17 Herby_ i have a small python script that parses text for me and utilizes re.findall(), i'd like to swap it out for a p6 script
01:17 timotimo well, findall is basically comb, so ... :P
01:17 notviki Herby_: so swap it out? Why do you need it to be regex only?
01:17 timotimo you can also give :match to comb to get match objects instead of only the strings
01:17 timotimo then it'll behave a lot more like m:g
01:18 timotimo m: ("NAME=Bob\nAGE=23\nNAME=Carl\nAGE=31\nNAME=Sally\nAGE=47" ~~ m:g/ '=' <( .*? )> $$ /)>>.Str.rotor(2 => 0).perl.say
01:18 camelia rakudo-moar 0db081: OUTPUT«(("Bob", "23"), ("Carl", "31"), ("Sally", "47")).Seq␤»
01:18 timotimo ^- without comb
01:19 BenGoldberg joined #perl6
01:19 notviki m: "NAME=Bob\nAGE=23\nNAME=Carl\nAGE=31\nNAME=Sally\nAGE=47".match(:g, /<after "="> (\N+)/)».caps».flat.say
01:19 camelia rakudo-moar 0db081: OUTPUT«(((0 => 「Bob」) (after => #<failed match>)) ((0 => 「23」) (after => #<failed match>)) ((0 => 「Carl」) (after => #<failed match>)) ((after => 「=EGA␤lraC=」) (0 => 「31」)) ((after => 「=EMAN␤13=EGA␤lraC=EMAN␤32=」) (0 => 「Sally」)…»
01:19 notviki This is really weird output... wtf is it backwards!
01:20 Herby_ notviki: i need to brush up on comb and rotor. my realworld data is not as cleanly structured
01:20 Herby_ user inability, not language :)
01:21 notviki m: m: "NAME=Bob\nAGE=23\nNAME=Carl\nAGE=31\nNAME=Sally\nAGE=47".split(/<[\n=]>/).say
01:21 camelia rakudo-moar 0db081: OUTPUT«(NAME Bob AGE 23 NAME Carl AGE 31 NAME Sally AGE 47)␤»
01:21 notviki doh
01:21 Herby_ but thanks timotimo and notviki for showing me some examples, I can work backwards from there
01:22 timotimo good good
01:23 aborazmeh joined #perl6
01:23 aborazmeh joined #perl6
01:24 SCHAAP137 joined #perl6
01:25 dataf3l joined #perl6
01:27 MasterDuke notviki: btw, perl6 -ne 'say "{$_}"' foo, #130383, is uneffected by my recent IO::ArgFiles PRs
01:27 synopsebot6 Link:  https://rt.perl.org/rt3//Public/Bug/Display.html?id=130383
01:28 MasterDuke but i'm still trying to get phasers working, #129093, so maybe a fix for one will also fix the other
01:28 synopsebot6 Link:  https://rt.perl.org/rt3//Public/Bug/Display.html?id=129093
01:30 Actualeyes joined #perl6
01:33 skids joined #perl6
01:50 samcv .tell notviki thanks for pointing that out. Wish github had notified me. Will fix when I get home
01:50 yoleaux samcv: I'll pass your message to notviki.
01:50 yoleaux 01:16Z <notviki> samcv: seems there's now merge conflict on the Linguist thing: https://github.com/github/linguist/pull/3377#issuecomment-267160040
02:03 pyrimidi_ joined #perl6
02:06 cpage_ joined #perl6
02:18 Ben_Goldberg joined #perl6
02:25 pyrimidine joined #perl6
02:32 Actualeyes joined #perl6
02:33 leah2 joined #perl6
02:47 ilbot3 joined #perl6
02:47 Topic for #perl6 is now »ö« Welcome to Perl 6! | https://perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:,  or /msg camelia p6: ... | irclog: http://irc.perl6.org or http://colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend!
02:50 kalkin-_ joined #perl6
03:06 BenGoldberg joined #perl6
03:13 xtreak joined #perl6
03:15 pyrimidi_ joined #perl6
03:38 aindilis joined #perl6
03:46 BenGoldberg joined #perl6
03:51 Actualeyes joined #perl6
03:57 noganex_ joined #perl6
04:03 cpage__ joined #perl6
04:13 Actualeyes left #perl6
04:31 pyrimidine joined #perl6
04:32 dugword joined #perl6
04:35 dalek doc: 3bdc823 | (Armand Halbert)++ | doc/Type/Str.pod6:
04:35 dalek doc: Wrote documentation for Str method match
04:35 dalek doc: review: https://github.com/perl6/doc/commit/3bdc823a0a
04:35 dalek doc: a0cb931 | (Armand Halbert)++ | doc/Type/Str.pod6:
04:35 dalek doc: Wrote documentation for Str method match
04:35 synopsebot6 Link: http://doc.perl6.org/type/Str
04:35 synopsebot6 Link: http://doc.perl6.org/type/Str
04:35 dalek doc: review: https://github.com/perl6/doc/commit/a0cb9311e5
04:35 dalek doc: b0c9044 | (Armand Halbert)++ | doc/Type/Str.pod6:
04:35 synopsebot6 Link: http://doc.perl6.org/type/Str
04:35 dalek doc: Added say to the code examples
04:35 dalek doc: review: https://github.com/perl6/doc/commit/b0c9044116
04:35 dalek doc: aa85248 | (Armand Halbert)++ | doc/Type/Str.pod6:
04:35 dalek doc: Merge branch 'master' of github.com:ahalbert/doc
04:35 synopsebot6 Link: http://doc.perl6.org/type/Str
04:35 dalek doc: review: https://github.com/perl6/doc/commit/aa852488e0
04:35 dalek doc: 4766ed3 | (Armand Halbert)++ | doc/Type/Str.pod6:
04:35 synopsebot6 Link: http://doc.perl6.org/type/Str
04:35 dalek doc: Fixed typos
04:35 dalek doc: review: https://github.com/perl6/doc/commit/4766ed3473
04:35 dalek doc: 202fa2c | titsuki++ | doc/Type/Str.pod6:
04:35 dalek doc: Merge pull request #1074 from ahalbert/master
04:35 synopsebot6 Link: http://doc.perl6.org/type/Str
04:35 dalek doc:
04:35 dalek doc: Wrote documentation for Str method match
04:35 dalek doc: review: https://github.com/perl6/doc/commit/202fa2cf1e
05:09 Ben_Goldberg joined #perl6
05:14 raiph joined #perl6
05:18 cpage_ joined #perl6
05:20 Cabanoss- joined #perl6
05:29 Ben_Goldberg joined #perl6
05:35 samcv ok. back home now. time to fix those highlighting things
05:39 aborazmeh joined #perl6
05:39 aborazmeh joined #perl6
05:45 Ben_Goldberg joined #perl6
05:50 cognominal joined #perl6
05:51 mr-foobar joined #perl6
06:04 xtreak joined #perl6
06:09 dalek doc: c0a734b | samcv++ | doc/Language/regexes.pod6:
06:09 dalek doc: Trigger doc rebuild to pull in highlighter updates
06:09 dalek doc:
06:09 dalek doc: Also add in a missing semicolon.
06:09 dalek doc: review: https://github.com/perl6/doc/commit/c0a734bc0f
06:09 synopsebot6 Link: http://doc.perl6.org/language/regexes
06:13 sivoais joined #perl6
06:19 bjz joined #perl6
06:25 labster joined #perl6
06:28 darutoko joined #perl6
06:39 samcv m: say 0xD800.chr
06:39 camelia rakudo-moar 0db081: OUTPUT«Error encoding UTF-8 string: could not encode codepoint 55296␤  in block <unit> at <tmp> line 1␤␤»
06:39 pyrimidi_ joined #perl6
06:39 samcv bisect: all say 0xD800.chr
06:39 bisectable6 samcv, On both starting points (old=2015.12 new=0db0810) the exit code is 1 and the output is identical as well
06:39 bisectable6 samcv, Output on both points: WARNINGS for /tmp/GmkKOTzqTc:␤Useless use of "all say 0xD800.chr" in expression "all say 0xD800.chr" in sink context (line 1)␤Error encoding UTF-8 string: could not encode codepoint 55296␤  in block <unit> at /tmp/GmkKOTzqTc line 1␤
06:39 samcv T_T
06:43 samcv m: say 0xD801.chr
06:43 camelia rakudo-moar 0db081: OUTPUT«Error encoding UTF-8 string: could not encode codepoint 55297␤  in block <unit> at <tmp> line 1␤␤»
06:43 samcv m: say 0xD804.chr
06:43 camelia rakudo-moar 0db081: OUTPUT«Error encoding UTF-8 string: could not encode codepoint 55300␤  in block <unit> at <tmp> line 1␤␤»
06:43 samcv m: say 0xE804.chr
06:43 camelia rakudo-moar 0db081: OUTPUT«␤»
06:44 thayne joined #perl6
06:44 samcv how can i write a script to test against unicode's grapheme test if it can't even encode a character they use on like 1/7 of the tests :\
06:46 RabidGravy joined #perl6
06:57 dalek DBIish: 1c47b5f | titsuki++ | examples/pg.p6:
06:57 dalek DBIish: pg: Use .dispose instead of .disconnect
06:57 dalek DBIish: review: https://github.com/perl6/DBIish/commit/1c47b5f575
06:57 dalek DBIish: a9ba5ef | titsuki++ | examples/pg_arrays.p6:
06:57 dalek DBIish: pg_arrays: Use .dispose instead of .disconnect
06:57 dalek DBIish: review: https://github.com/perl6/DBIish/commit/a9ba5ef5b0
06:57 dalek DBIish: 9707c6f | titsuki++ | lib/DBIish.pm6:
06:57 dalek DBIish: POD: Use .dispose instead of .disconnect
06:57 dalek DBIish: review: https://github.com/perl6/DBIish/commit/9707c6fd24
06:57 dalek DBIish: d806786 | titsuki++ | / (3 files):
06:57 dalek DBIish: Merge pull request #81 from titsuki/use-dispose
06:57 dalek DBIish:
06:57 dalek DBIish: Use dispose
06:57 dalek DBIish: review: https://github.com/perl6/DBIish/commit/d806786167
06:57 riatre joined #perl6
06:59 * holli prefers ASCII anyway
07:14 samcv heh
07:14 xtreak joined #perl6
07:15 AlexDaniel joined #perl6
07:21 samcv so of the tests that break because of that character we mysteriously can't put in a string, we fail 54 of the 744 tests that i am able to run
07:24 samcv basically testing how we break of characters if you are intimate with what graphemes are
07:27 samcv i've been learning way too much about unicode the last two weeks…
07:31 Actualeyes joined #perl6
07:33 samcv m: 0x200D.uniprop('Line_Break').say
07:33 camelia rakudo-moar 0db081: OUTPUT«BK␤»
07:33 samcv wat
07:33 samcv t-that's not right
07:33 holli #NotMyOutput
07:33 holli ;-)
07:34 samcv should be ZWJ, no wonder some of these tests are failing
07:34 * samcv opens yet another MoarVM ticket for unicode :P
07:35 samcv m: 0x103D.uniprop('Line_Break').say
07:35 camelia rakudo-moar 0db081: OUTPUT«BK␤»
07:35 samcv t-that's not right either
07:35 samcv they're all probably wrong i might think
07:36 samcv u: { .uniprop('Line_Break') ne all('BK', '') }
07:36 unicodable6 samcv, U+0001 START OF HEADING [Cc] (control character)
07:36 unicodable6 samcv, U+0000 NULL [Cc] (control character)
07:36 unicodable6 samcv, U+0002 START OF TEXT [Cc] (control character)
07:37 samcv ok. so all of them are broken except for those three... pluss all the ones that would be BK anyway
07:37 samcv thank you unicodable
07:40 xtreak joined #perl6
07:43 xtreak joined #perl6
07:46 samcv u: { .uniprop('Grapheme_Extend') == True }
07:46 unicodable6 samcv, U+0300 COMBINING GRAVE ACCENT [Mn] (◌̀)
07:46 unicodable6 samcv, U+0301 COMBINING ACUTE ACCENT [Mn] (◌́)
07:46 unicodable6 samcv, U+0302 COMBINING CIRCUMFLEX ACCENT [Mn] (◌̂)
07:46 unicodable6 samcv, https://gist.github.com/3d784ac319ba82ac236aa8c38148ca1b
07:50 pierre__ joined #perl6
07:51 samcv actually i think i did that wrong
07:51 samcv u: { .uniprop('Line_Break') ne any('BK', '') }
07:51 unicodable6 samcv, U+0000 NULL [Cc] (control character)
07:51 unicodable6 samcv, U+0001 START OF HEADING [Cc] (control character)
07:51 unicodable6 samcv, U+0002 START OF TEXT [Cc] (control character)
07:52 unicodable6 samcv, https://gist.github.com/c254846001d1b03583798e74416bedf4
07:55 labster joined #perl6
08:02 pyrimidine joined #perl6
08:10 wamba joined #perl6
08:10 xtreak joined #perl6
08:11 djbkd joined #perl6
08:14 Tonik joined #perl6
08:24 andrzejku joined #perl6
08:24 samcv m: Uni.new(0x1D1C0,0x1D1BA, 0x1D165, 0x1D16F).say
08:24 camelia rakudo-moar 011df4: OUTPUT«Uni:0x<1d1c0 1d1ba 1d165 1d16f>␤»
08:24 samcv m: Uni.new(0x1D1C0,0x1D1BA, 0x1D165, 0x1D16F).Str.say
08:24 camelia rakudo-moar 011df4: OUTPUT«𝆺𝅥𝅯𝆺𝅥𝅯␤»
08:25 rpburkholder joined #perl6
08:34 domidumont joined #perl6
08:39 domidumont joined #perl6
08:43 AlexDaniel joined #perl6
08:50 DrForr Morning.
08:51 samcv good morning
08:51 DrForr o/
09:02 cibs joined #perl6
09:12 xtreak joined #perl6
09:14 domidumont joined #perl6
09:36 pierre__ joined #perl6
09:52 rindolf joined #perl6
10:00 AlexDaniel joined #perl6
10:33 eyck joined #perl6
10:52 grondilu joined #perl6
10:57 xtreak joined #perl6
11:04 Actualeyes joined #perl6
11:12 bjz joined #perl6
11:17 gregf_ joined #perl6
11:32 arnsholt mst++ # MSTPAN
12:02 grondilu_ joined #perl6
12:02 pyrimidine joined #perl6
12:19 barkode joined #perl6
12:26 bjz joined #perl6
12:30 dalek perl6-most-wanted: 0e79516 | (Tom Browder)++ | most-wanted/modules.md:
12:30 dalek perl6-most-wanted: add a calendar module
12:30 dalek perl6-most-wanted: review: https://github.com/perl6/perl6-most-wanted/commit/0e79516386
12:37 dalek perl6-most-wanted: 2c0b3a3 | (Tom Browder)++ | most-wanted/modules.md:
12:37 dalek perl6-most-wanted: change category name
12:37 dalek perl6-most-wanted: review: https://github.com/perl6/perl6-most-wanted/commit/2c0b3a3505
12:44 barkode left #perl6
12:45 grondilu joined #perl6
12:57 dalek perl6-most-wanted: 5f71e99 | (Tom Browder)++ | most-wanted/modules.md:
12:57 dalek perl6-most-wanted: add WIP module
12:57 dalek perl6-most-wanted: review: https://github.com/perl6/perl6-most-wanted/commit/5f71e99dfe
13:14 notviki well... crap.
13:14 yoleaux 01:50Z <samcv> notviki: thanks for pointing that out. Wish github had notified me. Will fix when I get home
13:14 notviki 2016.11 R* is broken on Windows 7 :/
13:15 * notviki has just confirmed RT#130391
13:15 notviki https://rt.perl.org/Ticket/Display.html?id=130391
13:17 bjz_ joined #perl6
13:17 lizmat is it fixable ?
13:17 lizmat easily?
13:17 notviki Well, the error looks like the bug in 2016.10 R* that we thought we fixed.
13:17 notviki it was something about mkdir or something
13:17 * notviki rakes MoarVM commits
13:18 notviki Oh. Someone smart started adding commit shas to changelog :) https://github.com/rakudo/rakudo/blob/nom/docs/ChangeLog#L125
13:19 notviki https://github.com/rakudo/rakudo/commit/44a4c75
13:22 teksteiner joined #perl6
13:27 notviki :o zef works fine :/
13:28 notviki oh, I thought someone already suggested `zef` to that dude on Facebook
13:29 notviki oh they did...
13:29 notviki "Failed to rename 'C:\Users\winklest\.zef\store\projects.json' to 'C:\Users\winklest\.zef\store\p6c\packages.json': Failed to rename file: no such file
13:29 notviki or directory
13:29 notviki in block at C:\rakudo\share\perl6\site\sources\F9AFEBDFA35D22BCCF53CDB4667B5C8E843F7754 (Zef::ContentStorage::Ecosystems) line 65
13:29 notviki can't reproduce that...
13:31 notviki Though I don't have .zef at his location.... It's stuffing everything into one of my network shares -_-
13:38 lizmat ah, maybe the network shares have a different renaming policy
13:41 notviki vOv
13:44 pmurias joined #perl6
13:44 pmurias Is class file to large expected when building rakudo-j?
13:44 dalek DBIish: eda3fa7 | adaptiveoptics++ | lib/DBDish/Pg/Native.pm6:
13:44 dalek DBIish: Added map for bpchar type (char blank-padded)
13:44 dalek DBIish: review: https://github.com/perl6/DBIish/commit/eda3fa7461
13:44 dalek DBIish: 478fdb2 | RabidGravy++ | lib/DBDish/Pg/Native.pm6:
13:44 dalek DBIish: Merge pull request #82 from adaptiveoptics/master
13:44 dalek DBIish:
13:44 dalek DBIish: Added map for bpchar type (char blank-padded)
13:44 dalek DBIish: review: https://github.com/perl6/DBIish/commit/478fdb2d88
13:57 notviki So how do I get "npm" command that's now needed for docs?
14:01 notviki .ask samcv since you know it best, would you mind updating https://github.com/perl6/doc/blob/master/CONTRIBUTING.md#table-of-contents with the new deps for new highlighting mode? I'm guessing we no longer need pygmentize and Inline::Python, but need `npm`? I'm having trouble getting `npm` on debian wheezy
14:01 yoleaux notviki: I'll pass your message to samcv.
14:01 MasterDuke pmurias: there was some talk about that in #perl6-dev earlier
14:02 stanley joined #perl6
14:06 dogbert17 notviki: doesn't npm come as part of the node js installation?
14:07 notviki dogbert17: not on wheezy
14:07 * notviki is following http://antler.co.za/2014/04/install-node-js-npm-on-debian-stable-wheezy-7/ now
14:07 notviki but I'm seeing a bunch of errors -_-
14:08 * dogbert17 testing the new highlighter for the first time
14:09 notviki dogbert17: BTW, I'm making sass mandatory now
14:09 dogbert17 uh oh :-)
14:09 notviki hm...
14:09 notviki That site tells to run curl https://www.npmjs.com/install.sh | sh as root, but when I try to download that script, I get "The certificate's owner does not match hostname `www.npmjs.com'"
14:09 notviki tsk tsk
14:10 Actualeyes joined #perl6
14:10 dogbert17 I think I got that working as a matter of fact, don't remember how though
14:10 dogbert17 sass that is
14:10 notviki ls
14:12 notviki grrrr
14:13 notviki ./install.sh -> "npm ERR! Please try running this command again as root/Administrator."
14:13 notviki sudo ./install.sh -> "You need Node.js to run this program."
14:13 * notviki gives up
14:14 dogbert17 attempt 1 = FAIL: duplicated path /tmp/dogbert-97571-pod_to_pyg.pod
14:14 dogbert17 MoarVM panic: Memory allocation failed; could not allocate 1799720 bytes
14:16 dogbert17 how much memory is needed to build the docs with highlighting? (have 2 gigs in my vm)
14:18 notviki fails on debian jessie too
14:19 notviki "npm WARN This failure might be due to the use of legacy binary "node""
14:19 notviki gyp ERR! node -v v0.10.29
14:19 dogbert17 that is old
14:20 notviki v0.12.16 is on hack and it builds fine
14:22 notviki damn hipsters with their shiny tools :}
14:23 dogbert17 notviki: the doc build seems to need 3 gigs+ of memory !!
14:23 notviki heh
14:23 dogbert17 grr: MoarVM panic: Memory allocation failed; could not allocate 1900488 bytes
14:24 dogbert17 shortly before fail: ogbert@dogbert-VirtualBox ~ $ free
14:24 dogbert17 total       used       free     shared    buffers     cached
14:24 dogbert17 Mem:       2063544    1937816     125728       1252        328      22008
14:24 dogbert17 -/+ buffers/cache:    1915480     148064
14:24 dogbert17 Swap:      1046524    1046076        448
14:25 notviki Well... Plan C for my small change then.
14:26 notviki Which is: edit file in a checkout on a local box I'm sshed into, then scp it to one of my servers that has its key on hack, then scp to hack, then build to ensure the change doesn't break anything -_-
14:26 notviki dogbert17: as for memory, dunno. Ask samcv if there's a way to reduce usage
14:27 dogbert17 will do
14:29 notviki .tell samcv FWIW, building on Debian Jessie failed too. It was complainging about failed node-gyp install :/
14:29 yoleaux notviki: I'll pass your message to samcv.
14:30 notviki :|
14:30 dogbert17 m: multi sub cross() { }
14:30 camelia rakudo-moar f0398f: ( no output )
14:30 notviki now pod2bigpage is failing "Required named parameter 'name' not passed"
14:30 notviki Today is Failure day!
14:30 timotimo dogbert17: would be nice if you ran the doc update with /usr/bin/time, as it'll tell us the peak memory usage
14:30 dogbert17 timotimo: on it
14:31 dogbert17 notviki: would you like to help a lazy git?
14:31 notviki with what?
14:31 dogbert17 closing an RT
14:31 dogbert17 RT #126508
14:31 synopsebot6 Link:  https://rt.perl.org/rt3//Public/Bug/Display.html?id=126508
14:32 notviki Don't tell me you still don't have access to close them yourself...
14:32 dogbert17 that's the lazy git part :-)
14:32 notviki dogbert17: so why is it being closed?
14:32 dogbert17 look a few lines above
14:33 notviki So?
14:33 notviki It's not proof that bug is fixed.
14:33 notviki Tests are proof.
14:33 notviki :)
14:33 dogbert17 where would you want them, i.e. which file
14:34 notviki tree -f | grep cross
14:34 notviki S32-list/cross.t looks like a good candidate
14:35 dogbert17 ok, will use that
14:40 * notviki goes for Plan D
14:41 rindolf notviki: hi! What did you try to build?
14:42 dalek doc: fe7cc28 | (Zoffix Znet)++ | / (2 files):
14:42 dalek doc: Consolidate new highlights build under `make html`
14:42 dalek doc: review: https://github.com/perl6/doc/commit/fe7cc28dbd
14:42 notviki rindolf: docs.perl6.org
14:42 ab6tract joined #perl6
14:43 rindolf notviki: ah
14:45 ab6tract how hard is the deadline of getting an advent post in before midnight of the publishing day?
14:45 ab6tract because i'm struggling :(
14:47 notviki m: say (DateTime.new(:2016year, :24day, :12month).Instant - DateTime.utc.now.Instant)/3600
14:47 camelia rakudo-moar f0398f: OUTPUT«Cannot look up attributes in a DateTime type object␤  in block <unit> at <tmp> line 1␤␤»
14:47 notviki waat
14:47 notviki m: say (DateTime.new(:2016year, :24day, :12month).Instant - DateTime.now.utc.Instant)/3600
14:47 camelia rakudo-moar f0398f: OUTPUT«9.20535812672176␤»
14:48 notviki ab6tract: well, I think if you post it in the next 9-33 hours, it'd be fine :)
14:48 MasterDuke bisect: multi sub cross() { }
14:48 bisectable6 MasterDuke, Bisecting by exit signal (old=2015.12 new=f0398fb). Old exit signal: 11 (SIGSEGV)
14:49 bisectable6 MasterDuke, bisect log: https://gist.github.com/19a3304266e93daa7fc50ad777cd1b82
14:49 bisectable6 MasterDuke, (2016-07-28) https://github.com/rakudo/rakudo/commit/998a1ef168efd57f3c4d3eb70e423ace01f6eeb0
14:50 notviki ummm... running `make help` in docs now tries to run `init-highlights`....
14:50 notviki Any idea what's wrong?
14:51 travis-ci joined #perl6
14:51 travis-ci Doc build failed. Zoffix Znet 'Consolidate new highlights build under `make html`'
14:51 travis-ci https://travis-ci.org/perl6/doc/builds/186354627 https://github.com/perl6/doc/compare/c0a734bc0fc4...fe7cc28dbdc7
14:51 travis-ci left #perl6
14:51 ab6tract notviki: ooof that makes me feel much better
14:51 ab6tract i am on call tomorrow and will be stuck at the computer, should be able to get it done by lunch AMS time
14:52 notviki ohhh... apparently I can't use `` in @echo
14:52 dalek doc: 8381367 | (Zoffix Znet)++ | Makefile:
14:52 dalek doc: list init-highlights in make help
14:52 dalek doc: review: https://github.com/perl6/doc/commit/838136725e
14:55 dogbert17 notviki: will the do?
14:55 dogbert17 # RT 126508
14:55 dogbert17 ok EVAL('multi sub cross() { }'), "multi sub cross shouldn't SEGV"
14:55 dogbert17 s/the/this/
14:56 notviki committable6: 2016.04 use Test; lives-ok 'multi sub cross() { }'
14:56 committable6 notviki, https://gist.github.com/b69fbf6d848d67bade80a8848f4ce71a
14:56 Praise joined #perl6
14:56 notviki committable6: 2016.04 use Test; eval-lives-ok 'multi sub cross() { }'
14:56 committable6 notviki, ¦«2016.04»:  «exit signal = SIGSEGV (11)»
14:56 bwisti joined #perl6
14:56 notviki m: use Test; eval-lives-ok 'multi sub cross() { }'
14:56 camelia rakudo-moar f0398f: OUTPUT«ok 1 - ␤»
14:57 notviki dogbert17: eval-lives-ok 'multi sub cross() { }', "multi sub cross doesn't SEGV"
14:57 dogbert17 thx
15:00 pmurias notviki: the current node is 7.something so 0.12.16 doesn't count as shiny ;)
15:01 pmurias notviki: the node-gyp issues I have seen where cause by the "debian people" renaming the node binary
15:02 pmurias to avoid conflicts with some used by 3 people program
15:02 travis-ci joined #perl6
15:02 travis-ci Doc build failed. Zoffix Znet 'list init-highlights in make help'
15:02 travis-ci https://travis-ci.org/perl6/doc/builds/186356808 https://github.com/perl6/doc/compare/fe7cc28dbdc7...838136725e0c
15:02 travis-ci left #perl6
15:03 dogbert17 notviki: PR sent
15:04 notviki dogbert17: looks good. merge it.
15:04 dogbert17 done
15:04 notviki \o/ dogbert17++
15:05 dogbert17 will you close the RT, promise to hound [Coke] later
15:06 notviki Done
15:09 dogbert17 notviki++
15:09 dalek doc: 5ec5bec | (Zoffix Znet)++ | .travis.yml:
15:09 dalek doc: Make travis use `make html`
15:09 dalek doc: review: https://github.com/perl6/doc/commit/5ec5bec0b0
15:10 timotimo it wouldn't be bad if we put "/usr/bin/time" into travis' commands, too
15:10 timotimo that way we'd also be able to track memory usage over time
15:11 holli joined #perl6
15:12 skids joined #perl6
15:12 dalek doc: e4cff5c | (Zoffix Znet)++ | .travis.yml:
15:12 dalek doc: use /usr/bin/time in travis for moar info
15:12 dalek doc: review: https://github.com/perl6/doc/commit/e4cff5ccc2
15:16 jeek Make me use what now?
15:17 notviki ?
15:18 jeek <- Travis
15:19 travis-ci joined #perl6
15:19 travis-ci Doc build errored. Zoffix Znet 'use /usr/bin/time in travis for moar info'
15:19 travis-ci https://travis-ci.org/perl6/doc/builds/186361583 https://github.com/perl6/doc/compare/5ec5bec0b0a8...e4cff5ccc26e
15:19 travis-ci left #perl6
15:19 timotimo cool
15:19 timotimo jeek: thanks for running all that stuff for us and all the other FOSS people
15:19 notviki timotimo: it ain't got/usr/bin/time
15:20 notviki jeek: you should shave your mustache...
15:20 timotimo wow, damn it
15:20 dalek doc: 158db97 | (Zoffix Znet)++ | .travis.yml:
15:20 dalek doc: Revert "use /usr/bin/time in travis for moar info"
15:20 dalek doc:
15:20 dalek doc: There ain't no pancake mix in there.
15:20 dalek doc: review: https://github.com/perl6/doc/commit/158db975a4
15:21 timotimo pancake mix? o_O
15:21 rindolf notviki: hi! I am getting this w perl6/doc - http://paste.debian.net/904241/
15:21 dogbert17 timotimo: https://gist.github.com/dogbert17/1181b5130c786186c7a632a394bd16a0
15:21 notviki timotimo: https://www.youtube.com/watch?v=qwyZ0ji1GRU
15:22 timotimo that's just 1.8 gigs, though?
15:22 dogbert17 yeah, but it crashed, lemme restart my vm with three gigs instead
15:22 timotimo notviki: wow, that's fantastic
15:23 notviki rindolf: well, you didn't follow the full build steps so you're missing prereqs: https://github.com/perl6/doc/blob/master/CONTRIBUTING.md#podtohtml
15:24 brrt joined #perl6
15:25 dogbert17 joined #perl6
15:27 rindolf notviki: «panda install Pod::To::HTML Pod::To::BigPage» fails here.
15:27 notviki rindolf: how?
15:27 Praise joined #perl6
15:27 Praise joined #perl6
15:28 rindolf notviki: see http://paste.debian.net/904242/
15:30 timotimo rindolf: you need to run "rakudobrew rehash"
15:30 timotimo to make the rakudobrew give you a binary for pod2onepage
15:31 moritz Pod::To::HTML:ver<0.3.6>:auth<>:api<> already installed
15:31 moritz sounds like the installation has worked before
15:31 notviki .oO( rakudobrew probably should be nixed from doc/CONTRIBUTING.md )
15:32 moritz notviki: +1
15:32 rindolf timotimo: I ran it and I get the same problem
15:32 timotimo oh?
15:32 notviki rindolf: same problem is what?
15:32 notviki rindolf: the paste you showed tells you the module is already installed.
15:32 timotimo ah, i expect you already had Pod::To::HTML, but not Pod::To::Bigpage
15:32 timotimo but it bailed out early because Pod::To::HTML is already installed
15:32 rindolf notviki: moritz : timotimo : rakudobrew is also in .travis.yml
15:32 timotimo so just do panda --force install The::Two::Thigns
15:33 rindolf timotimo: ok/
15:33 notviki rindolf: yes, but we know what we're doing. rakudobrew is not for end users.
15:33 notviki rindolf: and then run rakudobrew rehash to get the pod2bigpage script from Pod::To::BigPage properly installed
15:34 notviki buggable: eco bigpage
15:34 buggable notviki, Pod::To::BigPage 'Render many pod6-files into one (big) html-file.': https://github.com/gfldex/perl6-pod-to-bigpage
15:34 notviki :}
15:34 dogbert17 timotimo: failed on 3 gig vm as well: https://gist.github.com/dogbert17/1181b5130c786186c7a632a394bd16a0
15:35 timotimo i thought you were going to run it on hack (which should have enough ram)
15:35 dogbert17 I'm wondering if it could be a 32 bit issue
15:46 notviki Anyone knows bash and could tell me why I'm getting "compile-sass.sh: line 12: syntax error near unexpected token `elif'" ? https://gist.github.com/zoffixznet/f6ce0a50b463623f77ec9eabbeea68e8
15:47 moritz https://docs.python.org/3.6/whatsnew/3.6.html
15:47 timotimo oh, they decided against skipping version number 6
15:48 moritz I can't help but think "format string? Perl (and PHP, shell, ruby, ..) have had string interpolation for ages"
15:48 timotimo oooh, they stole our underscores for numeric values
15:48 moritz and underscores in number literals? old hat too
15:50 rindolf notviki: OK, seems to run fine now, but it does seem kinda time consuming
15:50 notviki Well, yeah
15:51 timotimo they have async and yield combined, we don't have that i don't think
15:51 moritz don't use rakudobrew if it hinders more than it benefits you
15:52 travis-ci joined #perl6
15:52 travis-ci Doc build passed. Zoffix Znet 'Make travis use `make html`'
15:52 travis-ci https://travis-ci.org/perl6/doc/builds/186360952 https://github.com/perl6/doc/compare/838136725e0c...5ec5bec0b0a8
15:52 travis-ci left #perl6
15:53 timotimo rindolf: yes, it takes a long time and also a lot of memory
15:54 rindolf timotimo: ah
15:55 dogbert17 have never used Python I know that people at work who swears by it use a much older version for some reason
15:56 rindolf timotimo: wow! 41% of my 3 GB of RAM
15:56 rindolf Putting firefox to shame. ;-)
15:56 timotimo it might end up taking even more, though
15:56 dogbert17 probably a bit more
15:58 notviki solved my thing; missing semicolons after exit 1;
16:00 newbie1 joined #perl6
16:01 dalek doc: 8fff433 | (Zoffix Znet)++ | / (2 files):
16:01 dalek doc: Add SASS compiler script and make target
16:01 dalek doc:
16:01 dalek doc: - Tries to use `sass` first
16:01 dalek doc: - If no `sass` is present, tries to compile with CSS::Sass module
16:01 dalek doc: review: https://github.com/perl6/doc/commit/8fff43397a
16:02 travis-ci joined #perl6
16:02 travis-ci Doc build passed. Zoffix Znet 'Revert "use /usr/bin/time in travis for moar info"
16:02 travis-ci https://travis-ci.org/perl6/doc/builds/186364068 https://github.com/perl6/doc/compare/e4cff5ccc26e...158db975a4ea
16:02 travis-ci left #perl6
16:03 cyphase joined #perl6
16:04 notviki So I need to bring in either apt-get install ruby-sass or CSS::Sass Perl 5 module... do we have some sort of list where this stuff is added?
16:04 notviki like we have /home/rakudobrew/MODULES for P6 modules
16:05 * notviki doesn't see anything in https://github.com/perl6/infrastructure-doc/blob/master/hosts/hack.p6c.org.pod
16:05 timotimo what, on hack?
16:05 timotimo hm. i think we just ask our administrators to install stuff?
16:05 notviki Yeah, on hack
16:05 notviki OK then, I'll just install it
16:07 mr_ron joined #perl6
16:08 mr_ron m: say ("ab", "cd").flatmap( *.comb ) # (a b c d) rather than ((a b) (c d))
16:08 camelia rakudo-moar f0398f: OUTPUT«(a b c d)␤»
16:09 notviki m: say ("ab", "cd").flatmap( *.comb.item )
16:09 camelia rakudo-moar f0398f: OUTPUT«((a b) (c d))␤»
16:09 mr_ron Looking at the earlier discussion with Herby and docs issue 851 and wondering if the idea is a useful improvement https://github.com/perl6/doc/issues/851
16:13 zacts joined #perl6
16:15 dalek doc: 0bc9048 | (Zoffix Znet)++ | / (3 files):
16:15 dalek doc: Enable SASS Compiler and TOSS style.css
16:15 dalek doc:
16:15 dalek doc: html/css/style.css is now a generated file and no longer
16:15 dalek doc: needs to be in the repo.
16:15 dalek doc:
16:15 dalek doc: `make sass` target now compiles SASS
16:15 dalek doc: `make html` now also calls `make sass`
16:15 dalek doc: review: https://github.com/perl6/doc/commit/0bc904809b
16:16 zakharyas joined #perl6
16:19 cyphase joined #perl6
16:19 dalek doc: a07e3b4 | (Zoffix Znet)++ | Makefile:
16:19 dalek doc: list all phony targets
16:19 dalek doc: review: https://github.com/perl6/doc/commit/a07e3b40b8
16:21 dalek doc: a0cd377 | (Zoffix Znet)++ | util/compile-sass.sh:
16:21 dalek doc: tabs » spaces
16:21 dalek doc: review: https://github.com/perl6/doc/commit/a0cd377d61
16:22 dalek doc: f799c3a | (Zoffix Znet)++ | doc/Type/Str.pod6:
16:22 dalek doc: Remove trailing whitespace
16:22 dalek doc: review: https://github.com/perl6/doc/commit/f799c3a3f0
16:22 synopsebot6 Link: http://doc.perl6.org/type/Str
16:23 moritz why do we have the Supply/Supplier distinction?
16:24 travis-ci joined #perl6
16:24 travis-ci Doc build failed. Zoffix Znet 'Enable SASS Compiler and TOSS style.css
16:24 travis-ci https://travis-ci.org/perl6/doc/builds/186376244 https://github.com/perl6/doc/compare/8fff43397a01...0bc904809b9a
16:24 travis-ci left #perl6
16:25 vendethiel- joined #perl6
16:26 notviki moritz: Supplier sends stuff and Supplies provide it?
16:26 notviki I recall jnthn added that right close to Christmas and was much happier with the new UI
16:26 notviki s/UI/API/;
16:27 travis-ci joined #perl6
16:27 travis-ci Doc build failed. Zoffix Znet 'list all phony targets'
16:27 travis-ci https://travis-ci.org/perl6/doc/builds/186377179 https://github.com/perl6/doc/compare/0bc904809b9a...a07e3b40b817
16:27 travis-ci left #perl6
16:28 notviki jeek: Travis! Stop erroring out! :P
16:28 moritz notviki: that's a kinda weak explanation; before the distinction you could send values directly to the Supply; looked easier to me
16:29 jeek :(
16:29 notviki moritz: I'm sure jnthn can explain much better
16:29 travis-ci joined #perl6
16:30 travis-ci Doc build failed. Zoffix Znet 'tabs » spaces'
16:30 travis-ci https://travis-ci.org/perl6/doc/builds/186377621 https://github.com/perl6/doc/compare/a07e3b40b817...a0cd377d6115
16:30 travis-ci left #perl6
16:30 travis-ci joined #perl6
16:30 travis-ci Doc build failed. Zoffix Znet 'Remove trailing whitespace'
16:30 travis-ci https://travis-ci.org/perl6/doc/builds/186377661 https://github.com/perl6/doc/compare/a0cd377d6115...f799c3a3f063
16:30 travis-ci left #perl6
16:30 dalek doc: 65e9332 | (Zoffix Znet)++ | .travis.yml:
16:30 dalek doc: Make Travis happy
16:30 dalek doc: review: https://github.com/perl6/doc/commit/65e9332ccd
16:31 mr_ron notviki: is .item documented user facing? ... noticed $(), @() and %() don't seem to be
16:31 Khisanth joined #perl6
16:32 timotimo it's supposed to be user facing
16:33 mr_ron Was looking at opening a doc issue on contextualizers later ...
16:36 dalek doc: 3b1674f | (Zoffix Znet)++ | assets/sass/style.scss:
16:36 dalek doc: Toss generated warning from style.scss
16:36 dalek doc:
16:36 dalek doc: We no longer keep any generated files in the repo
16:36 dalek doc: review: https://github.com/perl6/doc/commit/3b1674f998
16:40 mr_ron sorry - issue #626 on item
16:40 travis-ci joined #perl6
16:40 travis-ci Doc build failed. Zoffix Znet 'Add SASS compiler script and make target
16:40 travis-ci https://travis-ci.org/perl6/doc/builds/186372968 https://github.com/perl6/doc/compare/158db975a4ea...8fff43397a01
16:40 travis-ci left #perl6
16:42 notviki Well, since the show/hide on TOC is broken—and I assume has been for a while—I'm gonna nix that feature altogether
16:43 notviki on doc site I mean
16:46 dugword joined #perl6
16:46 notviki huh, last travis is weird. it's a sucessful exit at the end. But... there were errors for tabs. I thought those tests were not run on travis?
16:50 dalek doc: 54fb4b3 | (Zoffix Znet)++ | / (6 files):
16:50 dalek doc: SASSify all CSS
16:50 dalek doc:
16:50 dalek doc: Make the site use a single sassy CSS file.
16:50 dalek doc: review: https://github.com/perl6/doc/commit/54fb4b3bf9
16:57 perlpilot moritz, notviki: didn't the Supply/Supplier distinction have something to do with live vs. on-demand supplies?
17:00 dalek doc: 06930ae | (Zoffix Znet)++ | / (3 files):
17:00 dalek doc: Remove TOC hide/show feature
17:00 dalek doc:
17:00 dalek doc: It's only used on narrow screens, since we now show TOC on the side
17:00 dalek doc: on wide screens. It's also is half-broken and has been for at least
17:00 dalek doc: several months and no one noticed, so I doubt the feature is in
17:00 dalek doc: high demand.
17:00 dalek doc:
17:00 dalek doc: By removing it we can get rid of Cookies jquery plugin and the associated
17:00 dalek doc: notice about our site using cookies.
17:00 dalek doc:
17:00 dalek doc: .oO( mmm.... coookies )
17:00 dalek doc: review: https://github.com/perl6/doc/commit/06930aed0d
17:04 moritz http://idlewords.com/talks/superintelligence.htm "If AdSense became sentient, it would upload itself into a self-driving car and go drive off a cliff."
17:05 notviki :/
17:06 samcv hi all
17:06 yoleaux 14:01Z <notviki> samcv: since you know it best, would you mind updating https://github.com/perl6/doc/blob/master/CONTRIBUTING.md#table-of-contents with the new deps for new highlighting mode? I'm guessing we no longer need pygmentize and Inline::Python, but need `npm`? I'm having trouble getting `npm` on debian wheezy
17:06 yoleaux 14:29Z <notviki> samcv: FWIW, building on Debian Jessie failed too. It was complainging about failed node-gyp install :/
17:06 samcv no problem notviki, i'll do that
17:07 samcv updating the PR for github now so they can pull in the changes too
17:07 notviki .ask [Coke] are you sure your new fuzzy search is working? I tried searching "trait-mod" and trait_mod does not show up. This is BEFORE I made the changes you'll see I have made by the time you read this, so I doubt it's me breaking anything...
17:07 yoleaux notviki: I'll pass your message to [Coke].
17:07 samcv have never resolved conflicts where upstream had changed references to other git repos inside the same repo before but i think i did it right
17:08 dalek doc: 79f541f | (Zoffix Znet)++ | / (4 files):
17:08 dalek doc: Merge sift4 script into search.js script
17:08 dalek doc:
17:08 dalek doc: To save us from making an extra HTTP request
17:08 dalek doc: review: https://github.com/perl6/doc/commit/79f541fb08
17:09 notviki samcv: OK. I'm gonna make a couple of other modificaftions to CONTRIBUTING.md first then
17:10 travis-ci joined #perl6
17:10 travis-ci Doc build passed. Zoffix Znet 'Make Travis happy'
17:10 travis-ci https://travis-ci.org/perl6/doc/builds/186379124 https://github.com/perl6/doc/compare/f799c3a3f063...65e9332ccdb9
17:10 travis-ci left #perl6
17:10 khw joined #perl6
17:12 travis-ci joined #perl6
17:12 travis-ci Doc build passed. Zoffix Znet 'Toss generated warning from style.scss
17:12 travis-ci https://travis-ci.org/perl6/doc/builds/186380292 https://github.com/perl6/doc/compare/65e9332ccdb9...3b1674f998f2
17:12 travis-ci left #perl6
17:13 dalek doc: 0f5a4a8 | (Zoffix Znet)++ | CONTRIBUTING.md:
17:13 dalek doc: Remove rakudobrew from isntructions
17:13 dalek doc:
17:13 dalek doc: - Tell to use Rakudo Star instead
17:13 dalek doc: - switch panda to zef (will be part of next R*)
17:13 dalek doc: review: https://github.com/perl6/doc/commit/0f5a4a8311
17:14 ufobat joined #perl6
17:17 dalek doc: 15b46af | (Zoffix Znet)++ | CONTRIBUTING.md:
17:17 dalek doc: Document how to obtain a SASS compiler
17:17 dalek doc: review: https://github.com/perl6/doc/commit/15b46afd21
17:17 notviki samcv: I'm done.
17:18 notviki And I'm done with all the changes to doc.perl6.org I promised to do a few months back \o/
17:18 notviki Now onto some PHP hacking for the rakudo.org download page \o/
17:21 samcv which changes?
17:21 samcv nice notviki
17:23 notviki samcv: make the build chain automatically compile SASS instead of us having to do it manually
17:23 samcv nice
17:26 dogbert17 samcv: memory usage when running htmlify with highlighting seems at bit high, do you know if there's anything which can be done about that?
17:26 samcv how high is it?
17:26 samcv and what's using the ram? moarvm or node?
17:26 dogbert17 2gig+, in fact it crashes on my system
17:27 samcv hmm i will look at that then
17:27 dogbert17 samcv: example here: https://gist.github.com/dogbert17/1181b5130c786186c7a632a394bd16a0
17:27 samcv do you see what is using it?
17:27 RabidGravy Oooh when did "Unsupported use of \b; in Perl 6 please use <|w> for word boundary" come in?
17:27 yoleaux 22 Dec 2016 23:57Z <notviki> RabidGravy: buggable: eco pastebin::gist
17:28 RabidGravy notviki++ nice
17:29 moritz RabidGravy: it was a recent NQP patch, I think
17:29 moritz commit c5f38888ecf1053eab6d9aa29086e23e0d3f0e83
17:29 moritz Author: Zoffix Znet <cpan@zoffix.com>
17:29 moritz Date:   Sun Dec 4 02:46:19 2016 -0500
17:29 moritz Forbid bare \b and \B in regexes
17:29 travis-ci joined #perl6
17:29 travis-ci Doc build passed. Zoffix Znet 'SASSify all CSS
17:29 travis-ci https://travis-ci.org/perl6/doc/builds/186382979 https://github.com/perl6/doc/compare/3b1674f998f2...54fb4b3bf98e
17:29 travis-ci left #perl6
17:30 RabidGravy I'm cool with it but I'd basically copied some P5 regex for something and munged tell they worked, and that worked last time I tested it
17:30 notviki RabidGravy: it didn't work tho. In P5 it's a word boundary but in P6 it's a backspace char
17:30 notviki RabidGravy: we found a bug you missed.
17:30 notviki You're welcome.
17:33 RabidGravy the strange thing is that it actually worked, I guess my coverage wasn't quite as good as I thought it was
17:33 notviki :)
17:33 grondilu joined #perl6
17:34 notviki .tell [Coke] FWIW "var OK_distance = Math.min(max_distance, len -1);" is useless since the conditional above it guarantees len is > 2 so it won't be less than max_distance there. Dunno if this helps you debug whether the fuzzy search works
17:34 yoleaux notviki: I'll pass your message to [Coke].
17:34 samcv dogbert17, running now. looks like i'm up to 1GB for moarvm
17:34 samcv node is using 41MB
17:35 samcv moarvm memory keeps going up but node is staying constant
17:35 samcv idk what the issue is. could be proc::async leaking? idk
17:38 grondilu_ joined #perl6
17:39 notviki .tell [Coke] oh, I guess len can be == 2 and then len -1 is 1.... never mind :)
17:39 yoleaux notviki: I'll pass your message to [Coke].
17:41 travis-ci joined #perl6
17:41 travis-ci Doc build passed. Zoffix Znet 'Remove TOC hide/show feature
17:41 travis-ci https://travis-ci.org/perl6/doc/builds/186385140 https://github.com/perl6/doc/compare/54fb4b3bf98e...06930aed0d4c
17:41 travis-ci left #perl6
17:45 travis-ci joined #perl6
17:45 travis-ci Doc build passed. Zoffix Znet 'Merge sift4 script into search.js script
17:45 travis-ci https://travis-ci.org/perl6/doc/builds/186387010 https://github.com/perl6/doc/compare/06930aed0d4c...79f541fb0885
17:45 travis-ci left #perl6
17:53 notviki *sigh* travis should really improve their bot
17:54 FROGGS joined #perl6
17:54 notviki build passed, so stfu now.
17:55 notviki especially with the joins and parts
17:55 * notviki shakes fist at cloud
17:55 RabidGravy RAAAAR!
17:58 Ven joined #perl6
18:00 notviki Commencing holday celebrations in 3... 2... 1...
18:00 notviki \o/
18:00 * notviki relocates
18:01 dogbert17 samcv: there could definitely be a memory leak in there somewhere
18:04 cyphase joined #perl6
18:20 bpmedley joined #perl6
18:47 cyphase joined #perl6
18:51 pierre_ joined #perl6
18:51 pierre_ joined #perl6
18:52 dugword joined #perl6
18:57 cdg joined #perl6
19:04 telex joined #perl6
19:12 baest_ joined #perl6
19:13 dataf3l joined #perl6
19:23 pmurias is someone working on rust interop?
19:23 madjestic joined #perl6
19:24 arnsholt Not to my knowledge
19:25 notviki I was gonna... but got sidetracked as always.
19:25 arnsholt Might be possible to jury-rig something from NativeCall though. How different is the code generated from C conventions?
19:26 notviki Well, you can tell rust to compile a C lib and use that from NativeCall
19:26 notviki Though the approach looked somewhat fragile last time someone tried that in the channel.... we concluded rust's ownership was causing issues
19:27 notviki Like, if you touch owned things from Perl 6 it segfaults instead of politely refusing to work.
19:27 mst pmurias: somebody's done rust-for-XS
19:27 notviki :o
19:27 mst pmurias: so you can always go via Inline::Perl5
19:27 mst (what could possibly go wrong ...)
19:31 xinming joined #perl6
19:39 TEttinger joined #perl6
19:44 notviki TIL 1, 2, { $^a + $^b } … receives 1 in $^a and 2 in $^b as opposed to in reverse
19:44 labster joined #perl6
19:45 lichtkind joined #perl6
19:46 lichtkind joined #perl6
19:49 djbkd joined #perl6
19:50 ufobat joined #perl6
19:55 RabidGravy I hate it when things don't segfault when you're trying to debug why they segfault
20:05 notviki m: my @G = 0; @G = 0, {++$ - @G[@G[$++]]} … ∞; say @G[^30]
20:05 camelia rakudo-moar f0398f: OUTPUT«(0 1 1 2 3 3 4 4 5 6 6 7 8 8 9 9 10 11 11 12 12 13 14 14 15 16 16 17 17 18)␤»
20:05 notviki <3 Perl 6
20:06 notviki https://en.wikipedia.org/wiki/Hofstadter_sequence#Hofstadter_G_sequence
20:07 notviki m: my @G = 0, {++$ - @G[@G[$++]]} … ∞; say @G[^30]
20:07 camelia rakudo-moar f0398f: OUTPUT«(0 1 1 2 3 3 4 4 5 6 6 7 8 8 9 9 10 11 11 12 12 13 14 14 15 16 16 17 17 18)␤»
20:07 notviki :o this works
20:08 cyphase joined #perl6
20:29 Buliarous joined #perl6
20:29 lichtkind_ joined #perl6
20:30 Buliarous left #perl6
20:31 pmurias mst: Inline::Perl5 is a solution to almost everything, we should have a bundled Star+Perl5 offering or something of that sort ;)
20:34 bjz joined #perl6
20:46 labster m: say *.WHAT; say *.^methods;
20:46 camelia rakudo-moar f0398f: OUTPUT«(Whatever)␤{ ... }␤»
20:48 rindolf RabidGravy: a Heisenbug!
20:49 notviki m: say *.WHAT; say WHAT *.^methods;
20:49 camelia rakudo-moar f0398f: OUTPUT«(Whatever)␤(WhateverCode)␤»
20:49 notviki (WHAT is not a true method, hence the difference between the two)
20:50 labster I thought that the .^ operator acted differently here, guess this is the way to do it:
20:51 labster m: say *.HOW.methods(*)
20:51 camelia rakudo-moar f0398f: OUTPUT«(ACCEPTS perl Str)␤»
20:52 moritz my $w = *; say $w.^methods
20:52 moritz m: my $w = *; say $w.^methods
20:52 camelia rakudo-moar f0398f: OUTPUT«(ACCEPTS perl Str)␤»
20:52 labster m: *.VAR.^methods
20:52 camelia rakudo-moar f0398f: ( no output )
20:53 labster m: *.VAR.^methods.say
20:53 camelia rakudo-moar f0398f: OUTPUT«(ACCEPTS perl Str)␤»
20:53 labster I don't know why that works, but it does.
20:55 pierre__ joined #perl6
21:09 rindolf joined #perl6
21:09 labster joined #perl6
21:15 mr_ron m: use Test; my $x = 1; is(do {my $x = 3; $x}, 3, "my"); is(do {temp $x = 4; $x}, 4, "temp"); is(do {let $x = 5; $x}, 5, "let")
21:15 camelia rakudo-moar f0398f: OUTPUT«ok 1 - my␤not ok 2 - temp␤␤# Failed test 'temp'␤# at <tmp> line 1␤# expected: '4'␤#      got: '1'␤ok 3 - let␤»
21:17 moritz m: use Test; my $x = 1; is(do {temp $x = 4; +$x}, 4, "temp")
21:17 camelia rakudo-moar f0398f: OUTPUT«ok 1 - temp␤»
21:18 moritz mr_ron: the do block doesn't decontainerize its return value
21:18 moritz so it doesn't return 4, but the variable $x, which is (correctly) reset to its original value immediately after block exit
21:21 mr_ron I sort of understand but wonder if there might not be some ambiguity.  Is the evaluated $x "my $x" or "temp $x" and why?
21:23 mr_ron Wait ... starting to understand ...
21:24 Axord joined #perl6
21:24 moritz there is only one $x in that example
21:24 moritz temp just temporary replaces the value
21:28 mr_ron m: use Test; my $x = 1; is(do {temp $x = 4; $x++}, 4, "temp"); say $x
21:28 camelia rakudo-moar f0398f: OUTPUT«ok 1 - temp␤1␤»
21:31 mr_ron m: use Test; my $x = 1; is(do {temp $x = 4; $}, 4, "temp"); say $x
21:31 camelia rakudo-moar f0398f: OUTPUT«not ok 1 - temp␤␤# Failed test 'temp'␤# at <tmp> line 1␤# expected: '4'␤#      got: (Any)␤1␤»
21:32 mr_ron Not quite understanding why the two cases return different $x
21:32 mr_ron m: use Test; my $x = 1; is(do {temp $x = 4; $x}, 4, "temp"); say $x
21:32 camelia rakudo-moar f0398f: OUTPUT«not ok 1 - temp␤␤# Failed test 'temp'␤# at <tmp> line 1␤# expected: '4'␤#      got: '1'␤1␤»
21:32 moritz ++ creates a copy
21:32 moritz so $x++ doesn't return $x
21:32 moritz it returns a copy of the value in $x
21:34 mr_ron A little unintuitive to me but understandably correct with explanation ... thank you
21:37 hankache joined #perl6
21:38 moritz it's unintuitive because you write to and read from the same variable within one expression
21:38 moritz even if no temp is involved, that can be very surprising
21:38 moritz in C that is even undefined behavior
21:41 domidumont joined #perl6
21:42 djbkd joined #perl6
22:03 cyphase joined #perl6
22:04 mr_ron m: my @a = <1 3>; my @b = do {temp @a; @a.push(5)}; @b.say; @b = do { @a.push(5) }; @b.say
22:04 camelia rakudo-moar fc599d: OUTPUT«[1 3]␤[1 3 5]␤»
22:06 djbkd joined #perl6
22:10 Tonik joined #perl6
22:16 lukaramu joined #perl6
22:23 labster joined #perl6
22:25 bjz joined #perl6
22:26 Rawriful joined #perl6
22:33 BenGoldberg joined #perl6
22:36 Ben_Goldberg joined #perl6
22:45 pmurias mr_ron: $x++ must create a copy because expresssion first do the side effects and then return a value
22:45 pyrimidine joined #perl6
23:00 geekosaur joined #perl6
23:01 TEttinger joined #perl6
23:01 samcv scroll down to the end https://docs.perl6.org/language/quoting#Heredocs:_:to
23:01 samcv how am i supposed to highlight two heredocs starting on the same line?
23:01 samcv er and what does that even do. do they overlap?
23:03 samcv oh i guess not overlapping. aaaah this is my worst nightmare for how to highlight XD
23:03 notviki m: https://gist.github.com/zoffixznet/ec3755e05e41d5e7c4b75d6af8621e19
23:03 camelia rakudo-moar b306de: OUTPUT«["FIRST\nMULTILINE\nSTRING\n", "SECOND\nMULTILINE\nSTRING\n"]␤»
23:04 notviki .oO( why do we even have that atrocity in the docs... )
23:05 kurahaupo joined #perl6
23:05 notviki And I bet that's not spectested.
23:05 samcv :D
23:05 samcv it's kind of ugly tbh. just
23:05 samcv i first thought maybe they overlapped or something one ending one place the other another place
23:06 samcv but them not overlapping is ever weirder
23:06 killbill joined #perl6
23:07 AlexDaniel joined #perl6
23:14 samcv notviki, well https://design.perl6.org/S02.html#Heredocs the S02 has it… not sure how i'm going to highlight this. maybe it's not possible. unless i like… idk it will be hard
23:14 notviki samcv: I'd ignore that case. Anyone stupid enough to write such code deserves LTA highlighting :)
23:14 samcv :)
23:19 notviki Is there a reverse of `is pure`?
23:20 notviki m: multi infix:<-> (Str $, Str $) { say "hi" }; say "start"; quietly "x" - "x"
23:20 camelia rakudo-moar b306de: OUTPUT«hi␤start␤»
23:20 timotimo if you don't put "is pure" on it, it won't be pure
23:20 timotimo but i'd expect code that checks for purity to see if there's a method for pureness and whether that method returns 1 or not
23:20 notviki Well, what if there an is pure on the proto? Can I mark one multi as not pure?
23:21 notviki Basically, our proto for infix:<-> is pure, and that causes any of the custom user's infix:<->'s to be constant folded as well.
23:21 notviki And (as above) produce undesirable results).
23:23 notviki m: proto infix:<->(|) {*}; multi infix:<-> (Str $, Str $) { say "hi" }; say "start"; quietly "x" - "x"; say 42 - 42
23:23 camelia rakudo-moar b306de: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Calling infix:<->(Int, Int) will never work with any of these multi signatures:␤    (Str, Str)␤at <tmp>:1␤------> 3 say "start"; quietly "x" - "x"; say 42 7⏏5- 42␤»
23:23 dalek doc: 1ba632e | samcv++ | doc/Language/regexes.pod6:
23:23 dalek doc: Trigger doc rebuild to pull in highlighter fixes
23:23 dalek doc:
23:23 dalek doc: Pulling in fixes for the highlighting of the ==> operator
23:23 dalek doc: review: https://github.com/perl6/doc/commit/1ba632ec9d
23:23 synopsebot6 Link: http://doc.perl6.org/language/regexes
23:27 notviki m: proto infix:<->(|) {*}; multi infix:<-> (|c) {CORE::("&infix:<->")(|c)} ;multi infix:<-> (Str $, Str $) { say "hi" }; say "start"; quietly "x" - "x"; say 42 - 42
23:27 camelia rakudo-moar b306de: OUTPUT«start␤hi␤0␤»
23:27 notviki At least there's a way to work aroun dit.
23:29 notviki Well, if the docs have a section bragging about how you can expand core ops... it should mention the constant-foldiness
23:43 timotimo we can have a second look before doing the constant folding to see if the proto is in the core setting but the candidate we're trying isn't
23:44 notviki oh, cool
23:45 quietfanatic joined #perl6
23:50 skids joined #perl6
23:58 grondilu joined #perl6
23:59 samcv \O/ they just merged the updated perl 6 highlighter for github's linguist :D
23:59 notviki Wooooo \o/
23:59 notviki samcv++

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

Perl 6 | Reference Documentation | Rakudo