🦋 Welcome to Raku! raku.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: colabti.org/irclogger/irclogger_log/raku
Set by ChanServ on 14 October 2019.
00:03 pecastro left 00:06 ToddAndMargo left 00:19 holli__ left 00:43 wamba left 00:46 picmyk left 00:58 chacewells joined 00:59 aborazmeh joined, aborazmeh left, aborazmeh joined 01:00 konvertex left 01:04 cpan-raku left
moon-child say I wanted to make + act the same as «+». Is there a better way than making 3 different multimethods for (Iterable, Iterable), (Iterable, any), (any, Iterable)? 01:06
01:08 lichtkind left 01:11 lucasb left 01:25 cpan-raku joined, cpan-raku left, cpan-raku joined 01:26 Xliff left 01:35 chacewells left 01:59 kst joined 02:17 KindTwo joined 02:20 KindOne left 02:22 Cabanossi left 02:24 KindOne joined 02:25 KindTwo left 02:27 Cabanossi joined 02:41 hyperak joined 02:51 labster joined 02:52 labster left, zehc left, hyperak left 03:10 somethin joined 03:20 somethin left 03:31 mahafyi joined 03:36 aborazmeh left, aborazmeh joined, aborazmeh left, aborazmeh joined 03:53 brtastic joined
moon-child how do I define my own metaoperator? I can't find any docs (except for a 15-year-old mailing list post) 04:00
elcaro moon-child: I don't think it's supported... at least not currently 04:02
If I recall... I think I know this from a talk Larry gave at a Racket conf. The vid's on YouTube
pretty sure at the end, someone asks if one can define their own meta-operators, and Larry says something along the lines of "not yet" 04:03
moon-child elcaro: ok
shame. I was hoping it would be possible to implement (most of) apl inside raku
elcaro regarding your earlier question.. this works, though I dunno if it's the best way 04:18
04:38 Sgeo left 04:52 moon-child left 04:53 moon-child joined 04:57 Cabanossi left 04:58 Cabanossi joined 05:12 Sgeo joined 05:23 xinming left 05:25 stoned75 left, xinming joined 05:33 stoned75 joined 05:47 sauvin joined 05:54 mahafyi left 05:56 holli__ joined 06:32 stoned75 left 06:34 stoned75 joined 06:45 hacktor joined 06:53 aborazmeh left 06:54 _jrjsmrtn left, __jrjsmrtn__ joined 06:57 cpan-raku left 07:00 cpan-raku joined, cpan-raku left, cpan-raku joined, __jrjsmrtn__ is now known as _jrjsmrtn 07:01 _jrjsmrtn is now known as jrjsmrtn 07:08 stoned75 left 07:20 Sgeo left 07:28 holli__ left 07:34 skids left 07:40 JJMerelo joined 07:56 andrzejku left 08:35 rindolf joined 08:43 Sgeo joined 08:46 wamba joined 08:51 soursBot joined 08:53 poohman joined 08:54 andrzejku joined
Geth doc: 31d1ecb96a | (JJ Merelo)++ | doc/Language/containers.pod6
Link description to class #3443
linkable6 Link: docs.raku.org/language/containers
DOC#3443 [open]: github.com/Raku/doc/issues/3443 [docs] The description of Proxy is LTA
09:06 Manifest0 left 09:08 Manifest0 joined 09:18 andrzejku left, Sgeo left 09:20 konvertex joined 09:33 epony left 09:36 epony joined 09:42 ab5tract joined
ab5tract o/ 09:42
. o ( wouldn't it be nice if Proxy was a role rather than a class? ) 09:43
10:05 brtastic left
Geth doc: 711924fa28 | (JJ Merelo)++ | doc/Language/containers.pod6
Minor grammar adjustments #3443
linkable6 Link: docs.raku.org/language/containers
DOC#3443 [open]: github.com/Raku/doc/issues/3443 [docs] The description of Proxy is LTA
10:20 dora joined 10:21 soursBot left 10:22 soursBot joined, Manifest0 left, dora left 10:24 Manifest0 joined 10:26 aborazmeh joined, aborazmeh left, aborazmeh joined
ShimmerFairy I really wish the value of $?LINE wasn't decided in the Actions, not even macros are helping get the line at which a function call was done. 10:30
10:32 sena_kun joined 10:44 Manifest0 left 10:45 Manifest0 joined 10:53 pecastro joined 10:55 mahafyi joined
MasterDuke ShimmerFairy: maybe try turning on line coverage? 11:06
ShimmerFairy what's that? 11:07
11:07 mowcat joined
MasterDuke set MVM_COVERAGE_LOG=foo-%p.log (or %d maybe, it creates a per-pid file) 11:08
11:09 holli__ joined
MasterDuke you can also use MVM_COVERAGECONTROL=1 and then `nqp::coveragecontrol(1); nqp::coveragecontrol(0);` to start and stop it where you want in your code 11:10
11:29 NODE left
ShimmerFairy A quick glance at the output and it looks like it tells you where the callees are, not where the callers are. 11:31
11:31 Benett left
poohman hi 11:31
do we have a separate irc channel for comma ide? 11:32
MasterDuke is #comma a thing?
11:33 Benett joined
MasterDuke ShimmerFairy: modules.raku.org/dist/Trait::Traced:cpan:KAIEPI maybe? 11:34
11:34 sour joined, sour left
poohman not a lot of people at #comma - just one 11:34
MasterDuke well, sena_kun, jnthn, and timotimo can probably help, they're comma devs 11:35
sena_kun poohman, no specific channel, anything I can be helpful with?
poohman Just did a Comma update and have in Tools an option calle XML options 11:36
im working with XML libraries for the past few days
and the options there seem tailor made for what Im trying to do
but they are greyed out
sena_kun poohman, did it work before this release? 11:37
poohman I did not notice
just happened to notice it when I tried to check the Grammar Preview as it is in the same menu 11:38
sena_kun poohman, indeed, seeing them. Ok, I'll create a ticket to look into why they are not active, shouldn't be too hard to fix it next release. 11:41
poohman thanks 11:42
sena_kun poohman, ticket created, will work on it. Thanks for reporting!
11:47 NODE joined 11:50 soursBot left, JJMerelo left 12:00 mowcat left
tbrowder can comma be used to debug rakudo/rakudo/src/Perl6 code during a build? 12:06
ShimmerFairy Depends on how good it is at NQP (or grammars if that's all you need, since NQP and Raku grammars are pretty much the same), I'd imagine. 12:07
12:12 soursBot joined 12:20 chloekek_ joined 12:22 holli__ left
lucs Grammar with proto`s question: gist.github.com/lucs/b6b5e77126b89...bc02a2b498 12:22
ShimmerFairy lucs: the usual strategy, which you can find being done in Raku's grammar, is to bring that out into a separate rule, so things look like elem:sym<let> { <let> } ... ld { <let> <dig> } 12:27
12:27 Altai-man_ joined
ShimmerFairy Maybe <elem:sym<let>> could work, but I wouldn't count on it. 12:28
lucs ShimmerFairy: Trying... 12:29
12:30 sena_kun left
lucs ShimmerFairy: Interestingly, both approaches work. 12:34
ShimmerFairy I'd factor it out anyway, since needing the same regex in two places is usually a sign it should be put in a separate rule (like with regular code and functions) :) 12:35
lucs I'll have to see how I handle associated actions -- as you can guess, I golfed this down from some real code I'm trying to build. 12:36
cpan-raku New module released to CPAN! Set::Equality (0.0.1) by 03ELIZABETH 12:39
12:40 holli__ joined
lucs By the way, I'd say the regex was already factored outr; your first suggested approach factors out its name -- the second one lets me reuse the name, but yeah, it looks a bit heavy. 12:41
12:44 soar joined 12:45 Black_Ribbon left 12:46 fink92 joined
fink92 I find myself difficult to understand the code to sort an array by descending: my @x = {5,1,3,4,-9, 0}; 12:49
.sort: * < *
intuitively I assume it be sorting by ascending ... 12:50
12:51 fink92 left
ShimmerFairy m: my @x = 5,1,3,4,-9,0; say @x.sort; say @x.sort: * < * 12:52
camelia (-9 0 1 3 4 5)
(5 4 3 1 0 -9)
12:53 epony left
MasterDuke m: my @x = 5,1,3,4,-9,0; say @x.sort; say @x.sort: -* 12:55
camelia (-9 0 1 3 4 5)
(5 4 3 1 0 -9)
13:10 soursBot left 13:11 soursBot joined 13:12 aborazmeh left 13:17 soar left 13:32 epony joined 13:37 epony left 13:38 epony joined 13:41 NODE left 13:42 NODE joined 13:44 hacktor left
Geth doc: Michael-S++ created pull request #3445:
Add tuple section for Python to Raku page.
13:52 brtastic joined 13:55 soar joined 14:03 aborazmeh joined, aborazmeh left, aborazmeh joined 14:04 hacktor joined
Geth doc: Michael-S++ created pull request #3446:
Add section on tail call optimization/elimination.
14:15 soar left, lucasb joined 14:20 maggotbrain left 14:25 Xliff joined
Xliff How does one go looking into the main symbol table, again? 14:25
Particularly, I'd like to go through the entire table and pull out all of the CStructs. 14:26
14:28 sena_kun joined 14:30 Altai-man_ left
MasterDuke m: .say for ::.keys # something like this? 14:30
camelia $=finish
lizmat Xliff: since almost everything in Raku is lexical, what "main symbol table" are you thinking about
m: dd +CORE::.keys 14:31
camelia 688
Xliff MasterDuke: Thanks!
14:33 gdonald left
Xliff MasterDuke++, lizmat++! 14:36
14:39 soursBot left 14:53 soursBot joined 14:56 patrickb joined 14:59 mahafyi left 15:02 hacktor left 15:03 hacktor joined
tbrowder in 15:06
15:20 aborazmeh left 15:40 domidumont joined
Geth doc: aa58e749e7 | (Mike Swierczek)++ | doc/Language/py-nutshell.pod6
Add tuple section for Python to Raku page.

This is to help users coming from any language with Tuples find a page listing an equivalent Raku feature.
doc: 9e8e24d737 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | doc/Language/py-nutshell.pod6
Merge pull request #3445 from Michael-S/master

Add tuple section for Python to Raku page.
linkable6 Link: docs.raku.org/language/py-nutshell
15:41 finsternis left, telex left 15:45 JJMerelo joined 15:46 finsternis joined 15:47 telex joined
Geth doc: uzluisf++ created pull request #3447:
Clarify description of reduce sub/method for Any and List
doc: Michael-S++ created pull request #3448:
Attempt to add 'case statements' to indexing
16:27 Altai-man_ joined 16:28 domidumont left 16:30 sena_kun left 16:33 mowcat joined 16:34 poohman left 16:35 chloekek_ left 16:40 chloekek_ joined
Geth doc: fc7c71647c | (Mike Swierczek)++ | doc/Language/haskell-to-p6.pod6
Add section on tail call optimization/elimination.

Someone coming from Haskell, Common Lisp, and several other functional languages might want to know if Raku supports tail call optimization.
I can't find any recent detailed discussions on it, but my understanding is that it's not in the Raku language spec or in the Rakudo implementation.
linkable6 Link: docs.raku.org/language/haskell-to-p6
doc: c700b4c29b | (Mike Swierczek)++ | doc/Language/haskell-to-p6.pod6
Removed redundant headings.
doc: e187844423 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | doc/Language/haskell-to-p6.pod6
Merge pull request #3446 from Michael-S/no_tail_call_optimization_elimination

Add section on tail call optimization/elimination.
16:45 chloekek_ left 16:54 poohman joined
holli__ can i somehow hint to GENERATE-USAGE to exclude a main candidate from the description? 17:00
i have one multi in which i catch bad argzuments and i don't want that to appear in the USAGE 17:01
17:02 natrys joined 17:05 soursBot left 17:08 ctilmes joined
ctilmes holli___: is hidden-from-USAGE 17:09
17:16 ctilmes left, ctilmes joined
cpan-raku New module released to CPAN! FastCGI::NativeCall (0.0.7) by 03JSTOWE 17:17
17:20 ctilmes left 17:22 Sigyn left 17:23 chloekek_ joined 17:33 konvertex left 17:47 soursBot joined 17:55 zacts joined, zacts left 17:56 chloekek_ left 18:00 holli__ left 18:12 lichtkind joined, sno left 18:17 holli__ joined 18:23 chloekek_ joined 18:28 sena_kun joined 18:30 Altai-man_ left 18:36 mahafyi joined
mahafyi hello. i felt Raku community should have some successful application here -> www.mozilla.org/builders :) 18:37
cpan-raku New module released to CPAN! MongoDB ( by 03MARTIMM
18:37 sno joined 18:38 cpan-raku left 18:41 cpan-raku joined, cpan-raku left, cpan-raku joined 18:44 JJMerelo left 18:59 Sgeo joined 19:26 orinthe left 19:27 orinthe joined 19:28 vike1 left 19:33 orinthe left 19:34 orinthe joined, orinthe left 19:35 orinthe joined 19:36 vike1 joined, soursBot left
holli__ ctilmes: ty 19:42
tellable6 holli__, I'll pass your message to ctilmes
19:52 Black_Ribbon joined 19:55 sno left 19:59 natrys left 20:07 sno joined 20:27 Altai-man_ joined 20:28 ab5tract left 20:30 sena_kun left 20:33 stoned75 joined 20:36 rindolf left 20:42 brtastic left 20:54 patrickb left 20:58 patrickb joined 21:05 lichtkind left 21:06 lichtkind joined 21:36 patrickb left 21:37 guifa joined, patrickb joined, stoned75 left 21:41 guifa_ joined
guifa_ o/ 21:41
21:42 stoned75 joined 21:43 stoned75 left 21:49 stoned75 joined 22:09 mowcat left 22:21 chloekek_ left 22:23 eery left 22:28 sena_kun joined 22:30 Altai-man_ left 22:44 stoned75 left 22:50 wamba left 23:02 Kaiepi left 23:05 Kaiepi joined
holli__ m: class foo { method bar { 1 }; submethod TWEAK { next } }; say foo.new.bar for 1..3 23:06
camelia ( no output )
23:06 patrickz joined
holli__ that's kinda surprising 23:07
23:07 holli__ is now known as Doc_Holliwoold, Doc_Holliwoold is now known as Doc_Holliwood 23:10 patrickb left 23:11 sena_kun left 23:12 lichtkind left
lucs m: my %h = :42.23foo; print %h.perl; 23:22
camelia 5===SORRY!5=== Error while compiling <tmp>
Malformed radix number
at <tmp>:1
------> 3my %h = :427⏏5.23foo; print %h.perl;
expecting any of:
number in radix notation
lucs m: my %h = :42foo; print %h.perl;
camelia {:foo(42)}
lucs That's the craziest notation :)
23:35 patrickz left 23:45 lucasb left