»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:, or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend!
Set by moritz on 22 December 2015.
00:10 mr-foobar left 00:11 z3ndrag0n left 00:13 mr-foobar joined
dalek c: 2ffe382 | (Wenzel P. P. Peppmeyer)++ | doc/Language/typesystem.pod6:
show how to check for type objects
00:24
00:25 AlexDaniel left 00:34 killbill left 00:43 maybekoo2 left 01:00 Sgeo left, Sgeo joined 01:02 mohae left 01:04 kalkin- left, kalkin-_ joined 01:05 mohae joined 01:13 BenGoldberg joined 01:20 TakinOver joined 01:36 labster left, rgrinberg left 01:37 z3ndrag0n joined 02:01 sortiz left 02:16 kid51 left 02:22 zacts left 02:51 noganex_ joined 02:54 noganex left 03:00 huggable left, huggable joined 03:12 labster joined 03:14 Actualeyes left 03:34 z3ndrag0n left 03:35 z3ndrag0n joined 03:38 z3ndrag0n left 03:39 Actualeyes joined 03:53 Senji left 04:13 kaare_ joined 04:18 telex joined 04:23 pdcawley_ joined 04:24 pdcawley left 04:30 telex left 04:33 telex joined 04:41 djbkd_ joined 04:44 djbkd left 04:45 Cabanossi left 04:47 Cabanossi joined 04:59 BenGoldberg left, pdcawley_ left, labster left, huggable left, Sgeo left, khw left, jack_rabbit left 05:00 aindilis left 05:29 wamba joined 05:44 rurban_ joined 05:49 Senji joined 05:57 skids left 06:17 darutoko joined 06:36 xiaomiao joined 06:46 wamba left 06:54 sortiz joined
sortiz \o #perl6 07:08
TEttinger sortiz: still a decent netsplit in progress 07:16
huggable is missing! 07:17
sortiz I see!, yoleaux is missing in #perl6-dev 07:19
07:19 setty1 joined 07:24 zacts joined 07:25 firstdayonthejob joined, CIAvash joined 07:41 canopus_ joined, sjoshi joined 07:42 canopus is now known as Guest70470 07:43 Guest70470 left, canopus_ is now known as canopus 07:47 zacts left 08:17 niceperl joined 08:19 domidumont joined 08:20 zacts joined 08:24 domidumont left, domidumont joined 08:26 kent\n joined, kent\n left, kent\n joined 08:28 sjoshi left 08:30 djbkd_ left 08:32 domidumont left 08:53 colomon joined, aries_liuxueyang joined, jercos joined, autarch joined, DrForr joined, ranguard joined, konobi joined, b2gills joined, notbenh joined, Ulti joined, nebuchadnezzar joined 08:54 labster joined, andrzejku joined, jjido joined, FROGGS joined, huggable joined, pdcawley_ joined, Sgeo joined, aindilis joined, flaviusb joined, john51_ joined, Roamer` joined, lnrdo joined, roguelazer joined, cooper joined, keix joined, bbkr joined, MafProd joined, tushar joined, freeze joined, vike joined, dg joined, chris2 joined, danaj joined, tomboy64 joined, mindos joined, zhmylove joined, remmie joined, ambs joined, daxim joined, hoelzro joined, retupmoca joined, integral_ joined, Celelibi joined, timeless joined, ugexe joined, rodarmor joined, riatre joined, mtj_ joined, zostay joined, TeamBlast joined, rblackwe joined, m0ltar joined, jsimonet joined, sunnavy joined, moritz joined, mithaldu_ joined, SHODAN joined, xfix joined, xdbr joined, SmokeMachine____ joined, sQuEE joined, labster left, labster joined 08:58 tomboy64 left 09:00 RabidGravy joined 09:01 tomboy64 joined 09:03 kst left 09:05 kst joined
sortiz \o other half of #perl6 ;-) 09:05
09:07 eugen joined 09:13 wamba joined 09:22 TEttinger left 09:30 CIAvash left
FROGGS o/ 09:34
09:44 CIAvash joined 09:47 niceperl left 09:50 rindolf joined 10:00 sortiz left 10:25 labster left 10:33 jjido left 10:35 setty1 left 10:38 brrt joined 10:43 kid51 joined 10:45 brrt left 10:46 brrt joined
moritz \oo/ 10:47
nebuchadnezzar \o/ 10:55
10:58 kaare_ left 10:59 tbrowder joined
tbrowder anyone here? 10:59
mst yes 11:00
11:00 huggable left, huggable joined
tbrowder mornin' (where I am) mst! 11:00
is there any way, in nqp, to return or modify two or more arrays external to a subroutine? I want to avoid file scope vars but don't see how to do it 11:01
as far as i know all args to an nqp sub are read-only 11:02
moritz they aren't deeply immutable 11:03
you can't rebind them, but you can modify them
so you cannot do sub f($x) { $x := ... }
psch nqp-m: sub foo(@a) { @a[0] := "bar" }; my @b := ["baz"]; foo(@b); say(@b[0])
camelia nqp-moarvm: OUTPUT«bar␤»
moritz but you *can* do sub f(@a, @b) { @a[0] := 42 }
tbrowder ah! okay; can you append to them by increasing the array index by 1 in the assignment? 11:05
moritz or you can call nqp::push(@a, "new elem")
psch nqp-m: sub foo(@a) { @a[1823] := "bar" }; my @b := ["baz"]; foo(@b); say(@b[1823])
camelia nqp-moarvm: OUTPUT«bar␤»
tbrowder thanks, moritz!
11:21 kurahaupo joined, kurahaupo left
dalek c: e544a61 | (Wenzel P. P. Peppmeyer)++ | doc/Language/testing.pod6:
move X<|is,testing> out of =item
11:21
11:35 brrt left, brrt joined, brrt left 11:36 brrt joined, edehont joined 11:37 rindolf left 11:40 brrt left 11:46 kurahaupo joined, hankache joined 11:51 awwaiid joined 12:03 domidumont joined 12:04 kaare_ joined, edehont left, hankache left
dalek c/deleted_toc_animation: 1f146ec | Altai-man++ | html/js/main.js:
Fix for github.com/perl6/doc/issues/686
12:13
c/deleted_toc_animation: 219208b | Altai-man++ | html/js/main.js:
Remainder code for animation was deleted
12:16
12:17 hankache joined 12:26 domidumont left 12:28 TimToady left
tbrowder nqp-m: say("test") 12:28
camelia nqp-moarvm: OUTPUT«test␤»
12:29 TimToady joined
tbrowder nqp-m: my $var := 0; sub f($var) { $var := $var + 1;}; say("var $var") 12:30
camelia nqp-moarvm: OUTPUT«var 0␤»
tbrowder any way to change the value of a scalar arg in a function in nqp? 12:31
12:31 travis-ci joined
travis-ci Doc build passed. Altai-man 'Fix for github.com/perl6/doc/issues/686' 12:31
travis-ci.org/perl6/doc/builds/143699225 github.com/perl6/doc/commit/1f146ecddb32
12:31 travis-ci left
tbrowder nqp-m: my $var := 0; sub f($var) { my $v := $var + 1}; $var := f($var); say("var $var") 12:32
camelia nqp-moarvm: OUTPUT«var 1␤»
tbrowder okay, sure, that's one way 12:33
psch it's *the* way, all nqp args are copied
12:33 travis-ci joined
psch which is also why changing array fields works 12:33
travis-ci Doc build passed. Altai-man 'Remainder code for animation was deleted'
travis-ci.org/perl6/doc/builds/143699610 github.com/perl6/doc/compare/1f146...9208b35621
12:33 travis-ci left 12:43 brrt joined 12:52 AlexDaniel joined 13:01 kurahaupo left
nebuchadnezzar I'm looking at perl6 video from YAPC::NA, but some of them don't have readable slides, I don't find where are the slides of www.yapcna.org/yn2016/talk/6600 13:02
timotimo .seen btyler 13:03
yoleaux I saw btyler 5 Jun 2016 20:35Z in #perl6: * btyler goes back to talk writing
13:03 cog_ joined 13:21 finanalyst joined 13:25 iH2O joined 13:28 MasterDuke left
kaare_ nebuchadnezzar: github.com/kanatohodets/perl6-and-...erlang.pdf 13:36
13:36 rindolf joined
finanalyst @search hall ancient magic 13:38
sorry, my bad
13:38 snarkyboojum joined
finanalyst can anyone here help me with proc? I can't quite get output back from stderr 13:40
nebuchadnezzar kaare_: thanks a lot
13:40 snarkyboojum left
moritz finanalyst: you need to run with :err, and then .err.slurp-rest or something like that 13:44
finanalyst moritz: I'll try that. I was also looking at the documentation, and read about :merge. But I cant find a way to use it. 13:45
Typically, I am using it in unit tests with: shell 13:46
shell 'myprog --flag ', :out, :merge
I was expecting to have output directed by myprog into Stderr to be merged into stdout 13:47
moritz: tried using .err.slurp-rest as you suggested. It worked. Documentation on proc could be improved to hint at that. 13:51
moritz finanalyst: please submit a PR for the docs :-) 13:52
13:52 iH2O left
moritz and to be fair, the docs do show an example with run(... :out).out.slurp-rest 13:52
14:01 BenGoldberg joined 14:08 wamba left
finanalyst moritz: I used the example of run( ... :out).out.slurp-rest , but it was not obvious to me from the documentation that run( ... :err).err.slurp-rest would work until you hinted at it 14:18
The documentation also says that setting :merge to true will redirect stderr to stdout. But I havent worked out yet how to do that. 14:19
for example, when I use $proc=shell 'some_command', :err, :merge; in a test.t to be used with prove, I get a time-out failure. 14:21
14:21 MasterDuke joined
MasterDuke for me, any use of :merge that i've tried so far core dumps 14:23
dogbert17 hello #perl6 14:24
MasterDuke and there aren't any tests for it in roast 14:25
dogbert17 does anyone know what the method Any.nodemap does?
14:27 maybekoo2 joined
dogbert17 m: d [[1,2,3],[[4,5],6,7]].nodemap(*+1) 14:27
camelia rakudo-moar 89470a: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Undeclared routine:␤ d used at line 1␤␤»
dogbert17 m: dd [[1,2,3],[[4,5],6,7]].nodemap(*+1)
camelia rakudo-moar 89470a: OUTPUT«(4, 4)␤»
14:37 brrt left 14:41 spider-mario joined 14:49 Actualeyes left
gfldex m: dd [1,[2,3],[4,[5,6]]].nodemap(*.gist); # dogbert: nodemap does not descend into sub lists 14:53
camelia rakudo-moar 89470a: OUTPUT«("1", "[2 3]", "[4 [5 6]]")␤»
14:53 hankache left
parabolize knows it calls nodemap(&block, self) and nodemap is in src/core/metaops.pm. 14:55
I don't understand it. git log shows a lot of different people working on it but TimToady is the author.
dogbert17 gfldex: thx 14:56
gfldex parabolize: check metaops.pm for it's usage. Some metaops have the trait is nodal what decides if those ops recurse or stay shallow 14:58
15:00 huggable left, huggable joined 15:02 Actualeyes joined 15:08 zakharyas joined 15:16 xinming_ joined 15:18 MilkmanDan joined 15:24 setty1 joined 15:29 domidumont joined 15:35 domidumont left 15:48 domidumont joined 15:49 skids joined 15:55 Herby_ joined
Herby_ o/ 15:55
\o 15:59
15:59 khw joined 16:08 Herby_ left 16:26 yqt joined 16:27 espadrine joined 16:29 domidumont left 16:30 domidumont joined 16:35 domidumont left 16:36 finanalyst left 16:38 hankache joined 16:40 sftp left 16:41 sftp joined 16:42 zakharyas left
hankache has anyone in #perl6 ever touched pygments bitbucket.org/birkenfeld/pygments-main ? 16:48
it would be great if we could update the list of built-in types and methods and keywords/ops 16:49
parabolize the perl6 lexer was made by hoelzro 16:51
the quoting could be improved too.
I was trying and failing
hankache yup 16:52
.seen hoelzro
yoleaux I saw hoelzro 8 Jul 2016 20:19Z in #perl6: <hoelzro> Zoffix: are you still seeing Linenoise build failures? it works for me on both zef and panda
hankache unfortunately pygments is the only choice we have 16:54
moritz for what?
16:54 cooper_ joined
gfldex automatic syntax highlighter for docs 16:55
parabolize there is highlighting in emacs and vim
moritz we could also use Text::VimColor
parabolize they don't do any better
haven't looked at that
moritz vim syntax hilighting for Perl 6 is mostly pretty good 16:56
hankache moritz does it highlight say "bla bla bla {@a.elems}" correctly? 16:57
or say "bla bla bla @a.elems()" ?
parabolize yes 16:58
16:58 cooper left
hankache oh 16:58
parabolize but it does have trouble with some kinds of quotes
moritz it's pretty impressive
hankache too bad asciidoctor can't use Vim :( 16:59
parabolize I think it was when I started adding a lot of adverbs
hankache it can only use pygments and a couple
and highlight.js
and another ruby library
at the moment pygments is my only hope 17:00
parabolize we use pygments for docs.perl6.org in anycase 17:01
17:02 daxim left
hankache i use it for perl6intro.com 17:02
17:03 BillSussman joined
hankache unfortunately i end up writing say "The zoo contains " ~ @animals.elems ~ " animals"; instead of say "The zoo contains {@animals.elems} animals"; just to get correct syntax highlighting 17:03
17:03 AndyBotwin left
parabolize its the ‘’ and “” vim doesn't seem to handle 17:11
17:11 wamba joined
parabolize emacs had trouble with the adverbs 17:11
17:13 telex left 17:14 telex joined 17:15 zacts left 17:18 Amnez777 joined
dalek c: d1533bb | (Zoffix Znet)++ | doc/Language/traps.pod6:
Document laziness in traps

There are several bug reports on RT that aren't bugs but lazy maps, which warrants adding this in traps.
17:22
c: f45293b | (Wenzel P. P. Peppmeyer)++ | htmlify.p6:
fix lack of unique in kind column on routines page
17:23
17:24 Actualeyes left 17:26 mst left, mst joined, mst_ joined 17:28 mst_ left 17:29 daxim joined 17:32 rmmm joined 17:33 zacts joined 17:37 yqt left 17:40 labster joined 17:46 RabidGravy left, domidumont joined 17:51 MasterDukeLaptop joined, hankache left
MasterDukeLaptop AlexDaniel: i'll start playing around 17:52
17:58 chris2 left 18:02 RabidGravy joined 18:03 MasterDukeLaptop left 18:04 MasterDukeLaptop joined 18:14 chris2 joined 18:15 Amnez777 left 18:19 girafe joined
hoelzro dang, I missed hankache =( 18:24
parabolize: in which ways would you like to see quoting improved?
18:28 Amnez777 joined 18:31 wamba left
hoelzro .tell hankache let me know if you want some guidance in improving the Perl 6 lexer; I haven't worked on it in a while, but it shouldn't be too hard to change 18:34
yoleaux hoelzro: I'll pass your message to hankache.
18:40 cooper_ is now known as cooper 18:44 zacts left 18:51 CIAvash left 18:52 espadrine left 18:54 yqt joined 19:00 huggable left 19:02 zacts joined 19:13 nightfro` joined, darutoko left 19:16 nightfro` left, nightfro` joined 19:17 nightfro` is now known as nightfrog 19:20 MasterDukeLaptop left 19:21 TEttinger joined
parabolize hoelzro: listquotes with angle brackets. the lexer is grabbing things it shouldn't like operator definitions. white space between the angle brackets and the first and last words isn't handled correctly. gist.github.com/parabolize/5016122...34e47c4d9e 19:21
19:24 kurahaupo joined, kurahaupo left, kent\n left, kent\n joined 19:27 dwarring joined, kurahaupo joined 19:28 kurahaupo left 19:29 maybekoo2 left 19:30 kurahaupo joined 19:31 kalkin-_ is now known as kalkin- 19:39 domidumont left 19:42 vendethiel joined, maybekoo2 joined 19:43 canopus left 19:50 canopus joined 19:51 zacts left 19:58 leedo joined, pmqs joined, pmqs left 19:59 pmqs joined 20:01 kaare_ left 20:03 pmqs1 joined 20:04 pmqs left, El_Che joined 20:05 pmqs1 left 20:06 zacts joined, nightfrog left 20:07 pmqs joined 20:10 nightfrog joined 20:29 Ben_Goldberg joined 20:32 BenGoldberg left
hoelzro ah, I see what you mean 20:36
20:38 kurahaupo left, kurahaupo joined 20:51 djbkd joined 20:53 andrzejku left 20:57 wamba joined 20:58 kurahaupo left 21:03 petercommand left 21:04 petercommand joined
dalek c: 4a11181 | (Wenzel P. P. Peppmeyer)++ | htmlify.p6:
move name to first column on /routine
21:07
c: f67e000 | (Wenzel P. P. Peppmeyer)++ | htmlify.p6:
add heading to /routine.html
21:10 zacts left, Senji left
moritz has brought his book in progress on leanpub: leanpub.com/deploy 21:16
21:18 cdg joined, cdg left 21:19 cdg joined 21:26 lichtkind joined 21:53 setty1 left 21:59 Upasaka joined 22:04 zacts joined
El_Che moritz: thx for the link. I am also working on (parts of) that 22:05
22:06 TEttinger left
El_Che moritz: will it be on safari when finished? 22:07
22:16 wamba left 22:22 rurban_ left 22:27 spider-mario left, adu joined 22:29 cdg left
Bucciarati dssSSS 22:30
adu there is more than one way to do it... 22:31
22:36 Celelibi left 22:39 firstdayonthejob left 22:40 RabidGravy left 22:41 Celelibi joined 22:52 zacts left
[Coke] . 22:54
22:54 bjz joined 23:00 huggable joined 23:06 girafe left, bjz left 23:15 eugen left 23:31 japanoise joined 23:33 Sgeo_ joined 23:35 Sgeo left 23:37 Sgeo joined 23:38 Sgeo_ left 23:42 yqt left, rindolf left 23:44 mohae left
dalek c: 275d187 | (Zoffix Znet)++ | doc/Language/control.pod6:
Fix typo
23:51
23:57 sftp left, sftp joined