Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2017-11-05

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:11 mson joined #perl6
00:12 travis-ci joined #perl6
00:12 travis-ci Doc build failed. Zoffix Znet 'Unbust doc build'
00:12 travis-ci https://travis-ci.org/perl6/doc/builds/297381235 https://github.com/perl6/doc/compare/b558e0936b06...1dcf12a96d4b
00:12 travis-ci left #perl6
00:12 buggable [travis build above] ☠ Did not recognize some failures. Check results manually.
00:13 geekosaur "oops"
00:20 cdg joined #perl6
00:26 comborico1611 m: my @numbers = <1 2 3>; sub add-numbers ( @numbers ) { my $total = 0; for @numbers -> $x { $total += $x; }; say $total; }
00:26 camelia rakudo-moar 360eb2289: ( no output )
00:27 comborico1611 m: my @numbers = <1 2 3>; sub add-numbers ( @numbers ) { my $total = 0; for @numbers -> $x { $total += $x; say $total}; }
00:27 camelia rakudo-moar 360eb2289: ( no output )
00:28 jnthn m: my @numbers = <1 2 3>; say @numbers.sum
00:28 camelia rakudo-moar 360eb2289: OUTPUT: «6␤»
00:28 jnthn :-)
00:28 geekosaur I was wondering when they'd notice they never actually called the sub...
00:29 comborico1611 Heh, yeah. I'm actually checking to see if there is a typo in this book.
00:29 comborico1611 Heh
00:31 comborico1611 Okay. I'm going to type it exactly as i see it.
00:36 comborico1611 m: my @numbers = <1 2 3>; sub add-numbers ( @numbers ) { my $total = 0; for @numbers -> $x { $total += $x;} return $total; }
00:36 camelia rakudo-moar 360eb2289: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Strange text after block (missing semicolon or comma?)␤at <tmp>:1␤------> 3= 0; for @numbers -> $x { $total += $x;}7⏏5 return $total; }␤»
00:42 comborico1611 m: my @numbers = <1 2 3>; sub add-numbers ( @numbers ) { my $total = 0; for @numbers -> $x { $total += $x;}; return $total }
00:42 camelia rakudo-moar 360eb2289: ( no output )
00:45 evalable6 joined #perl6
01:02 comborico1611 Why does Perl use the term subroutine rather then function?
01:02 comborico1611 Than*
01:20 cdg joined #perl6
01:26 aborazmeh joined #perl6
01:26 aborazmeh joined #perl6
01:26 mr-foobar joined #perl6
01:43 pentashift joined #perl6
01:51 ZzZombo_ Type check failed in assignment to $section; expected Grammar::VDF::Section:D but got Grammar::VDF::Section:D
01:52 ZzZombo_ sorry, but what???
01:53 timotimo i believe there's a bug in definite type constraints when stuff comes out of another module
01:56 TimToady joined #perl6
01:56 Cabanossi joined #perl6
01:58 kalkin-- joined #perl6
02:14 comborico1611 Since a few new people came in, I'll ask again.  Why does Perl use the term routine instead of function?
02:15 timotimo maybe to avoid using the mathematical term for something imperative?
02:15 comborico1611 Routine is a better name, in my opinion.  It's more descriptive.
02:16 comborico1611 "Imperative" as in giving a command.
02:16 comborico1611 Yes, that's good.
02:17 comborico1611 I don't like the term method. I prefer member-function.
02:17 comborico1611 I suppose member-routine is fine.
02:18 timotimo well, imperative programming vs functional programming vs object-oriented vs ...
02:20 comborico1611 Reactive is the new one i just learned about.
02:21 ugexe sub is better than fun and shorter than func
02:22 evalable6 joined #perl6
02:23 comborico1611 Heh.
02:23 comborico1611 Well, I'm off to bed. Goodnight.
02:26 bitrauser joined #perl6
02:33 R0b0t1_ joined #perl6
02:37 wander squashable6: status
02:37 squashable6 wander, 🍕🍕 SQUASHathon is in progress! The end of the event in ≈9 hours. See https://github.com/rakudo/rakudo/wiki/Monthly-Bug-Squash-Day
02:37 squashable6 wander, Log and stats: https://gist.github.com/4360d8444487ad01d3f049c3b03dac36
02:54 geekosaur stack has an open bug to provide a more compatible bindist... someday
02:54 geekosaur whoops how did I end up in here
02:55 ilbot3 joined #perl6
02:55 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:56 Cabanossi joined #perl6
03:18 BenGoldberg joined #perl6
03:24 noganex_ joined #perl6
03:28 cdg joined #perl6
03:34 ryn1x joined #perl6
03:35 Geth ¦ doc: 758efca10a | (Alex Chen)++ (committed using GitHub Web editor) | htmlify.p6
03:35 Geth ¦ doc: Avoid generate unreachable pages
03:35 Geth ¦ doc:
03:35 Geth ¦ doc: for example:
03:35 Geth ¦ doc:
03:35 Geth ¦ doc: https://docs.perl6.org/routine/(cont).%E2%88%8B.html
03:35 Geth ¦ doc:
03:35 Geth ¦ doc: these pages are quite dirty, buggy, never reached unless hardcode url, and their message can be found at, for the example
03:35 Geth ¦ doc:
03:35 Geth ¦ doc: https://docs.perl6.org/routine/%E2%88%8B
03:35 Geth ¦ doc: review: https://github.com/perl6/doc/commit/758efca10a
03:41 Cabanossi joined #perl6
03:42 hoelzro joined #perl6
03:57 travis-ci joined #perl6
03:57 travis-ci Doc build failed. Alex Chen 'Avoid generate unreachable pages
03:57 travis-ci https://travis-ci.org/perl6/doc/builds/297427649 https://github.com/perl6/doc/compare/1dcf12a96d4b...758efca10ac2
03:57 travis-ci left #perl6
03:57 buggable [travis build above] ☠ Did not recognize some failures. Check results manually.
04:02 darkmorph joined #perl6
04:04 Geth ¦ doc: 63c8909a8e | (Alex Chen)++ (committed using GitHub Web editor) | doc/Type/VM.pod6
04:04 Geth ¦ doc: Make xtest happy
04:04 Geth ¦ doc: review: https://github.com/perl6/doc/commit/63c8909a8e
04:04 synopsebot Link: https://doc.perl6.org/type/VM
04:14 Geth ¦ doc: 01242c326d | (Alex Chen)++ (committed using GitHub Web editor) | doc/Type/Telemetry.pod6
04:14 Geth ¦ doc: Make xtest happy
04:14 Geth ¦ doc: review: https://github.com/perl6/doc/commit/01242c326d
04:14 synopsebot Link: https://doc.perl6.org/type/Telemetry
04:14 mr-foobar joined #perl6
04:25 travis-ci joined #perl6
04:25 travis-ci Doc build failed. Alex Chen 'Make xtest happy'
04:25 travis-ci https://travis-ci.org/perl6/doc/builds/297433183 https://github.com/perl6/doc/compare/758efca10ac2...63c8909a8ed0
04:25 travis-ci left #perl6
04:25 buggable [travis build above] ☠ Did not recognize some failures. Check results manually.
04:34 ryn1x .
04:35 travis-ci joined #perl6
04:35 travis-ci Doc build failed. Alex Chen 'Make xtest happy'
04:35 travis-ci https://travis-ci.org/perl6/doc/builds/297434828 https://github.com/perl6/doc/compare/63c8909a8ed0...01242c326d75
04:35 travis-ci left #perl6
04:35 buggable [travis build above] ☠ Did not recognize some failures. Check results manually.
04:40 Cabanossi joined #perl6
04:57 Geth ¦ doc: b3c67fcdf8 | (Alex Chen)++ (committed using GitHub Web editor) | doc/Type/Kernel.pod6
04:57 Geth ¦ doc: Update Kernel.pod6
04:57 Geth ¦ doc: review: https://github.com/perl6/doc/commit/b3c67fcdf8
04:57 synopsebot Link: https://doc.perl6.org/type/Kernel
04:57 Geth ¦ doc: 31ccff2566 | (Alex Chen)++ (committed using GitHub Web editor) | doc/Type/Distro.pod6
04:57 synopsebot Link: https://doc.perl6.org/type/Distro
04:57 Geth ¦ doc: Update Distro.pod6
04:57 Geth ¦ doc: review: https://github.com/perl6/doc/commit/31ccff2566
04:58 wander 'The command "make html-nohighlight" exited with 2.' since https://travis-ci.org/perl6/doc/jobs/297381236
04:59 wander commit: https://github.com/perl6/doc/commit/1dcf12a96d4bfbfe6fca116afb289ea0e4a3b4f5
04:59 committable6 wander, I cannot recognize this command. See wiki for some examples: https://github.com/perl6/whateverable/wiki/Committable
04:59 wander The commit is https://github.com/perl6/doc/commit/1dcf12a96d4bfbfe6fca116afb289ea0e4a3b4f5
05:02 squashable6 🍕 W4anD0eR96++ wrote a comment on commit 31ccff25662c: https://github.com/perl6/doc/commit/31ccff25662ccb811b2ff257e9714161cd9d5ac6#commitcomment-25406914
05:03 squashable6 🍕 W4anD0eR96++ wrote a comment on commit b3c67fcdf8cd: https://github.com/perl6/doc/commit/b3c67fcdf8cda4616e6de2efccdebdc558620b02#commitcomment-25406917
05:04 napo1eon joined #perl6
05:05 HoboWithAShotgun joined #perl6
05:10 ryn1x joined #perl6
05:17 travis-ci joined #perl6
05:17 travis-ci Doc build failed. Alex Chen 'Update Kernel.pod6'
05:17 travis-ci https://travis-ci.org/perl6/doc/builds/297441685 https://github.com/perl6/doc/compare/01242c326d75...b3c67fcdf8cd
05:17 travis-ci left #perl6
05:17 buggable [travis build above] ☠ Did not recognize some failures. Check results manually.
05:20 travis-ci joined #perl6
05:20 travis-ci Doc build failed. Alex Chen 'Update Distro.pod6'
05:20 travis-ci https://travis-ci.org/perl6/doc/builds/297441772 https://github.com/perl6/doc/compare/b3c67fcdf8cd...31ccff25662c
05:20 travis-ci left #perl6
05:20 buggable [travis build above] ☠ Did not recognize some failures. Check results manually.
05:33 ryn1x joined #perl6
05:36 SmokeMachine m: sub bla {my $ret = die; CATCH {default {$ret = 42}}; $ret}; say bla # why it doesn’t print 42?
05:36 camelia rakudo-moar 360eb2289: OUTPUT: «Nil␤»
05:44 APic joined #perl6
05:47 SmokeMachine m: my $a = 13; sub bla {my $ret = $a; die; CATCH {default {say $ret; $a = $ret = 42}}; $ret}; say bla; say $a # it removes the $ret’s value
05:47 camelia rakudo-moar 360eb2289: OUTPUT: «13␤Nil␤42␤»
05:47 SmokeMachine m: my $a = 13; sub bla {our $ret = $a; die; CATCH {default {say $ret; $a = $ret = 42}}; $ret}; say bla; say $a
05:47 camelia rakudo-moar 360eb2289: OUTPUT: «13␤Nil␤42␤»
05:48 SmokeMachine m: my $a = 13; sub bla {my $ret := $a; die; CATCH {default {say $ret; $ret = 42}}; $ret}; say bla; say $a
05:48 camelia rakudo-moar 360eb2289: OUTPUT: «13␤Nil␤42␤»
05:50 ryn1x joined #perl6
05:54 SmokeMachine m: my $a = 13; sub bla {my $ret; {$ret = $a; die; CATCH {default {say $ret; $a = $ret = 42}}}; $ret}; say bla; say $a
05:54 camelia rakudo-moar 360eb2289: OUTPUT: «13␤42␤42␤»
05:55 Cabanossi joined #perl6
06:00 wamba joined #perl6
06:30 ryn1x joined #perl6
06:34 travis-ci joined #perl6
06:34 travis-ci Doc build failed. Alex Chen 'Update Distro.pod6'
06:34 travis-ci https://travis-ci.org/perl6/doc/builds/297454202 https://github.com/perl6/doc/compare/W4anD0eR96-fix-new-pod-file
06:34 travis-ci left #perl6
06:34 buggable [travis build above] ☠ Did not recognize some failures. Check results manually.
06:38 Geth ¦ doc: a0ae19fc2c | W4anD0eR96++ | 6 files
06:38 Geth ¦ doc: Dirty fix build fail, put Period.pod6 and Telemetry.pod6 to PR and merge them if build OK
06:38 Geth ¦ doc: review: https://github.com/perl6/doc/commit/a0ae19fc2c
06:41 ryn1x joined #perl6
06:41 Geth ¦ doc/doc-Telemetry: 96c217a3e7 | (Alex Chen)++ (committed using GitHub Web editor) | doc/Type/Telemetry.pod6
06:41 Geth ¦ doc/doc-Telemetry: Doc Type/Telemetry
06:41 Geth ¦ doc/doc-Telemetry:
06:41 Geth ¦ doc/doc-Telemetry: it cause build failure.
06:41 Geth ¦ doc/doc-Telemetry: review: https://github.com/perl6/doc/commit/96c217a3e7
06:41 Geth ¦ doc: W4anD0eR96++ created pull request #1658: Doc Type/Telemetry
06:41 Geth ¦ doc: review: https://github.com/perl6/doc/pull/1658
06:41 squashable6 🍕 W4anD0eR96++ opened pull request “Doc Type/Telemetry”: https://github.com/perl6/doc/pull/1658
06:43 Geth ¦ doc/doc-TelemetryPeriod: dc61e11dcf | (Alex Chen)++ (committed using GitHub Web editor) | doc/Type/Telemetry/Period.pod6
06:43 Geth ¦ doc/doc-TelemetryPeriod: Doc Type/Telemetry::Period
06:43 Geth ¦ doc/doc-TelemetryPeriod:
06:43 Geth ¦ doc/doc-TelemetryPeriod: it causes build failure.
06:43 Geth ¦ doc/doc-TelemetryPeriod: review: https://github.com/perl6/doc/commit/dc61e11dcf
06:43 Geth ¦ doc: W4anD0eR96++ created pull request #1659: Doc Type/Telemetry::Period
06:43 Geth ¦ doc: review: https://github.com/perl6/doc/pull/1659
06:43 squashable6 🍕 W4anD0eR96++ opened pull request “Doc Type/Telemetry::Period”: https://github.com/perl6/doc/pull/1659
06:46 mempko joined #perl6
06:55 Geth ¦ doc: 7a7be21e1f | W4anD0eR96++ | 5 files
06:55 Geth ¦ doc: Modify .gitignore to avoid add .DS_store
06:55 Geth ¦ doc: review: https://github.com/perl6/doc/commit/7a7be21e1f
06:55 konsolebox joined #perl6
07:01 travis-ci joined #perl6
07:01 travis-ci Doc build failed. W4anD0eR96 'Dirty fix build fail, put Period.pod6 and Telemetry.pod6 to PR and merge them if build OK'
07:01 travis-ci https://travis-ci.org/perl6/doc/builds/297457969 https://github.com/perl6/doc/compare/31ccff25662c...a0ae19fc2cac
07:01 travis-ci left #perl6
07:01 buggable [travis build above] ☠ Did not recognize some failures. Check results manually.
07:01 travis-ci joined #perl6
07:01 travis-ci Doc build failed. Alex Chen 'Doc Type/Telemetry
07:01 travis-ci https://travis-ci.org/perl6/doc/builds/297458372 https://github.com/perl6/doc/commit/96c217a3e752
07:01 travis-ci left #perl6
07:01 buggable [travis build above] ☠ Did not recognize some failures. Check results manually.
07:07 travis-ci joined #perl6
07:07 travis-ci Doc build failed. Alex Chen 'Doc Type/Telemetry::Period
07:07 travis-ci https://travis-ci.org/perl6/doc/builds/297458736 https://github.com/perl6/doc/commit/dc61e11dcf65
07:07 travis-ci left #perl6
07:07 buggable [travis build above] ☠ Did not recognize some failures. Check results manually.
07:09 nadim_ joined #perl6
07:17 squashable6 🍕 W4anD0eR96++ wrote a comment on commit a0ae19fc2cac: https://github.com/perl6/doc/commit/a0ae19fc2cacbd64c5b2890448393c6c0052f046#commitcomment-25408169
07:21 travis-ci joined #perl6
07:21 travis-ci Doc build passed. W4anD0eR96 'Modify .gitignore to avoid add .DS_store'
07:21 travis-ci https://travis-ci.org/perl6/doc/builds/297460683 https://github.com/perl6/doc/compare/a0ae19fc2cac...7a7be21e1fa0
07:21 travis-ci left #perl6
07:23 squashable6 🍕 W4anD0eR96++ wrote a comment on commit a0ae19fc2cac: https://github.com/perl6/doc/commit/a0ae19fc2cacbd64c5b2890448393c6c0052f046#commitcomment-25408235
07:25 squashable6 🍕 W4anD0eR96++ closed pull request “Doc Type/Telemetry::Period”: https://github.com/perl6/doc/pull/1659
07:25 squashable6 🍕 W4anD0eR96++ closed pull request “Doc Type/Telemetry”: https://github.com/perl6/doc/pull/1658
07:27 Geth ¦ doc/patch-01: d1d106182f | W4anD0eR96++ | 2 files
07:27 Geth ¦ doc/patch-01: Document Telemetry and Telemetry::Period, lizmat++
07:27 Geth ¦ doc/patch-01: review: https://github.com/perl6/doc/commit/d1d106182f
07:29 cdg joined #perl6
07:29 Geth ¦ doc: W4anD0eR96++ created pull request #1660: Document Telemetry and Telemetry::Period, lizmat++
07:29 Geth ¦ doc: review: https://github.com/perl6/doc/pull/1660
07:29 squashable6 🍕 W4anD0eR96++ opened pull request “Document Telemetry and Telemetry::Period, lizmat++”: https://github.com/perl6/doc/pull/1660
07:33 aindilis joined #perl6
07:39 ryn1x joined #perl6
07:40 azawawi joined #perl6
07:41 azawawi hi
07:43 azawawi is passing CStruct by value supported or even tested?
07:44 azawawi i passed a CStruct by value, and dumped its hex output in C and the results were garbled
07:45 cdg joined #perl6
07:45 azawawi i then passed the same CStruct as rw (Pointer) and it worked as expected
07:46 geekosaur CStruct is always passed as a pointer
07:48 darutoko joined #perl6
07:49 geekosaur structs as values is highly C compiler specific, and best handled by the C compiler itself. that said, I think timotimo was looking at switching NativeCall to use libffi, which claims to be able to do it on all supported platforms (but iirc it doesn't support all the platforms dyncall does)
07:49 travis-ci joined #perl6
07:49 travis-ci Doc build failed. W4anD0eR96 'Document Telemetry and Telemetry::Period, lizmat++'
07:49 travis-ci https://travis-ci.org/perl6/doc/builds/297466541 https://github.com/perl6/doc/commit/d1d106182f46
07:49 travis-ci left #perl6
07:49 buggable [travis build above] ☠ Did not recognize some failures. Check results manually.
07:50 geekosaur likewise returning CStructs as values
07:52 azawawi so what happens if you need to call a C function that expects a CStruct and not a pointer to a CStruct (i.e. without wrapping it)
07:52 geekosaur you have to wrap it
07:53 geekosaur it is *always* passed by NativeCall as a pointer; 'is rw' just tells NativeCall to copy the values back into Perl after the call, in case the C function changed things in the pointed-to struct
07:53 azawawi Missed the following: "CStruct objects are passed to native functions by reference and native functions must also return CStruct objects by reference." from documentation :)
07:53 azawawi geekosaur++
07:53 azawawi i think this needs to highlighted though
07:54 azawawi the nativecall documentation is great but needs examples
07:54 geekosaur probably. It's not that unusual though; it's only recently that libffi supported passing structs by value, and several other languages' FFIs don't try to support struct passing/returning as values (e.g. Haskell)
07:54 R0b0t1_ joined #perl6
07:54 geekosaur the ones that do support it make you write C code
07:55 geekosaur (lua, python, perl 5 since XS compiles to C)
07:55 Cabanossi joined #perl6
07:55 geekosaur s/since/because
07:55 azawawi so basically "Write in C" (c) ... hears the song in the distance :)
07:57 azawawi thx for the help
07:57 azawawi geekosaur++
07:57 Piotr joined #perl6
07:59 azawawi lesson learned so far... msgpack-c is a mess :)
08:00 azawawi https://github.com/msgpack/msgpack-c/issues/356
08:01 azawawi and given no CStruct forward declarations  in Perl 6, there is a lot of wrapping needed
08:02 azawawi given that msgpack_object is basically a struct with union of structs with pointers (CArrays) in them...
08:03 azawawi https://github.com/azawawi/perl6-msgpack/blob/master/lib/MsgPack/Native.pm6#L191
08:05 espadrine joined #perl6
08:11 Piotr joined #perl6
08:11 azawawi even gptrixie failed on msgpackc given it is written in c99
08:12 azawawi i should have seen the warning signs :)
08:14 cdg joined #perl6
08:29 parv joined #perl6
08:30 ryn1x joined #perl6
08:32 wamba joined #perl6
08:33 robertle joined #perl6
08:37 wander squashable6: status
08:37 squashable6 wander, 🍕🍕 SQUASHathon is in progress! The end of the event in ≈3 hours. See https://github.com/rakudo/rakudo/wiki/Monthly-Bug-Squash-Day
08:37 squashable6 wander, Log and stats: https://gist.github.com/dd8062ab3e340ac189048b73140bdeb0
08:50 yqt joined #perl6
08:54 ryn1x joined #perl6
08:56 setty1 joined #perl6
09:01 AlexDaniel wooo, 3 hours! Gotta do something
09:02 AlexDaniel lizmat: “no squashable feedback anymore ?” commits are already announced by Geth, I thought that there's no need to duplicate
09:02 squashable6 🍕 AlexDaniel++ edited issue “Kernel, Distro, VM and P…”: https://github.com/perl6/doc/issues/503
09:02 squashable6 🍕 AlexDaniel++ edited issue “Kernel, Distro, VM and P…”: https://github.com/perl6/doc/issues/503
09:02 squashable6 🍕 AlexDaniel++ edited issue “Kernel, Distro, VM and P…”: https://github.com/perl6/doc/issues/503
09:03 squashable6 🍕 AlexDaniel++ edited issue “Kernel, Distro, VM and P…”: https://github.com/perl6/doc/issues/503
09:03 squashable6 🍕 AlexDaniel++ edited issue “Kernel, Distro, VM and P…”: https://github.com/perl6/doc/issues/503
09:08 squashable6 🍕 AlexDaniel++ wrote a comment on “Document Telemetry and Telemetry::Period, lizmat++”: https://github.com/perl6/doc/pull/1660#issuecomment-341958969
09:17 squashable6 🍕 AlexDaniel++ submitted a review on pull request “Document Telemetry and Telemetry::Period, lizmat++”: https://github.com/perl6/doc/pull/1660#pullrequestreview-74276004
09:17 squashable6 🍕 AlexDaniel++ wrote a comment on a review for “Document Telemetry and Telemetry::Period, lizmat++”: https://github.com/perl6/doc/pull/1660#discussion_r148951951
09:18 fkpenta joined #perl6
09:20 HoboWithAShotgun joined #perl6
09:29 squashable6 🍕 AlexDaniel++ closed issue “doc /type/Kernel”: https://github.com/perl6/doc/issues/1569
09:29 squashable6 🍕 AlexDaniel++ wrote a comment on “doc /type/Kernel”: https://github.com/perl6/doc/issues/1569#issuecomment-341960057
09:29 squashable6 🍕 AlexDaniel++ wrote a comment on “Perl type not documented”: https://github.com/perl6/doc/issues/501#issuecomment-341960089
09:29 squashable6 🍕 AlexDaniel++ closed issue “Perl type not documented”: https://github.com/perl6/doc/issues/501
09:30 squashable6 🍕 AlexDaniel++ labeled issue “Kernel, Distro, VM and P…”: https://github.com/perl6/doc/issues/503
09:30 squashable6 🍕 AlexDaniel++ wrote a comment on “Kernel, Distro, VM and P…”: https://github.com/perl6/doc/issues/503#issuecomment-341960116
09:31 squashable6 🍕 AlexDaniel++ edited issue “Kernel, Distro, VM, Perl…”: https://github.com/perl6/doc/issues/503
09:33 squashable6 🍕 AlexDaniel++ wrote a comment on “How to pipe two Proc::Asyncs”: https://github.com/perl6/doc/issues/1580#issuecomment-341960253
09:33 squashable6 🍕 AlexDaniel++ closed issue “How to pipe two Proc::Asyncs”: https://github.com/perl6/doc/issues/1580
09:36 ryn1x joined #perl6
09:37 pecastro joined #perl6
09:38 sena_kun joined #perl6
09:51 Geth ¦ doc: 80d1de76bd | (Aleks-Daniel Jakimenko-Aleksejev)++ | doc/Language/traps.pod6
09:51 Geth ¦ doc: Document $aproc.print without awaiting trap
09:51 Geth ¦ doc:
09:51 Geth ¦ doc: Resolves #1567
09:51 Geth ¦ doc: review: https://github.com/perl6/doc/commit/80d1de76bd
09:51 synopsebot Link: https://doc.perl6.org/language/traps
09:51 squashable6 🍕 AlexDaniel++ closed issue “$proc.print: ‘foo’; $proc.close-stdin (trap)”: https://github.com/perl6/doc/issues/1567
09:55 squashable6 🍕 W4anD0eR96++ wrote a comment on “Document Telemetry and Telemetry::Period, lizmat++”: https://github.com/perl6/doc/pull/1660#issuecomment-341961247
10:02 moritz good morning
10:02 moritz tyil: it seems your App-MPD-Notify upload to CPAN contains a .git directory, which typically shouldn't be the case
10:04 ZzZombo_ why is my Grammar::Tracer output is garbled? Like this:
10:04 ZzZombo_ |  [1mdirective[0m
10:04 ZzZombo_ |  |  [1mws[0m
10:04 ZzZombo_ |  |  |  [1mcomment[0m
10:04 ZzZombo_ |  |  |  * [37;42mMATCH[0m[37m "// Dota Units File\n"[0m
10:04 ZzZombo_ |  |  |  [1mcomment[0m
10:04 ZzZombo_ |  |  |  * [37;41mFAIL[0m
10:04 ZzZombo_ |  |  * [37;42mMATCH[0m[37m "// Dota Units File\n"[0m
10:04 ZzZombo_ |  * [37;41mFAIL[0m
10:04 Geth ¦ doc: 7a74e1ee30 | (Aleks-Daniel Jakimenko-Aleksejev)++ | doc/Language/traps.pod6
10:04 Geth ¦ doc: Doc lonely LEAVE block execution trap
10:04 Geth ¦ doc:
10:04 Geth ¦ doc: Resolves #1539.
10:04 Geth ¦ doc: review: https://github.com/perl6/doc/commit/7a74e1ee30
10:04 synopsebot Link: https://doc.perl6.org/language/traps
10:04 squashable6 🍕 AlexDaniel++ closed issue “LEAVE trap (my $x = …; LEAVE $x.foo)”: https://github.com/perl6/doc/issues/1539
10:04 tyil moritz: thanks for the headsup, I'll take a peek later today
10:04 tyil ZzZombo_: please use a paste site next time
10:05 tyil also, that doesnt look garbled, that looks like it has color codes
10:06 squashable6 🍕 AlexDaniel++ wrote a comment on “Document Telemetry and Telemetry::Period, lizmat++”: https://github.com/perl6/doc/pull/1660#issuecomment-341961788
10:07 evalable6 joined #perl6
10:10 wander ZzZombo_: it works well on Terminal with xterm-256color
10:10 ZzZombo_ I'm on Windows 10.
10:16 wander maybe we should provide a non-colored version, but now, you can clone grammar-debug and modify `sub color`
10:16 wander so sad it sounds :( maybe there is a better way
10:16 tyil not using windows :>
10:17 moritz tyil: fwiw this is how I build my CPAN uploads: tar --transform 's,^,Grammar-Error-Reporting-0.2/,'  -czf Grammar-ErrorReporting-0.2.tar.gz  $(git ls-files)
10:28 evalable6 joined #perl6
10:28 rindolf joined #perl6
10:33 Geth ¦ doc: d87f7f13bd | (Aleks-Daniel Jakimenko-Aleksejev)++ | doc/Language/traps.pod6
10:33 Geth ¦ doc: Document «» traps
10:33 Geth ¦ doc:
10:33 Geth ¦ doc: Resolves #1369
10:33 Geth ¦ doc: review: https://github.com/perl6/doc/commit/d87f7f13bd
10:33 synopsebot Link: https://doc.perl6.org/language/traps
10:33 squashable6 🍕 AlexDaniel++ closed issue “%h«$x» is a trap”: https://github.com/perl6/doc/issues/1369
10:33 AlexDaniel squashable6: status
10:33 squashable6 AlexDaniel, 🍕🍕 SQUASHathon is in progress! The end of the event in ≈1 hour. See https://github.com/rakudo/rakudo/wiki/Monthly-Bug-Squash-Day
10:33 squashable6 AlexDaniel, Log and stats: https://gist.github.com/79c7df7fa42b039135436ac329e31a93
10:35 squashable6 🍕 AlexDaniel++ wrote a comment on “/language/traps should w…”: https://github.com/perl6/doc/issues/1400#issuecomment-341963208
10:40 domidumont joined #perl6
10:45 domidumont joined #perl6
10:54 travis-ci joined #perl6
10:54 travis-ci Doc build failed. Aleks-Daniel Jakimenko-Aleksejev 'Document «» traps
10:54 travis-ci https://travis-ci.org/perl6/doc/builds/297502519 https://github.com/perl6/doc/compare/7a74e1ee30f2...d87f7f13bd9d
10:54 travis-ci left #perl6
10:54 buggable [travis build above] ☠ Did not recognize some failures. Check results manually.
10:59 squashable6 🍕 lizmat++ wrote a comment on “Document Telemetry and Telemetry::Period, lizmat++”: https://github.com/perl6/doc/pull/1660#issuecomment-341964505
11:03 ZzZombo_ So according to https://github.com/Microsoft/WSL/issues/1173#issuecomment-254250445, color codes processing was changed deliberately; either Perl 6 itself should enable it, or somehow program it launches, but how then?
11:03 ZzZombo_ Anybody to comment?
11:04 SCHAPiE joined #perl6
11:05 squashable6 🍕 lizmat++ wrote a comment on “Document Telemetry and Telemetry::Period, lizmat++”: https://github.com/perl6/doc/pull/1660#issuecomment-341964836
11:09 Geth ¦ doc: e63a96ba2d | (Aleks-Daniel Jakimenko-Aleksejev)++ | doc/Language/traps.pod6
11:09 Geth ¦ doc: Document $proc.stdout without .lines trap
11:09 Geth ¦ doc:
11:09 Geth ¦ doc: Resolves #1591. As mentioned in the issue, there's a neat way to
11:09 Geth ¦ doc: detrap this problem. But right now we're just documenting issues and
11:09 synopsebot Link: https://doc.perl6.org/language/traps
11:09 Geth ¦ doc: this commit should be enough to close the ticket.
11:09 Geth ¦ doc: review: https://github.com/perl6/doc/commit/e63a96ba2d
11:09 squashable6 🍕 AlexDaniel++ closed issue “$proc.stdout is shorter …”: https://github.com/perl6/doc/issues/1591
11:11 squashable6 🍕 W4anD0eR96++ wrote a comment on “Document Telemetry and Telemetry::Period, lizmat++”: https://github.com/perl6/doc/pull/1660#issuecomment-341965144
11:12 AlexDaniel come on people! We can go below 280!
11:12 squashable6 🍕 lizmat++ wrote a comment on “Document Telemetry and Telemetry::Period, lizmat++”: https://github.com/perl6/doc/pull/1660#issuecomment-341965225
11:13 AlexDaniel squashable6: status
11:13 squashable6 AlexDaniel, 🍕🍕 SQUASHathon is in progress! The end of the event is in 46 minutes. See https://github.com/rakudo/rakudo/wiki/Monthly-Bug-Squash-Day
11:13 squashable6 AlexDaniel, Log and stats: https://gist.github.com/bf4136f1d0a3083af58d07d74bd0ec5a
11:16 squashable6 🍕 W4anD0eR96++ wrote a comment on “Document Telemetry and Telemetry::Period, lizmat++”: https://github.com/perl6/doc/pull/1660#issuecomment-341965426
11:17 squashable6 🍕 lizmat++ wrote a comment on “Document Telemetry and Telemetry::Period, lizmat++”: https://github.com/perl6/doc/pull/1660#issuecomment-341965458
11:21 mr-fooba_ joined #perl6
11:30 Geth ¦ doc: 29c5ebe198 | (Aleks-Daniel Jakimenko-Aleksejev)++ | doc/Language/traps.pod6
11:30 Geth ¦ doc: Document 「if %h<a b>:exists」 trap
11:30 Geth ¦ doc:
11:30 Geth ¦ doc: Resolves #1242
11:30 Geth ¦ doc: review: https://github.com/perl6/doc/commit/29c5ebe198
11:30 synopsebot Link: https://doc.perl6.org/language/traps
11:30 squashable6 🍕 AlexDaniel++ closed issue “Another possible trap: %h<a b>:exists”: https://github.com/perl6/doc/issues/1242
11:32 Geth ¦ doc: 06bab54149 | (Aleks-Daniel Jakimenko-Aleksejev)++ | doc/Language/traps.pod6
11:32 Geth ¦ doc: Fix pod problem
11:32 Geth ¦ doc: review: https://github.com/perl6/doc/commit/06bab54149
11:32 yqt joined #perl6
11:32 ryn1x joined #perl6
11:34 travis-ci joined #perl6
11:34 travis-ci Doc build failed. Aleks-Daniel Jakimenko-Aleksejev 'Document $proc.stdout without .lines trap
11:34 travis-ci https://travis-ci.org/perl6/doc/builds/297510981 https://github.com/perl6/doc/compare/d87f7f13bd9d...e63a96ba2db8
11:34 travis-ci left #perl6
11:34 buggable [travis build above] ☠ Did not recognize some failures. Check results manually.
11:39 stmuk joined #perl6
11:45 HoboWithAShotgun good localtime() you lot
11:45 HoboWithAShotgun what's the name of that catch-all method again?
11:46 Geth ¦ doc: 6519ef5399 | (Aleks-Daniel Jakimenko-Aleksejev)++ | doc/Language/traps.pod6
11:46 Geth ¦ doc: [Z] and the transpose of a list-of-lists trap
11:46 Geth ¦ doc:
11:46 Geth ¦ doc: Resolves #1400
11:46 Geth ¦ doc: review: https://github.com/perl6/doc/commit/6519ef5399
11:46 synopsebot Link: https://doc.perl6.org/language/traps
11:46 squashable6 🍕 AlexDaniel++ closed issue “/language/traps should w…”: https://github.com/perl6/doc/issues/1400
11:47 Geth ¦ doc: 7224e9024e | (Aleks-Daniel Jakimenko-Aleksejev)++ | doc/Language/traps.pod6
11:47 Geth ¦ doc: Make the spell checker happy
11:47 Geth ¦ doc: review: https://github.com/perl6/doc/commit/7224e9024e
11:47 squashable6 🍕 AlexDaniel++ wrote a comment on “/language/traps should w…”: https://github.com/perl6/doc/issues/1400#issuecomment-341967168
11:48 AlexDaniel squashable6: status
11:48 squashable6 AlexDaniel, 🍕🍕 SQUASHathon is in progress! The end of the event is in 11 minutes. See https://github.com/rakudo/rakudo/wiki/Monthly-Bug-Squash-Day
11:48 squashable6 AlexDaniel, Log and stats: https://gist.github.com/bd11003f408ad9a727e7375b248efe71
11:49 AlexDaniel geez! OK one more!
11:49 margeas joined #perl6
11:50 eugene_barsky joined #perl6
11:52 travis-ci joined #perl6
11:52 travis-ci Doc build failed. Aleks-Daniel Jakimenko-Aleksejev 'Document 「if %h<a b>:exists」 trap
11:52 travis-ci https://travis-ci.org/perl6/doc/builds/297516078 https://github.com/perl6/doc/compare/e63a96ba2db8...29c5ebe19844
11:52 travis-ci left #perl6
11:52 buggable [travis build above] ☠ Did not recognize some failures. Check results manually.
11:52 perlawhirl bisectable6: say (1..3).max(-> $i { $i })
11:52 bisectable6 perlawhirl, On both starting points (old=2015.12 new=d5fc6cb) the exit code is 1 and the output is identical as well
11:52 bisectable6 perlawhirl, Output on both points: «Too many positionals passed; expected 1 argument but got 2␤  in block <unit> at /tmp/bdqkS9eeMo line 1␤»
11:55 travis-ci joined #perl6
11:55 travis-ci Doc build passed. Aleks-Daniel Jakimenko-Aleksejev 'Fix pod problem'
11:55 travis-ci https://travis-ci.org/perl6/doc/builds/297516504 https://github.com/perl6/doc/compare/29c5ebe19844...06bab54149e2
11:55 travis-ci left #perl6
11:56 kalkin- joined #perl6
11:57 Geth ¦ doc: 1d0c7299ff | (Aleks-Daniel Jakimenko-Aleksejev)++ | doc/Language/traps.pod6
11:57 Geth ¦ doc: Document .lc/.uc/.fc trap
11:57 Geth ¦ doc:
11:57 Geth ¦ doc: Resolves #994
11:57 Geth ¦ doc: review: https://github.com/perl6/doc/commit/1d0c7299ff
11:57 synopsebot Link: https://doc.perl6.org/language/traps
11:57 squashable6 🍕 AlexDaniel++ closed issue “Case-insensitive string …”: https://github.com/perl6/doc/issues/994
11:57 ZzZombo joined #perl6
11:58 AlexDaniel squashable6: status
11:58 squashable6 AlexDaniel, 🍕🍕 SQUASHathon is in progress! The end of the event is in 1 minute. See https://github.com/rakudo/rakudo/wiki/Monthly-Bug-Squash-Day
11:58 squashable6 AlexDaniel, Log and stats: https://gist.github.com/0f81aba92c52584f4a0e69d4183076e0
11:58 AlexDaniel whew!
12:00 AlexDaniel whew!
12:00 AlexDaniel squashable6: status
12:00 squashable6 AlexDaniel, Next SQUASHathon in 25 days and ≈21 hours (2017-12-02 UTC-12⌁UTC+14). See https://github.com/rakudo/rakudo/wiki/Monthly-Bug-Squash-Day
12:00 AlexDaniel squashable6: log 2017-11-04
12:00 squashable6 AlexDaniel, Log and stats: https://gist.github.com/88c95ec07093bf7a5934be4d4494b541
12:00 lizmat whee!
12:06 HoboWithAShotgun how do I do this: https://hastebin.com/ikeneyecac.php without having to make b readwrite?
12:06 ChoHag joined #perl6
12:07 HoboWithAShotgun I can't use $!b
12:08 travis-ci joined #perl6
12:08 travis-ci Doc build passed. Aleks-Daniel Jakimenko-Aleksejev '[Z] and the transpose of a list-of-lists trap
12:08 travis-ci https://travis-ci.org/perl6/doc/builds/297519922 https://github.com/perl6/doc/compare/06bab54149e2...6519ef5399c3
12:08 travis-ci left #perl6
12:08 geekosaur if you can't use $!b then you have to make it rw
12:09 wander m: use Test;class Foo { has $.a = "a"; has $.b = "b" ; }; class Bar is Foo { has $.b = "B"; }; $_ = Bar.new( :a("A") ); ok .a ~~ "A" && .b ~~ "B";
12:09 camelia rakudo-moar d5fc6cbb9: OUTPUT: «ok 1 - ␤»
12:09 travis-ci joined #perl6
12:09 travis-ci Doc build passed. Aleks-Daniel Jakimenko-Aleksejev 'Make the spell checker happy'
12:09 travis-ci https://travis-ci.org/perl6/doc/builds/297520007 https://github.com/perl6/doc/compare/6519ef5399c3...7224e9024e28
12:09 travis-ci left #perl6
12:09 HoboWithAShotgun that's exactly what i wanted to avoid wander :)
12:10 lizmat m: class A { has $.a is rw = "a" }; class B is A { method TWEAK(:$.a = "b") { } }; dd B.new   # HoboWithAShotgun
12:10 wander well
12:10 camelia rakudo-moar d5fc6cbb9: OUTPUT: «B.new(a => "b")␤»
12:10 lizmat you *can* use :$.a
12:10 lizmat which is just another way to write self.a
12:10 lizmat but fits better in signatures  :-)
12:12 HoboWithAShotgun yes, bt that still requires rw
12:14 lizmat HoboWithAShotgun: yes, that's true
12:15 lizmat HoboWithAShotgun: the alternative is to make A a role:
12:15 lizmat role A { has $.a = "a" }; class B does A { method TWEAK(:$!a = "b") { } }; dd B.new(a => 42)
12:15 lizmat m: role A { has $.a = "a" }; class B does A { method TWEAK(:$!a = "b") { } }; dd B.new(a => 42)
12:15 camelia rakudo-moar 3e4ef2e0f: OUTPUT: «B.new(a => 42)␤»
12:16 lizmat m: role A { has $.a = "a" }; class B does A { method TWEAK(:$!a = "b") { } }; dd B.new
12:16 camelia rakudo-moar 3e4ef2e0f: OUTPUT: «B.new(a => "b")␤»
12:16 lizmat m: role A { has $.a = "a" }; class B does A { method TWEAK(:$!a = "b") { } }; dd A.new
12:16 camelia rakudo-moar 3e4ef2e0f: OUTPUT: «A.new(a => "a")␤»
12:16 lizmat you will still get to use A as a class, as it will autopun the role into a class as soon as it's used as a class
12:16 lizmat basically doing a "class :: does A { }" for you
12:17 lizmat brb&
12:25 cdg joined #perl6
12:28 wander lizmat: do we have something like `super` to invoke parent class in a child class?
12:28 wander self invoke the object itself
12:28 wander super invoke its parent
12:28 wander thus we can pass message from child to parent
12:29 lizmat wander: there's only one object
12:29 lizmat which happens to have attributes from the parent and attributes from the child
12:29 wander yes
12:30 lizmat wander: perhaps "trusts" is what you need?  https://docs.perl6.org/routine/trusts
12:32 geekosaur I was thinking something like callsame / nextsame
12:32 wander geekosaur: that's it
12:50 evalable6 joined #perl6
12:52 wander m: use Test;class A { has $.a = "a"; has $.b = "b"; }; class B is A { method new(*%args) { my %hash = %args; %hash<b> //= 'B'; nextwith(|(%hash.Capture)); } }; $_ = B.new( :a("A")); ok .a ~~ "A" && .b ~~ "B";
12:52 camelia rakudo-moar 3e4ef2e0f: OUTPUT: «ok 1 - ␤»
12:53 wander HoboWithAShotgun: ^^
12:53 Morfent joined #perl6
12:54 pecastro joined #perl6
12:55 ryn1x joined #perl6
12:55 Cabanossi joined #perl6
12:58 pecastro joined #perl6
13:05 BenGoldberg joined #perl6
13:10 pecastro joined #perl6
13:21 dakkar joined #perl6
13:25 Cabanossi joined #perl6
13:26 dakkar jnthn: Cro queston: how would I implement a ::Router-based transformer that "wraps" another one? for authentication purposes, for example
13:27 dakkar get -> *@, :$user!, :$pass! { if authentication-ok($user,$pass) { go-ahead-to-the-inner-transformer(...) } else { forbidden ... } }
13:27 dakkar how do I do the "go-ahead-" part?
13:27 dakkar alternatively, what's the smarter way of doing this?
13:28 HoboWithAShotgun allright, in here: https://hastebin.com/qumiqosabo.pl, is there a way to not having to tell the type Foo as a string?
13:28 HoboWithAShotgun basically can a role know who is "doing" it?
13:29 lizmat HoboWithAShotgun: is it intentional that there is only one instance ?
13:29 cdg joined #perl6
13:29 HoboWithAShotgun That is indeed the point. yes :)
13:30 dakkar HoboWithAShotgun: the invocant to a method will be the type object, won't it?
13:30 dakkar also, you have one $instance per process, regardless of how many clasess consume the role
13:31 HoboWithAShotgun oh.
13:32 cdg_ joined #perl6
13:33 lizmat m: class A { my $self; method new(|c) { $self //= $self.bless(|c) }}; dd A.new =:= A.new  # HoboWithAShotgun
13:33 camelia rakudo-moar 824a5dc29: OUTPUT: «Bool::True␤»
13:33 lizmat m: class A { my $self; method new(|c) { $self //= self.bless(|c) }}; dd A.new =:= A.new  # oops, second should be without $
13:33 camelia rakudo-moar 824a5dc29: OUTPUT: «Bool::True␤»
13:35 lizmat if you don't have any parameters to the .new:
13:35 buggable joined #perl6
13:35 lizmat m: class A { my $self = A.bless; method new() { $self }}; dd A.new =:= A.new
13:35 camelia rakudo-moar 824a5dc29: OUTPUT: «Bool::True␤»
13:36 census joined #perl6
13:36 buggable joined #perl6
13:36 dakkar HoboWithAShotgun: https://hastebin.com/gifudokotu.hs
13:36 dakkar (keep in mind that I'm not very good with perl6)
13:40 HoboWithAShotgun dakkar: yeah, that's basically what i came up with too
13:40 dakkar lizmat: how terrible is my code? ☺
13:40 HoboWithAShotgun or better said, i would have.
13:41 dakkar important bug remaninig: you can't pass positionals to the constructor
13:41 census can someone please look at my code? https://pastebin.com/VP6wJy4A
13:41 HoboWithAShotgun but this works: https://hastebin.com/esanakegoq.swift
13:42 census In line 13, I'm getting an error that says 'malformed UTF-8 in block <unit>'
13:42 holyghost joined #perl6
13:43 perllover joined #perl6
13:43 dakkar census: does your input file contain well-formed UTF-8 byte sequences?
13:45 census dakkar oh i understand sorry i freaked out
13:45 dakkar extra pairs of eyes are always useful 😜
13:46 dakkar although, if the implicit decoder told you where it's reading from and what it found, figuring out the problem would be easier
13:46 dakkar (but I suspect that it's quite a bit harder to do than to say, given the many layers involved)
13:52 lizmat dakkar: have to go now, will look at it when I'm back&
13:53 dakkar lizmat: nah, it was just a "request for nit-picking" ☺ have fun!
13:55 mr-foobar joined #perl6
14:06 SmokeMachine m: sub bla {my $ret = die; CATCH {default {$ret = 42}}; $ret}; say bla # why it doesn’t print 42?
14:06 camelia rakudo-moar 824a5dc29: OUTPUT: «Nil␤»
14:06 SmokeMachine But this works:
14:07 SmokeMachine m: sub bla {my $ret {$ret = die; CATCH {default {$ret = 42}}}; $ret}; say bla # why it doesn’t print 42?
14:07 camelia rakudo-moar 824a5dc29: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Unexpected block in infix position (missing statement control word before the expression?)␤at <tmp>:1␤------> 3sub bla {my $ret7⏏5 {$ret = die; CATCH {default {$ret = 42}␤    expecting any o…»
14:07 SmokeMachine m: sub bla {my $ret; {$ret = die; CATCH {default {$ret = 42}}}; $ret}; say bla # why it doesn’t print 42?
14:07 camelia rakudo-moar 824a5dc29: OUTPUT: «42␤»
14:10 Cabanossi joined #perl6
14:14 R0b0t1_ joined #perl6
14:14 khw joined #perl6
14:21 raymondbaker joined #perl6
14:25 nadim_ joined #perl6
14:33 Ben_Goldberg joined #perl6
14:33 ChoHag joined #perl6
14:34 mr-foobar joined #perl6
14:35 ryn1x joined #perl6
14:38 HoboWithAShotgun allright, somebody want to try and break this? https://github.com/holli-holzer/perl6-Singleton
14:42 AlexDaniel .tell lizmat weekly report https://gist.github.com/AlexDaniel/5abca8af46308661c3d30cdad53d17bf
14:42 yoleaux AlexDaniel: I'll pass your message to lizmat.
14:44 darkmorph joined #perl6
14:57 BenGoldberg joined #perl6
14:58 nadim joined #perl6
15:00 SCHAPiE joined #perl6
15:04 census dakkar you still around?
15:04 dakkar I am!
15:05 census i'm trying to write another code. would you please be willing to take a look at it?
15:06 jnthn dakkar: Cro works less in terms of "wrapping" and more in terms of a linear pipeline. For auth, I'd approach it in the same way that we handle HTTP2 ping/window update/settings ack: have something in the pipeline ahead of request processing that applies the auth checks, and if it wants to bypass the rest, then emits the response into a Supplier in ConnectionState, and the another step in the processing pipeline later subscribes to that and spits
15:06 census https://pastebin.com/23Ed68Bw
15:06 Geth ¦ doc/patch-01: 8e7a9c4c35 | (Alex Chen)++ (committed using GitHub Web editor) | doc/Type/Telemetry.pod6
15:06 Geth ¦ doc/patch-01: Update Telemetry.pod6
15:06 Geth ¦ doc/patch-01: review: https://github.com/perl6/doc/commit/8e7a9c4c35
15:07 dakkar jnthn: ooh. that sounds completely differet to anything I was thinking ☺ I'll study the HTTP2 code and ask again when I get confused. thanks!
15:07 jnthn dakkar: The plan is to wrap that bit of plumbing up into something a bit more high-level, to save people having to wire it up every time.
15:07 pilne joined #perl6
15:07 jnthn ConnectionState is the thing to grep for
15:07 dakkar thanks!
15:08 dakkar census: keep in mind that I actually know quite little about perl6, I'm still learning the basics! (mostly by finding bugs in libraries and sending patches, apparently)
15:09 census dakkar i completely understand. if you have any feedback about why my code might not be working, i'd be extremely grateful
15:09 Geth ¦ doc/patch-01: f506f57184 | (Alex Chen)++ (committed using GitHub Web editor) | doc/Type/Telemetry/Period.pod6
15:09 Geth ¦ doc/patch-01: Update Period.pod6
15:09 Geth ¦ doc/patch-01: review: https://github.com/perl6/doc/commit/f506f57184
15:09 jnthn On auth stuff in general, my thinking is to add something to the request object that carries an "identity", and also provide access to it in the route signature
15:09 dakkar I'm not ever sure what you expect it to do…
15:10 Cabanossi joined #perl6
15:11 dakkar jnthn: oh, so I could do «get -> 'something', :$user is identity { ... }»
15:11 jnthn So if it was a JWT with a bunch of permissions, one could write Admin :$user is identity, having declared subset Admin where *.perms.any eq 'admin'
15:11 dakkar clever!
15:13 blakebooyah joined #perl6
15:13 dakkar oh, another detail I'm not sure about: if I have multiple routes that could match a request, which one is picked? narrower, first, last?
15:13 dakkar random? ☺
15:13 jnthn No, the rules are actually quite Perl 6-y :)
15:14 jnthn See near the end of the http://cro.services/docs/reference/cro-http-router#URI_segment_matching docs
15:14 Geth ¦ doc: b3bf11df35 | (Alex Chen)++ (committed using GitHub Web editor) | doc/Type/Any.pod6
15:14 Geth ¦ doc: Avoid warning "Are you sure that routine is ..."
15:14 Geth ¦ doc: review: https://github.com/perl6/doc/commit/b3bf11df35
15:14 synopsebot Link: https://doc.perl6.org/type/Any
15:16 jnthn The rules are inspired by Perl 6's LTM semantics (the longest literal part) and multi-dispatch semantics (the other parts)
15:17 jnthn The first bit being handy because it means we can compile the route table into regex and then let Perl 6 build an NFA to do the route matching for us
15:17 dakkar I should actually read the docs, you know. I was going to reverse-engineer the matcher compiler to figure out the logic ☺
15:18 dakkar (or maybe I could have looked at the tests)
15:18 jnthn That may be more fun ;)
15:20 committable6 joined #perl6
15:21 * jnthn away for a bit
15:27 travis-ci joined #perl6
15:27 travis-ci Doc build failed. Alex Chen 'Update Telemetry.pod6'
15:27 travis-ci https://travis-ci.org/perl6/doc/builds/297575856 https://github.com/perl6/doc/compare/d1d106182f46...8e7a9c4c35c8
15:27 travis-ci left #perl6
15:27 buggable [travis build above] ☠ Did not recognize some failures. Check results manually.
15:32 steeznson joined #perl6
15:32 vike joined #perl6
15:33 travis-ci joined #perl6
15:33 travis-ci Doc build failed. Alex Chen 'Update Period.pod6'
15:33 travis-ci https://travis-ci.org/perl6/doc/builds/297576831 https://github.com/perl6/doc/compare/8e7a9c4c35c8...f506f571847d
15:33 travis-ci left #perl6
15:33 buggable [travis build above] ☠ Did not recognize some failures. Check results manually.
15:38 ryn1x joined #perl6
15:39 llfourn joined #perl6
15:41 Sgeo joined #perl6
15:53 Geth ¦ doc/patch-01: 04323ade88 | (Alex Chen)++ (committed using GitHub Web editor) | doc/Type/Telemetry.pod6
15:53 Geth ¦ doc/patch-01: Update Telemetry.pod6
15:53 Geth ¦ doc/patch-01: review: https://github.com/perl6/doc/commit/04323ade88
15:53 Geth ¦ doc/patch-01: f1613a01cd | (Alex Chen)++ (committed using GitHub Web editor) | doc/Type/Telemetry/Period.pod6
15:53 Geth ¦ doc/patch-01: Update Period.pod6
15:54 Geth ¦ doc/patch-01: review: https://github.com/perl6/doc/commit/f1613a01cd
15:59 colomon joined #perl6
16:02 vike joined #perl6
16:03 ryn1x joined #perl6
16:08 darkmorph joined #perl6
16:12 Mrofnet joined #perl6
16:14 travis-ci joined #perl6
16:14 travis-ci Doc build passed. Alex Chen 'Update Telemetry.pod6'
16:14 travis-ci https://travis-ci.org/perl6/doc/builds/297590740 https://github.com/perl6/doc/compare/f506f571847d...04323ade8832
16:14 travis-ci left #perl6
16:15 Geth ¦ doc: 525e984015 | (Jeremy Studer)++ | doc/Language/modules.pod6
16:15 Geth ¦ doc: Modified module examples to work as indicated
16:15 Geth ¦ doc:
16:15 Geth ¦ doc: In the MyModule example, the stubbed class and sub caused an error when
16:15 Geth ¦ doc: called.
16:15 synopsebot Link: https://doc.perl6.org/language/modules
16:15 Geth ¦ doc:
16:15 Geth ¦ doc: Modified the MakeQuestionable example to match the output text (used
16:15 Geth ¦ doc: join on list to provide the spaces).
16:15 Geth ¦ doc: review: https://github.com/perl6/doc/commit/525e984015
16:17 telex joined #perl6
16:26 cdg joined #perl6
16:26 f0x how can I restrict an object to be either 1, 2, 3 or 4?
16:28 sena_kun m: subset B where * == 1|2|3|4; my B $b = 3; say $b++; say $b++;
16:28 camelia rakudo-moar 1c387153e: OUTPUT: «3␤Type check failed in assignment to $b; expected B but got Int (5)␤  in block <unit> at <tmp> line 1␤␤»
16:28 moritz m: subset one-to-four of Int where 1..4; say 1 ~~ one-to-four; say 5 ~~ one-to-four
16:28 camelia rakudo-moar 1c387153e: OUTPUT: «True␤False␤»
16:30 mson joined #perl6
16:36 avalenn joined #perl6
16:39 AlexDaniel m: subset C where 1 ≤ * ≤ 4; my B $b = 3.5; say $b
16:39 camelia rakudo-moar 1c387153e: OUTPUT: «5===SORRY!5===␤Type 'B' is not declared␤at <tmp>:1␤------> 3subset C where 1 ≤ * ≤ 4; my B7⏏5 $b = 3.5; say $b␤Malformed my␤at <tmp>:1␤------> 3subset C where 1 ≤ * ≤ 4; my7⏏5 B $b = 3.5; say $b␤␤»
16:39 AlexDaniel m: subset C where 1 ≤ * ≤ 4; my C $b = 3.5; say $b
16:39 camelia rakudo-moar 1c387153e: OUTPUT: «3.5␤»
16:40 comborico1611 joined #perl6
16:41 cdg joined #perl6
16:45 troys joined #perl6
16:58 Merfont joined #perl6
17:00 Geth ¦ doc/patch-01: 2d03ca4c6a | (Alex Chen)++ (committed using GitHub Web editor) | doc/Type/Telemetry/Period.pod6
17:00 Geth ¦ doc/patch-01: Update Period.pod6
17:00 Geth ¦ doc/patch-01: review: https://github.com/perl6/doc/commit/2d03ca4c6a
17:03 comborico1611 Is the rule that semicolon is added to the end of a code block brace, is that a recent development?
17:07 Piotr joined #perl6
17:08 colomon joined #perl6
17:10 Cabanossi joined #perl6
17:10 Geth ¦ doc/patch-01: b425c3b72f | (Alex Chen)++ (committed using GitHub Web editor) | doc/Type/Telemetry/Period.pod6
17:10 Geth ¦ doc/patch-01: Update Period.pod6
17:10 Geth ¦ doc/patch-01: review: https://github.com/perl6/doc/commit/b425c3b72f
17:12 moritz comborico1611: you need to separate statements with a semicolon, a statement ends with }\n
17:13 comborico1611 Are you saying a statement can end with either a semicolon, brace, or new line?
17:14 moritz no
17:14 comborico1611 The author has yet to use };
17:14 moritz I'm saying that you need to separate statements with a semicolon, which means the semicolon after the last statement in a block or a file is optional
17:15 moritz and you don't need one if the previous statement ended with a } *and* there is a newline after it
17:15 comborico1611 Yeah when I enter his code into this terminal thing, it errors unless I put };
17:15 moritz m: sub f() { 1 } sub g() { }
17:15 camelia rakudo-moar 1c387153e: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Strange text after block (missing semicolon or comma?)␤at <tmp>:1␤------> 3sub f() { 1 }7⏏5 sub g() { }␤    expecting any of:␤        infix␤        infix stopper␤        statement end…»
17:15 moritz here there is no newline after the }
17:16 moritz so you need a semicolon
17:16 moritz m: sub f() { 1 }; sub g() { }
17:16 camelia rakudo-moar 1c387153e: ( no output )
17:16 moritz or a newline:
17:16 moritz m: sub f() { 1 }␤ sub g() { }
17:16 camelia rakudo-moar 1c387153e: ( no output )
17:16 nadim joined #perl6
17:16 moritz (camelia translates ␤ into actual newlines on input, and vice versa on output)
17:17 comborico1611 OHH!
17:17 comborico1611 The issue is because I'm entering this code on my phone, and I'm not indenting anything.
17:22 comborico1611 You get me?
17:25 comborico1611 So the indent feature is very similar to pythons indent feature, where you don't need a semicolon.
17:26 ryn1x joined #perl6
17:26 dakkar uh… there's no "indent feature"
17:26 dakkar just "close-brace + newline, terminates the statement"
17:26 dakkar that's all there is
17:27 comborico1611 If you enter code all in one line, you must use close brace semicolon. But if you and dents you don't need to put the semicolon after every code block (except the last one).
17:27 moritz it's the newline that's important, not the indention
17:28 comborico1611 I see.
17:32 stmuk_ joined #perl6
17:38 Geth ¦ doc: a95469a30d | (Alex Chen)++ (committed using GitHub Web editor) | htmlify.p6
17:38 Geth ¦ doc: Update htmlify.p6
17:38 Geth ¦ doc:
17:38 Geth ¦ doc: Enable generate "Routines supplied by class $class"
17:38 Geth ¦ doc:
17:38 Geth ¦ doc: My last commit's fault
17:38 Geth ¦ doc: review: https://github.com/perl6/doc/commit/a95469a30d
17:39 cdg joined #perl6
17:40 gfldex lolibloggedalittle: https://gfldex.wordpress.com/2017/11/05/racing-rakudo/
17:41 timotimo gfldex: is "stay tuning" a pun or typo?
17:42 gfldex all my typos are puntastic!
17:42 lizmat gfldex++  # I'm tempted to just import your httpd code into Telemetry
17:42 gfldex was meant as a pun tho
17:43 gfldex lizmat: it needs a little more error handling first
17:43 timotimo OK
17:43 lizmat gfldex: ok, well I have another idea to play with
17:44 lizmat basically Telemetry atm is two sets of Telemetry data: from nqp::rusage, and from ThreadPoolScheduler
17:44 lizmat I was thinking of abstracting these into an Telemetry::Instrument::Rusage and a Telemetry::Instrument::ThreadPool
17:45 lizmat and creating a Telemetry::Instrument role with which you could create your own "instruments"
17:46 jdv79 what's the simplest way to handle daylight savings in p6
17:47 lizmat jdv79: standard p6 is timezone agnostic afaik, so there is no handling ?
17:47 jdv79 i realize that.  hence my question.
17:49 lizmat http://modules.perl6.org/dist/DateTime::TimeZone:github:Timothy%20Totten ??
17:50 jdv79 i guess
17:51 dakkar dst is part of timezone info, which is a mess because humans
17:53 dakkar oh, that library looks a bit misguided…
17:55 dakkar (a tz is a pair of functions between a human-readable representation of a point in time, and the actual point in time)
17:59 jdv79 m: DateTime.now.earlier(days => 1).truncated-to('day');
17:59 camelia rakudo-moar 77142fdb2: ( no output )
17:59 jdv79 m: DateTime.now.earlier(days => 1).truncated-to('day').day;
17:59 camelia rakudo-moar 77142fdb2: ( no output )
17:59 jdv79 m: DateTime.now.earlier(days => 1).truncated-to('day').say;
17:59 camelia rakudo-moar 77142fdb2: OUTPUT: «2017-11-04T00:00:00+01:00␤»
17:59 jdv79 well for me that's confusing because the TZ offset of y'day is -5 accoring to perl6 but it was actually 4
17:59 jdv79 -4
18:00 jdv79 i'm in ET
18:01 jdv79 in other words, DateTime allows for non-instanct manipulation but fouls the TZ
18:02 setty1 joined #perl6
18:03 dakkar jdv79: DateTime seems to have no idea what a timezone is
18:03 dakkar it seems to only know offsets
18:03 dakkar (which are almost always the wrong thing to care about)
18:03 dakkar «Int :$timezone» aaargh
18:04 dakkar I suspect that the DateTime class is a bit sub-optimal at date/time math
18:04 timotimo dakkar: in minutes
18:04 dakkar no
18:04 timotimo oh
18:04 dakkar a timezone is not an offset
18:04 dakkar a timezone is a pair of functions, DateTime --> Int
18:04 jdv79 its still troublesome that the class offers higher level manip but doesn't carry the offset through them
18:04 dakkar argh, sorry, not that signature
18:04 jdv79 i find it confusing
18:05 dakkar a timezone is a pair of functions to convert between point-in-time, and human-readable representations of points-in-time
18:05 dakkar so maybe DateTime --> Instant, and Instant --> DateTime
18:06 dakkar e.g. timezone "Europe/Rome" converts posix-epoch+1509905188seconds into "Sun Nov  5 19:06:28 CET 2017"
18:07 dakkar or something like that
18:07 dakkar an offset is part of that conversion
18:08 dakkar or maybe it's just the result of diffing two human representations of the same instant, using different tz
18:08 dakkar (why am I trying to channel Zefram??)
18:10 Cabanossi joined #perl6
18:12 Zoffix joined #perl6
18:12 Zoffix Wassup dudes, duddettes, and roboduds?
18:12 Zoffix huggable: advent
18:12 huggable Zoffix, Sign up to write an Advent blog post: https://github.com/perl6/mu/blob/master/misc/perl6advent-2017/schedule
18:13 Zoffix Signup to write an Advent Post! \o/ Lots of spaces left so don't be shy
18:14 Khisanth joined #perl6
18:15 holyghost joined #perl6
18:15 comborico1611 Hello.
18:16 AlexDaniel o/
18:16 Zoffix \o
18:17 census hi Zoffix !
18:17 Zoffix hello
18:18 HoboWithAShotgun joined #perl6
18:21 AlexDaniel .oO( Seqs, Drugs and pick'n'roll )
18:25 holyghost joined #perl6
18:25 * Zoffix regrets not comming up with that...
18:25 comborico1611 My @evens = map { $ * 2 }, 1..5; say @evens;
18:26 comborico1611 m: my @evens = map { $ * 2 }, 1..5; say @evens;
18:26 camelia rakudo-moar 77142fdb2: OUTPUT: «Use of uninitialized value of type Any in numeric context␤[0 0 0 0 0]␤  in block  at <tmp> line 1␤Use of uninitialized value of type Any in numeric context␤  in block  at <tmp> line 1␤Use of uninitialized value of type Any in numeric context…»
18:26 Zoffix comborico1611: it's $_ not $
18:27 comborico1611 m: my @evens = map { $_ * 2 }, 1..5; say @evens;
18:27 camelia rakudo-moar 77142fdb2: OUTPUT: «[2 4 6 8 10]␤»
18:27 comborico1611 Ty
18:27 comborico1611 m: my @evens = map { * 2 }, 1..5; say @evens;
18:27 camelia rakudo-moar 77142fdb2: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Two terms in a row␤at <tmp>:1␤------> 3my @evens = map { *7⏏5 2 }, 1..5; say @evens;␤    expecting any of:␤        infix␤        infix stopper␤        statement end␤        statement…»
18:27 Zoffix m: my @evens = map * × 2, 1..5; say @evens
18:27 camelia rakudo-moar 77142fdb2: OUTPUT: «[2 4 6 8 10]␤»
18:27 comborico1611 Ty
18:28 comborico1611 Why does it matter not including braces?
18:29 Zoffix comborico1611: first, your last version is missing a term for the LHS of the `*` operator. Second, if you added that you'd have a block WITH a WhateverCode inside (and it either errors out or warns). Without braces it's just a WhateverCode, which is used instead of a Block as a Callable object given to `map` to map with
18:29 comborico1611 I mean, what changed?
18:29 comborico1611 LHS?
18:30 Zoffix Left Hand Side
18:30 Zoffix LHS (some operator) RHS
18:30 comborico1611 Oh!
18:30 Zoffix You *can* see × in my version right? It's the Unicode version of the multiplcation operator. The code would be looking very confusing on your side if it's not renderring for you
18:31 comborico1611 Yes, i 3
18:31 comborico1611 See it
18:31 Zoffix m: my @evens = map * * 2, 1..5; say @evens # can write this too. The first `*` is a term because there the language expects a term, so here it means "make WhateverCode" and second one is an operator because the language expects a term to be followed by an op, so there it's just a multiplication
18:31 camelia rakudo-moar 77142fdb2: OUTPUT: «[2 4 6 8 10]␤»
18:32 Zoffix m: (* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *)(|(1..20)).say
18:32 camelia rakudo-moar 77142fdb2: OUTPUT: «2432902008176640000␤»
18:32 Zoffix ^_^
18:32 comborico1611 Crazy.
18:32 HoboWithAShotgun oh boy, i just ate half a ananas.
18:33 Zoffix Doesn't sound like a lot :)
18:33 comborico1611 Thank you.
18:33 HoboWithAShotgun i never heard noises like this
18:34 ryn1x joined #perl6
18:36 MadHatter42 joined #perl6
18:36 MadHatter42 hi anyone
18:36 Zoffix \o
18:36 AlexDaniel o/
18:37 HoboWithAShotgun anyone?
18:37 MadHatter42 can anyone help me with ping in perl 6
18:37 MadHatter42 couldnt find much resources
18:37 MadHatter42 HoboWithAShotgun: that was a terrible movie xD
18:38 * HoboWithAShotgun is confused. what movie?
18:38 * AlexDaniel looks for Vasili
18:38 Zoffix Sneak-peek at one of the spreads in the upcoming redesign of our marketing brochure: https://twitter.com/zoffix/status/927189904257437696
18:38 * Zoffix vanishes into the shadows
18:38 Zoffix left #perl6
18:39 MadHatter42 HoboWithAShotgun: there is a movie called Hobo With A Shotgun
18:39 AlexDaniel (another relevant movie: https://www.youtube.com/watch?v=jr0JaXfKj68 )
18:39 MadHatter42 can anyone help me with that ping thing ?
18:40 HoboWithAShotgun heh, didn't know that
18:40 comborico1611 Nice photo! I wonder which one is you.
18:41 MadHatter42 anyone? :/
18:42 AlexDaniel MadHatter42: sure, but I don't fully understand… what are you trying to do?
18:42 MadHatter42 i want to use the equivalent of Net::Ping in perl 6
18:46 MadHatter42 if there is one
18:46 dakkar_ joined #perl6
18:46 AlexDaniel MadHatter42: I don't see an equivalent perl 6 module, but what about this:
18:47 Geth ¦ doc/patch-01: c87b2a7856 | (Alex Chen)++ (committed using GitHub Web editor) | doc/Type/Telemetry/Period.pod6
18:47 Geth ¦ doc/patch-01: Update Period.pod6
18:47 Geth ¦ doc/patch-01: review: https://github.com/perl6/doc/commit/c87b2a7856
18:47 AlexDaniel MadHatter42: use Net::Ping:from<Perl5>; my $p = Net::Ping.new(); my $host = ‘google.com’; print "$host is alive.\n" if $p.ping($host);'
18:47 MadHatter42 AlexDaniel: thank you for the reference but I have a fully working perl 5 code, just thought to gradually shift to the new stuff
18:48 AlexDaniel MadHatter42: I mean, that code sample is basically using a perl 5 module
18:48 AlexDaniel MadHatter42: which you can do if you have Inline::Perl5 installed
18:48 MadHatter42 yeah i know
18:49 MadHatter42 now i'm curious why didnt they ported that module to perl 6
18:49 MadHatter42 maybe perl 6 its not being used for sysadmin stuff anymore :/
18:49 AlexDaniel huggable: most wanted
18:49 huggable AlexDaniel, https://github.com/perl6/perl6-most-wanted/blob/master/most-wanted/modules.md
18:49 AlexDaniel MadHatter42: I think it's listed as “Ping” in https://github.com/perl6/perl6-most-wanted/blob/master/most-wanted/modules.md#networking
18:58 Geth ¦ doc: jstuder-gh++ created pull request #1661: Add vim modeline at end of every file without one
18:58 Geth ¦ doc: review: https://github.com/perl6/doc/pull/1661
19:07 colomon_ joined #perl6
19:11 ugexe if you didnt use perl5 it would not be a gradual shift
19:12 mr-foobar joined #perl6
19:14 AlexDaniel MadHatter42: 「run ‘ping’, …」 is not an option, right? :)
19:15 AlexDaniel MadHatter42: but yeah, it would be great if somebody created a Ping module…
19:15 MadHatter42 AlexDaniel: thanks man
19:15 MadHatter42 but again, i already have something working on perl 5 and its properly written
19:15 MadHatter42 just wanted something to learn perl 6 with
19:15 MadHatter42 and usually i go with small monitoring / microservice tasks
19:18 lizmat MadHatter42: have you looked at cro ?
19:19 lizmat http://mi.cro.services ?
19:19 MadHatter42 lizmat: checking
19:20 MadHatter42 lizmat: looks nice
19:20 MadHatter42 i mostly use message hub as an architecture, trying to stay away from rest but this looks nice
19:21 MadHatter42 lizmat: but again, if basic tools like ping are missing i'm sticking wiht perl 5 a bit more :/
19:24 timotimo surely it'd be simple to implement with NativeCall ...
19:26 timotimo though i'm not sure why you'd not just call ping instead
19:27 timotimo alternatively use Net::Ping:from<Perl5>
19:31 comborico1611 m: my @letters = 'a'..'c'; for @letters.kv { say "$^a -> $^b" ; }
19:31 camelia rakudo-moar 77142fdb2: OUTPUT: «0 -> a␤1 -> b␤2 -> c␤»
19:31 Geth ¦ doc: dbce28f261 | (Alex Chen)++ (committed using GitHub Web editor) | doc/Language/phasers.pod6
19:31 Geth ¦ doc: Misuse X<>
19:31 Geth ¦ doc:
19:31 Geth ¦ doc: Avoid "found duplicate index entry Phasers at #i442 #i443 #i444 #i445 #i446 #i447 #i448 #i449 #i450 #i451 #i452 #i453 #i454 #i455 #i456 #i457 #i458 #i459 #i460"
19:31 Geth ¦ doc: review: https://github.com/perl6/doc/commit/dbce28f261
19:31 synopsebot Link: https://doc.perl6.org/language/phasers
19:32 comborico1611 m: my @letters = 'a'..'c'; for @letters.k { say "$^a" ; }
19:32 camelia rakudo-moar 77142fdb2: OUTPUT: «No such method 'k' for invocant of type 'Array'. Did you mean 'kv'?␤  in block <unit> at <tmp> line 1␤␤»
19:32 evalable6 joined #perl6
19:32 ryn1x joined #perl6
19:33 comborico1611 m: my @letters = 'a'..'c'; for keys @letters { say "$^a" ; }
19:33 camelia rakudo-moar 77142fdb2: OUTPUT: «0␤1␤2␤»
19:34 comborico1611 m: my @letters = 'a'..'c'; for keys @letters { say $_ ; }
19:34 camelia rakudo-moar 77142fdb2: OUTPUT: «0␤1␤2␤»
19:35 comborico1611 What is an anonymous block?
19:36 comborico1611 Same as anonymous routine?
19:37 lizmat but even less than that
19:38 lizmat you cannot return from a block
19:38 lizmat you *can* from a routine
19:38 lizmat a "return" in a block will try to find the first outer sub and return from that
19:38 comborico1611 Why are they used?
19:39 cdg joined #perl6
19:41 mr-foobar joined #perl6
19:44 comborico1611 *Agent Smith voice -- Mr. Foobar
19:44 lizmat comborico1611: every time you use an "if" or a "for" you are using an anonymous block
19:45 lizmat if $foo { this is an anonymous block }
19:45 comborico1611 Ahh! Thank you.
19:45 lizmat m: if 42 { say $^a }
19:45 camelia rakudo-moar 77142fdb2: OUTPUT: «42␤»
19:46 lizmat mind you, that case doesn't set $_ by default, but it could it you want to
19:46 lizmat m: if 42 -> $_ { say $_ }
19:46 camelia rakudo-moar 77142fdb2: OUTPUT: «42␤»
19:49 BenGoldberg joined #perl6
19:49 comborico1611 I see! Thank you!
19:50 Geth ¦ doc/patch-01: f39b63efd4 | (Alex Chen)++ (committed using GitHub Web editor) | doc/Type/Telemetry.pod6
19:50 Geth ¦ doc/patch-01: Update Telemetry.pod6
19:50 Geth ¦ doc/patch-01: review: https://github.com/perl6/doc/commit/f39b63efd4
19:54 perllover can anybody please look at some perl6 code i'm struggling with?
19:57 llfourn_ joined #perl6
19:57 leedo__ joined #perl6
19:57 El_Che_ joined #perl6
20:00 hobbified joined #perl6
20:00 gabiruh_ joined #perl6
20:00 plicease_ joined #perl6
20:02 hoelzro_ joined #perl6
20:02 [Coke]_ joined #perl6
20:05 reu_ joined #perl6
20:11 evalable6_ joined #perl6
20:11 nativecallable6_ joined #perl6
20:11 bloatable6_ joined #perl6
20:11 committable6_ joined #perl6
20:15 Gothmog__ joined #perl6
20:15 AlexDaniel perllover: sure
20:15 AlexDaniel perllover: where's the code?
20:15 geekosaur joined #perl6
20:15 census AlexDaniel https://pastebin.com/0ag98rjX
20:18 mr-foobar joined #perl6
20:21 obfusk joined #perl6
20:21 comborico1611 What is grep short for?
20:22 mst somebody needs to make it so that if the internal detection fails the whatever star in sequences can fall back to querying https://oeis.org/
20:22 AlexDaniel perllover: sorry, got distracted for a bit. So what's the issue exactly?
20:22 AlexDaniel perllover: trying to run the code right now
20:22 mst comborico1611: it isn't, it's from the fact that in ed, to print out all matches from a file for a given regexp, you type :g/re/p
20:22 mst comborico1611: 'g' being global, 'p' being print, and 're' being a placeholder for whatever regexp you use
20:22 AlexDaniel there was an attempt to rename it to “filter” I think
20:23 AlexDaniel didn't make it
20:23 comborico1611 lol
20:23 mst comborico1611: so the command line tool to do it got called grep
20:23 mst comborico1611: so languages with unix origins tend to call it that
20:23 mst AlexDaniel: I am exceedingly glad that ES6 imports let me rename things so I can rename 'filter' back to 'grep'
20:24 comborico1611 It should be spelled a little wonky, in my opinion.  gREp or something.
20:24 comborico1611 grep is fine.
20:24 AlexDaniel well, I wonder why the attempt was to rename it and not create an alias
20:24 comborico1611 Thanks!
20:24 mst you're welcome to go back to the early 1970s when the name was coined and make that argument
20:24 AlexDaniel if my memory serves me right
20:25 comborico1611 Heh.
20:25 mst personally I like it lower case :)
20:25 comborico1611 Yeah, i changed my mind.
20:28 AlexDaniel perllover: I get results3.txt file and “Cancer,2001,3” in it, what's the intended behavior?
20:28 Geth ¦ doc/patch-01: bd9ffc11c4 | (Alex Chen)++ (committed using GitHub Web editor) | doc/Type/Telemetry.pod6
20:28 Geth ¦ doc/patch-01: Update Telemetry.pod6
20:28 Geth ¦ doc/patch-01: review: https://github.com/perl6/doc/commit/bd9ffc11c4
20:29 ChoHag joined #perl6
20:30 comborico1611 What is the best computer programmer movie?
20:31 benchable6 joined #perl6
20:31 bisectable6 joined #perl6
20:31 quotable6 joined #perl6
20:31 coverable6 joined #perl6
20:31 releasable6 joined #perl6
20:31 unicodable6 joined #perl6
20:31 statisfiable6 joined #perl6
20:33 ryn1x joined #perl6
20:37 perllover AlexDaniel that's what I'm hoping for.
20:37 perllover However, I'm getting an error
20:37 perllover https://pastebin.com/Sc8yFRS1
20:39 AlexDaniel interesting
20:39 AlexDaniel perllover: what's your rakudo version?
20:39 obfusk joined #perl6
20:40 perllover AlexDaniel   i don't know. how can i find out? probably something basic though
20:40 AlexDaniel perl6 -v
20:40 AlexDaniel or perl6 --version :)
20:41 perllover AlexDaniel It says: "This is Rakudo version 2017.07 built on MoarVM version 2017.07 implementing Perl 6.c."
20:41 Cabanossi joined #perl6
20:41 AlexDaniel that's pretty good
20:41 AlexDaniel hmmmm… could it be ipv4/ipv6 issue?
20:42 perllover what do you mean exactly?
20:42 perllover is there something i can install? or a problem with a library i'm using
20:42 AlexDaniel I'm just thinking out loud. There are these tickets RT#131553 RT#123282
20:43 synopsebot RT#131553 [new]: https://rt.perl.org/Ticket/Display.html?id=131553 IO::Socket::INET mishandles IPv6
20:43 synopsebot RT#123282 [new]: https://rt.perl.org/Ticket/Display.html?id=123282 [IO] IO::Socket::INET fails to connect if a resource is available over IPv6 and the client is misconfigured to use IPv6
20:43 mr-foobar joined #perl6
20:43 perllover so is there something i can do to try and improve my access to IPv6 and IO::Socket::INET ?
20:44 AlexDaniel perllover: do I get it right that this is enough to reproduce the issue: use WWW; say get "https://patents.google.com/?q=Cancer&amp;country=US&amp;before=20011231&amp;after=20010101";
20:46 AlexDaniel and if so, what if you try some other url?
20:46 perllover AlexDaniel  yes. although the url isn't completely correct but close enough
20:46 perllover i either want to take down the number on the top or the .csv
20:46 perllover AlexDaniel I'm able to get to url's in general
20:47 AlexDaniel except the one you actually need, right?
20:47 perllover AlexDaniel yes at least that one i'm unable to
20:48 perllover ultimately i'm looking to loop over url's to google-patents, which is why i want to create a .pl6 script
20:49 El_Che_ didn't we agree on the .p6 extension? :)
20:49 AlexDaniel perllover: well, if I were you I'd file a ticket for WWW module: https://github.com/zoffixznet/perl6-WWW/issues
20:50 AlexDaniel perllover: maybe with a list of urls you can fetch and the list with urls you can't
20:50 perllover AlexDaniel oy, i kinda need to have this solved now
20:50 perllover i'm up against a deadline
20:50 AlexDaniel perllover: what about run ‘curl’, … then? :)
20:50 perllover what do you mean by run curl?
20:51 perllover are you saying i can rewrite the program in a different way?
20:51 AlexDaniel ah, you're on windows, sorry
20:51 AlexDaniel perllover: what if you try to disable ipv6 on your system, and try again?
20:51 AlexDaniel and see if it works
20:51 perllover disable and then reenable it? what would that entail
20:52 AlexDaniel perllover: disable and see if it works, if it does you can get the job done and then reenable it again later. Something here maybe: https://support.microsoft.com/en-us/help/929852/how-to-disable-ipv6-or-its-components-in-windows
20:54 perllover AlexDaniel this sounds a bit intimidating
20:55 AlexDaniel perllover: that's all I've got unfortunately :) But it should be a one-click thingy, kind of
20:55 perllover AlexDaniel should i try another way to code it up to debug? you had a 'say' suggestion before
20:57 AlexDaniel perllover: yeah, if I got it right it's failing to fetch the page, so all the CSV stuff is unnecessary to reproduce the problem
20:57 AlexDaniel that's if I got it right
20:57 AlexDaniel you can try
21:08 darkmorph joined #perl6
21:12 ryn1x joined #perl6
21:14 mr-foobar joined #perl6
21:29 espadrine joined #perl6
21:31 HelpWithPerl joined #perl6
21:31 HelpWithPerl Hey guys
21:31 HelpWithPerl Why does my $Fibonacci := 0, 1, -> $a, $b { $a + $b } ... 5; produce 5 elements, but then my $Fibonacci := 0, 1, -> $a, $b { $a + $b } ... 6; produces over 20?
21:31 ryn1x joined #perl6
21:37 gfldex m: say (0, 1, -> $a, $b { $a + $b } ... ∞)[^10]
21:37 camelia rakudo-moar 77142fdb2: OUTPUT: «(0 1 1 2 3 5 8 13 21 34)␤»
21:37 gfldex HelpWithPerl: because 6 is not in that sequence
21:40 HelpWithPerl Oh, okay. I thought adding 6 would mean up to 6 terms
21:44 mr-foobar joined #perl6
21:48 ryn1x joined #perl6
21:50 bwisti joined #perl6
21:50 SmokeMachine joined #perl6
21:51 llfourn joined #perl6
21:51 ugexe joined #perl6
21:51 albongo joined #perl6
21:51 Altreus joined #perl6
21:51 pm51 joined #perl6
21:51 clkao joined #perl6
21:51 ilogger2 joined #perl6
21:51 pnu__ joined #perl6
21:51 iviv joined #perl6
21:51 olinkl joined #perl6
21:53 benchable6 joined #perl6
21:53 statisfiable6 joined #perl6
21:53 unicodable6 joined #perl6
21:53 bisectable6 joined #perl6
21:53 releasable6 joined #perl6
21:54 Morfent joined #perl6
21:58 HelpWithPerl Wow that timeout wave
21:58 tabv joined #perl6
22:09 Cabanossi joined #perl6
22:11 evalable6 joined #perl6
22:11 nativecallable6 joined #perl6
22:11 bloatable6 joined #perl6
22:15 HoboWithAShotgun can i create and export operators at runtime? I don't like the repetition in this class
22:15 HoboWithAShotgun https://hastebin.com/padeqopusi.pl
22:24 mienaikage joined #perl6
22:35 cdg joined #perl6
22:37 mattp_ joined #perl6
22:41 cdg joined #perl6
22:43 mr-foobar joined #perl6
22:44 mattp_ joined #perl6
22:49 stux|RC joined #perl6
23:02 mattp_ joined #perl6
23:02 unclechu joined #perl6
23:02 AlexDaniel` joined #perl6
23:02 tadzik joined #perl6
23:02 CIAvash[m] joined #perl6
23:02 M-Illandan joined #perl6
23:02 mack[m] joined #perl6
23:02 tyil[m] joined #perl6
23:02 wamba[m] joined #perl6
23:02 Matthew[m] joined #perl6
23:02 ilmari[m] joined #perl6
23:02 wictory[m] joined #perl6
23:02 Garland_g[m] joined #perl6
23:02 xui_nya[m] joined #perl6
23:23 evalable6 joined #perl6
23:25 Cabanossi joined #perl6
23:27 perllover AlexDaniel you still around?
23:27 AlexDaniel yeah
23:27 perllover sorry i took a much needed nap
23:27 AlexDaniel :)
23:27 Cabanossi joined #perl6
23:30 Cabanossi joined #perl6
23:31 mattp_ joined #perl6
23:42 * HoboWithAShotgun got this working ( https://hastebin.com/epaxaveraj.pl ) and finds a nap sounds like an excellent idea
23:43 mr-foobar joined #perl6
23:48 ugexe using double quotes inside an already similarly typed double quoted string?
23:48 ugexe didnt know that worked inside { }
23:49 AlexDaniel that's pretty common in bash too :)
23:52 HoboWithAShotgun one lightyear equals 3.7e17 inches.
23:53 HoboWithAShotgun that's a lot
23:53 HoboWithAShotgun :)
23:54 jnthn m: say (-42)."{"ad".subst(/"d"/, { "{$/.Str.pred.pred}s" })}"() # ouch :)
23:54 camelia rakudo-moar 77142fdb2: OUTPUT: «42␤»
23:56 HoboWithAShotgun jnthn is wielding black magic again.
23:57 HoboWithAShotgun m: say (-42)."abs"()
23:58 camelia rakudo-moar 77142fdb2: OUTPUT: «42␤»
23:58 HoboWithAShotgun haha
23:59 aindilis joined #perl6
23:59 aindilis joined #perl6
23:59 perllover AlexDaniel like this? https://pastebin.com/NgdQY7j9

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

Perl 6 | Reference Documentation | Rakudo