Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2016-07-10

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:13 mr-foobar joined #perl6
00:24 dalek doc: 2ffe382 | (Wenzel P. P. Peppmeyer)++ | doc/Language/typesystem.pod6:
00:24 dalek doc: show how to check for type objects
00:24 dalek doc: review: https://github.com/perl6/doc/commit/2ffe3824aa
01:00 Sgeo joined #perl6
01:04 kalkin-_ joined #perl6
01:05 mohae joined #perl6
01:13 BenGoldberg joined #perl6
01:20 TakinOver joined #perl6
01:37 z3ndrag0n joined #perl6
01:53 tbrowder left #perl6
02:51 noganex_ joined #perl6
03:00 huggable joined #perl6
03:12 labster joined #perl6
03:35 z3ndrag0n joined #perl6
03:39 Actualeyes joined #perl6
04:13 kaare_ joined #perl6
04:18 telex joined #perl6
04:23 pdcawley_ joined #perl6
04:33 telex joined #perl6
04:41 djbkd_ joined #perl6
04:47 Cabanossi joined #perl6
05:29 wamba joined #perl6
05:44 rurban_ joined #perl6
05:49 Senji joined #perl6
06:17 darutoko joined #perl6
06:36 xiaomiao joined #perl6
06:54 sortiz joined #perl6
07:08 sortiz \o #perl6
07:16 TEttinger sortiz: still a decent netsplit in progress
07:17 TEttinger huggable is missing!
07:19 sortiz I see!, yoleaux is missing in #perl6-dev
07:19 setty1 joined #perl6
07:24 zacts joined #perl6
07:25 firstdayonthejob joined #perl6
07:25 CIAvash joined #perl6
07:41 canopus_ joined #perl6
07:41 sjoshi joined #perl6
08:17 niceperl joined #perl6
08:19 domidumont joined #perl6
08:19 zacts joined #perl6
08:24 domidumont joined #perl6
08:26 kent\n joined #perl6
08:26 kent\n joined #perl6
08:53 colomon joined #perl6
08:53 aries_liuxueyang joined #perl6
08:53 jercos joined #perl6
08:53 autarch joined #perl6
08:53 DrForr joined #perl6
08:53 ranguard joined #perl6
08:53 konobi joined #perl6
08:53 b2gills joined #perl6
08:53 notbenh joined #perl6
08:53 Ulti joined #perl6
08:53 nebuchadnezzar joined #perl6
08:53 labster joined #perl6
08:53 andrzejku joined #perl6
08:53 jjido joined #perl6
08:53 FROGGS joined #perl6
08:53 huggable joined #perl6
08:53 pdcawley_ joined #perl6
08:53 Sgeo joined #perl6
08:53 aindilis joined #perl6
08:53 flaviusb joined #perl6
08:53 john51_ joined #perl6
08:53 Roamer` joined #perl6
08:53 lnrdo joined #perl6
08:53 roguelazer joined #perl6
08:53 cooper joined #perl6
08:53 keix joined #perl6
08:53 bbkr joined #perl6
08:53 MafProd joined #perl6
08:53 tushar joined #perl6
08:53 freeze joined #perl6
08:53 vike joined #perl6
08:53 dg joined #perl6
08:53 chris2 joined #perl6
08:53 danaj joined #perl6
08:53 tomboy64 joined #perl6
08:53 mindos joined #perl6
08:53 zhmylove joined #perl6
08:53 remmie joined #perl6
08:53 ambs joined #perl6
08:53 daxim joined #perl6
08:53 hoelzro joined #perl6
08:53 retupmoca joined #perl6
08:53 integral_ joined #perl6
08:53 Celelibi joined #perl6
08:53 timeless joined #perl6
08:53 ugexe joined #perl6
08:53 rodarmor joined #perl6
08:53 riatre joined #perl6
08:53 mtj_ joined #perl6
08:53 zostay joined #perl6
08:53 TeamBlast joined #perl6
08:53 rblackwe joined #perl6
08:53 m0ltar joined #perl6
08:53 jsimonet joined #perl6
08:53 sunnavy joined #perl6
08:53 moritz joined #perl6
08:53 mithaldu_ joined #perl6
08:53 SHODAN joined #perl6
08:53 xfix joined #perl6
08:53 xdbr joined #perl6
08:53 SmokeMachine____ joined #perl6
08:53 sQuEE joined #perl6
08:54 labster joined #perl6
08:59 RabidGravy joined #perl6
09:01 tomboy64 joined #perl6
09:05 kst joined #perl6
09:05 sortiz \o other half of #perl6 ;-)
09:07 eugen joined #perl6
09:13 wamba joined #perl6
09:34 FROGGS o/
09:44 CIAvash joined #perl6
09:50 rindolf joined #perl6
10:38 brrt joined #perl6
10:42 kid51 joined #perl6
10:46 brrt joined #perl6
10:47 moritz \oo/
10:55 nebuchadnezzar \o/
10:59 tbrowder joined #perl6
10:59 tbrowder anyone here?
11:00 mst yes
11:00 huggable joined #perl6
11:00 tbrowder mornin' (where I am) mst!
11:01 tbrowder 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:02 tbrowder as far as i know all args to an nqp sub are read-only
11:03 moritz they aren't deeply immutable
11:03 moritz you can't rebind them, but you can modify them
11:03 moritz so you cannot do  sub f($x) { $x := ... }
11:03 psch nqp-m: sub foo(@a) { @a[0] := "bar" }; my @b := ["baz"]; foo(@b); say(@b[0])
11:03 camelia nqp-moarvm: OUTPUT«bar␤»
11:03 moritz but you *can* do sub f(@a, @b) { @a[0] := 42 }
11:05 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")
11:05 psch nqp-m: sub foo(@a) { @a[1823] := "bar" }; my @b := ["baz"]; foo(@b); say(@b[1823])
11:05 camelia nqp-moarvm: OUTPUT«bar␤»
11:05 tbrowder thanks,  moritz!
11:21 kurahaupo joined #perl6
11:21 dalek doc: e544a61 | (Wenzel P. P. Peppmeyer)++ | doc/Language/testing.pod6:
11:21 dalek doc: move X<|is,testing> out of =item
11:21 dalek doc: review: https://github.com/perl6/doc/commit/e544a61362
11:35 brrt joined #perl6
11:35 brrt joined #perl6
11:36 edehont joined #perl6
11:45 kurahaupo joined #perl6
11:46 hankache joined #perl6
11:51 awwaiid joined #perl6
12:03 domidumont joined #perl6
12:03 kaare_ joined #perl6
12:13 dalek doc/deleted_toc_animation: 1f146ec | Altai-man++ | html/js/main.js:
12:13 dalek doc/deleted_toc_animation: Fix for https://github.com/perl6/doc/issues/686
12:13 dalek doc/deleted_toc_animation: review: https://github.com/perl6/doc/commit/1f146ecddb
12:15 dalek doc/deleted_toc_animation: 219208b | Altai-man++ | html/js/main.js:
12:15 dalek doc/deleted_toc_animation: Remainder code for animation was deleted
12:15 dalek doc/deleted_toc_animation: review: https://github.com/perl6/doc/commit/219208b356
12:17 hankache joined #perl6
12:28 tbrowder nqp-m: say("test")
12:28 camelia nqp-moarvm: OUTPUT«test␤»
12:29 TimToady joined #perl6
12:30 tbrowder nqp-m: my $var := 0; sub f($var) { $var :=  $var + 1;}; say("var $var")
12:30 camelia nqp-moarvm: OUTPUT«var 0␤»
12:31 tbrowder any way to change the value of a scalar arg in a function in nqp?
12:31 travis-ci joined #perl6
12:31 travis-ci Doc build passed. Altai-man 'Fix for https://github.com/perl6/doc/issues/686'
12:31 travis-ci https://travis-ci.org/perl6/doc/builds/143699225 https://github.com/perl6/doc/commit/1f146ecddb32
12:31 travis-ci left #perl6
12:32 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␤»
12:33 tbrowder okay, sure, that's one way
12:33 psch it's *the* way, all nqp args are copied
12:33 travis-ci joined #perl6
12:33 psch which is also why changing array fields works
12:33 travis-ci Doc build passed. Altai-man 'Remainder code for animation was deleted'
12:33 travis-ci https://travis-ci.org/perl6/doc/builds/143699610 https://github.com/perl6/doc/compare/1f146ecddb32...219208b35621
12:33 travis-ci left #perl6
12:43 brrt joined #perl6
12:52 AlexDaniel joined #perl6
13:02 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 http://www.yapcna.org/yn2016/talk/6600
13:02 timotimo .seen btyler
13:02 yoleaux I saw btyler 5 Jun 2016 20:35Z in #perl6: * btyler goes back to talk writing
13:03 cog_ joined #perl6
13:21 finanalyst joined #perl6
13:25 iH2O joined #perl6
13:36 kaare_ nebuchadnezzar: https://github.com/kanatohodets/perl6-and-the-zen-of-erlang/blob/master/perl6-and-the-zen-of-erlang.pdf
13:36 rindolf joined #perl6
13:38 finanalyst @search hall ancient magic
13:38 finanalyst sorry, my bad
13:38 snarkyboojum joined #perl6
13:39 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:44 moritz finanalyst: you need to run with :err, and then .err.slurp-rest or something like that
13:45 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:46 finanalyst Typically, I am using it in unit tests with: shell
13:46 finanalyst shell 'myprog --flag ', :out, :merge
13:47 finanalyst I was expecting to have output directed by myprog into Stderr to be merged into stdout
13:51 finanalyst moritz: tried using .err.slurp-rest as you suggested. It worked. Documentation on proc could be improved to hint at that.
13:52 moritz finanalyst: please submit a PR for the docs :-)
13:52 iH2O left #perl6
13:52 moritz and to be fair, the docs do show an example with run(... :out).out.slurp-rest
14:01 BenGoldberg joined #perl6
14:18 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:19 finanalyst 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:21 finanalyst 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 MasterDuke joined #perl6
14:23 MasterDuke for me, any use of :merge that i've tried so far core dumps
14:24 dogbert17 hello #perl6
14:25 MasterDuke and there aren't any tests for it in roast
14:25 dogbert17 does anyone know what the method Any.nodemap does?
14:26 maybekoo2 joined #perl6
14:27 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␤␤»
14:27 dogbert17 m: dd [[1,2,3],[[4,5],6,7]].nodemap(*+1)
14:27 camelia rakudo-moar 89470a: OUTPUT«(4, 4)␤»
14:41 spider-mario joined #perl6
14:53 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:55 * parabolize knows it calls nodemap(&block, self) and nodemap is in src/core/metaops.pm.
14:55 parabolize I don't understand it. git log shows a lot of different people working on it but TimToady is the author.
14:56 dogbert17 gfldex: thx
14:58 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
15:00 huggable joined #perl6
15:02 Actualeyes joined #perl6
15:07 zakharyas joined #perl6
15:16 xinming_ joined #perl6
15:18 MilkmanDan joined #perl6
15:24 setty1 joined #perl6
15:29 domidumont joined #perl6
15:48 domidumont joined #perl6
15:49 skids joined #perl6
15:55 Herby_ joined #perl6
15:55 Herby_ o/
15:59 Herby_ \o
15:59 khw joined #perl6
16:26 yqt joined #perl6
16:27 espadrine joined #perl6
16:30 domidumont joined #perl6
16:38 hankache joined #perl6
16:41 sftp joined #perl6
16:48 hankache has anyone in #perl6 ever touched pygments https://bitbucket.org/birkenfeld/pygments-main ?
16:49 hankache it would be great if we could update the list of built-in types and methods and keywords/ops
16:51 parabolize the perl6 lexer was made by hoelzro
16:51 parabolize the quoting could be improved too.
16:51 parabolize I was trying and failing
16:52 hankache yup
16:52 hankache .seen hoelzro
16:52 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
16:54 hankache unfortunately pygments is the only choice we have
16:54 moritz for what?
16:54 cooper_ joined #perl6
16:54 gfldex automatic syntax highlighter for docs
16:55 parabolize there is highlighting in emacs and vim
16:55 moritz we could also use Text::VimColor
16:55 parabolize they don't do any better
16:55 parabolize haven't looked at that
16:55 moritz vim syntax hilighting for Perl 6 is mostly pretty good
16:57 hankache moritz does it highlight say "bla bla bla {@a.elems}" correctly?
16:57 hankache or say "bla bla bla @a.elems()" ?
16:58 parabolize yes
16:58 hankache oh
16:58 parabolize but it does have trouble with some kinds of quotes
16:58 moritz it's pretty impressive
16:58 hankache too bad asciidoctor can't use Vim :(
16:59 parabolize I think it was when I started adding a lot of adverbs
16:59 hankache it can only use pygments and a couple
16:59 hankache and highlight.js
16:59 hankache and another ruby library
17:00 hankache at the moment pygments is my only hope
17:01 parabolize we use pygments for docs.perl6.org in anycase
17:02 hankache i use it for perl6intro.com
17:03 BillSussman joined #perl6
17:03 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:11 parabolize its the ‘’ and “” vim doesn't seem to handle
17:11 wamba joined #perl6
17:11 parabolize emacs had trouble with the adverbs
17:14 telex joined #perl6
17:18 Amnez777 joined #perl6
17:22 dalek doc: d1533bb | (Zoffix Znet)++ | doc/Language/traps.pod6:
17:22 dalek doc: Document laziness in traps
17:22 dalek doc:
17:22 dalek doc: There are several bug reports on RT that aren't bugs but lazy maps, which warrants adding this in traps.
17:22 dalek doc: review: https://github.com/perl6/doc/commit/d1533bb78c
17:22 dalek doc: f45293b | (Wenzel P. P. Peppmeyer)++ | htmlify.p6:
17:22 dalek doc: fix lack of unique in kind column on routines page
17:22 dalek doc: review: https://github.com/perl6/doc/commit/f45293b0c2
17:26 mst joined #perl6
17:26 mst_ joined #perl6
17:29 daxim joined #perl6
17:32 rmmm joined #perl6
17:33 zacts joined #perl6
17:40 labster joined #perl6
17:46 domidumont joined #perl6
17:51 MasterDukeLaptop joined #perl6
17:52 MasterDukeLaptop AlexDaniel: i'll start playing around
18:02 RabidGravy joined #perl6
18:04 MasterDukeLaptop joined #perl6
18:14 chris2 joined #perl6
18:19 girafe joined #perl6
18:24 hoelzro dang, I missed hankache =(
18:24 hoelzro parabolize: in which ways would you like to see quoting improved?
18:28 Amnez777 joined #perl6
18:34 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:54 yqt joined #perl6
19:02 zacts joined #perl6
19:13 nightfro` joined #perl6
19:16 nightfro` joined #perl6
19:21 TEttinger joined #perl6
19:21 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. https://gist.github.com/parabolize/50161221e0bc072dd3351d34e47c4d9e
19:23 kurahaupo joined #perl6
19:24 kent\n joined #perl6
19:27 dwarring joined #perl6
19:27 kurahaupo joined #perl6
19:30 kurahaupo joined #perl6
19:42 vendethiel joined #perl6
19:42 maybekoo2 joined #perl6
19:50 canopus joined #perl6
19:58 leedo joined #perl6
19:58 pmqs joined #perl6
19:59 pmqs joined #perl6
20:03 pmqs1 joined #perl6
20:04 El_Che joined #perl6
20:05 pmqs1 left #perl6
20:06 zacts joined #perl6
20:06 pmqs joined #perl6
20:10 nightfrog joined #perl6
20:29 Ben_Goldberg joined #perl6
20:36 hoelzro ah, I see what you mean
20:38 kurahaupo joined #perl6
20:51 djbkd joined #perl6
20:57 wamba joined #perl6
21:04 petercommand joined #perl6
21:07 dalek doc: 4a11181 | (Wenzel P. P. Peppmeyer)++ | htmlify.p6:
21:07 dalek doc: move name to first column on /routine
21:07 dalek doc: review: https://github.com/perl6/doc/commit/4a111815e2
21:07 dalek doc: f67e000 | (Wenzel P. P. Peppmeyer)++ | htmlify.p6:
21:07 dalek doc: add heading to /routine.html
21:07 dalek doc: review: https://github.com/perl6/doc/commit/f67e0008a3
21:16 * moritz has brought his book in progress on leanpub: https://leanpub.com/deploy
21:18 cdg joined #perl6
21:18 cdg joined #perl6
21:26 lichtkind joined #perl6
21:59 Upasaka joined #perl6
22:04 zacts joined #perl6
22:05 El_Che moritz: thx for the link. I am also working on (parts of) that
22:07 El_Che moritz: will it be on safari when finished?
22:27 adu joined #perl6
22:29 Bucciarati dssSSS
22:31 adu there is more than one way to do it...
22:41 Celelibi joined #perl6
22:54 [Coke] .
22:54 bjz joined #perl6
23:00 huggable joined #perl6
23:31 japanoise joined #perl6
23:32 Sgeo_ joined #perl6
23:37 Sgeo joined #perl6
23:51 dalek doc: 275d187 | (Zoffix Znet)++ | doc/Language/control.pod6:
23:51 dalek doc: Fix typo
23:51 dalek doc: review: https://github.com/perl6/doc/commit/275d187e67
23:57 sftp joined #perl6

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

Perl 6 | Reference Documentation | Rakudo