[00:04] *** reportable6 left [00:05] *** reportable6 joined [00:10] *** m6502 joined [00:13] *** m6502 left [00:13] *** m6502 joined [00:15] *** tyil left [00:16] *** tyil joined [00:25] *** gugod left [00:26] *** corwin left [00:26] *** summerisle is now known as eof [00:27] *** [dpk] joined [00:28] *** jraspass left [00:28] *** dpk left [00:29] *** corwin joined [00:29] *** gugod joined [00:29] *** m6502 left [00:32] *** dogbert17 joined [00:35] *** moritz_ joined [00:35] *** dogbert12 left [00:36] *** moritz left [00:36] *** ugexe left [00:36] *** ugexe joined [00:36] *** pounce left [00:37] *** sjn left [00:37] *** leah2 left [00:37] *** jjatria left [00:37] *** sjn joined [00:37] *** pounce joined [00:38] *** leah2 joined [00:44] *** ggoebel_ joined [00:46] *** b2gills left [00:46] *** b2gills left [01:05] *** Sir_Ragna left [01:05] *** cog left [01:15] *** swaggboi joined [01:15] *** Sir_Ragna joined [01:15] *** cog joined [01:15] *** kornbluth.freenode.net sets mode: +vv Sir_Ragna cog [01:16] *** b2gills joined [01:17] *** b2gills joined [01:18] *** kvw_5 joined [01:19] *** |Sno| joined [01:21] *** [Sno] left [01:22] *** kvw_5_ left [01:43] *** kini left [01:44] *** kini joined [01:54] *** dogbert17 left [01:54] *** dogbert17 joined [01:58] *** dogbert17 left [02:00] *** dogbert17 joined [02:01] is there an 'apply' function? [02:07] what specifically do you want to do that isn't covered by .map or .reduce? [02:10] The only lisp I've used is Racket. Racket's `(apply + '(1 2 3))` can be expressed in Raku as `[+] (1, 2, 3)` or `(1, 2, 3).reduce(* + *)` [02:11] ... among other ways [02:13] I think the more natural dual is |. E.G. infix:<+>(|<1 2 3>) [02:14] in this case I have a sequence of functions that I want to apply to a single object. Not hard to express, but it would be nice to be able to say [&f, &g, &h...].map(&apply.assuming: *, $object) [02:16] are you opposed to: (&f, &g, &g).map(-> &func { func($object) }) [02:17] not opposed, certainly. I just think the first version is a bit prettier [02:18] Sometimes when I start raku for the first time in a while it can take upward of 20 seconds to become interactive, is there anything that might be causing that? [02:19] *** dac is now known as dcx [02:20] probably precompiling the standard library. That only happens for when I upgrade [02:20] Ah makes sense [02:41] It would be neat if there was just a small message saying that was happening, it's a little confusing [02:43] *** kini left [02:44] *** kini joined [03:19] *** linkable6 left [03:20] *** linkable6 joined [03:36] moon-child: if I understand correctly, you could also write (&f, &g, &h)».($object) [03:43] ooh, cool [03:43] thanks! [03:43] yw! [04:07] *** rbt left [04:07] *** rbt joined [04:18] Is there any way to inspect a package's outer symbol table? [04:18] e.g. [04:19] *** Xliff_ joined [04:19] *** Xliff left [04:19] class A { constant foo = 0; class B { constant bar = 1 } }; my \C := A::B; say B::.keys; [04:20] m: class A { constant foo = 0; class B { constant bar = 1 } }; my \C := A::B; say B::.keys; [04:20] rakudo-moar 1962e6744: OUTPUT: «===SORRY!=== Error while compiling ␤Undeclared name:␤ B used at line 1␤␤» [04:20] m: class A { constant foo = 0; class B { constant bar = 1 } }; my \C := A::B; say C::.keys; [04:20] rakudo-moar 1962e6744: OUTPUT: «(bar)␤» [04:20] so that gets me the keys inside of class B [04:21] how could I get the keys inside of A (that is, ), by using C? I figured C::OUTER::.keys would work but it doesn't [04:23] *** rbt left [04:23] *** rbt joined [04:23] *** rbt left [04:23] *** rbt joined [04:43] *** rbt left [04:43] *** rbt joined [04:54] *** guifa left [05:06] *** frost-lab joined [05:06] *** frost joined [05:09] *** wingfold_ joined [05:28] *** rbt left [05:29] *** rbt joined [05:44] *** rbt left [05:44] *** rbt joined [05:44] *** rbt left [05:44] *** rbt joined [05:56] *** swaggboi left [06:02] *** swaggboi joined [06:04] *** reportable6 left [06:06] *** reportable6 joined [06:15] *** Sgeo left [06:15] *** holyghost joined [06:15] *** Sgeo left [06:22] *** guifa joined [06:23] *** guifa left [06:40] *** dotdotdot left [06:41] *** xelxebar left [06:45] *** guifa joined [06:46] *** guifa left [06:51] *** dotdotdot joined [06:54] *** rbt left [06:54] *** rbt joined [07:00] *** abraxxa joined [07:05] *** domidumont joined [07:07] *** abraxxa left [07:07] *** pecastro joined [07:08] *** abraxxa joined [07:14] *** xelxebar joined [07:27] *** abraxxa left [07:27] *** guifa joined [07:28] *** guifa left [07:30] *** abraxxa joined [07:34] *** abraxxa left [07:35] *** abraxxa joined [07:43] *** [dpk] is now known as dpk [07:50] *** patrickb joined [07:53] *** Altreus_ left [07:53] *** Altreus joined [08:04] *** dakkar joined [08:05] *** rbt left [08:06] *** MasterDuke joined [08:10] *** rbt joined [08:12] *** patterner left [08:14] *** timeless joined [08:15] *** patterner joined [08:20] *** timeless left [08:21] *** patterner left [08:24] *** patrickb left [08:24] *** holyghost left [08:24] *** samebchase left [08:24] *** Ekho left [08:24] *** sivoais left [08:24] *** dcx left [08:24] *** vrurg left [08:24] *** broquaint left [08:24] *** moon-child left [08:24] *** SmokeMachine left [08:24] *** tbrowder left [08:24] *** SqrtNegInf left [08:25] *** timeless joined [08:25] *** patterner joined [08:26] *** rjeli joined [08:27] *** caasih joined [08:27] *** broquaint joined [08:27] *** holyghost joined [08:27] *** samebchase joined [08:27] *** Ekho joined [08:27] *** sivoais joined [08:27] *** dcx joined [08:27] *** vrurg joined [08:27] *** moon-child joined [08:27] *** SmokeMachine joined [08:27] *** tbrowder joined [08:27] *** SqrtNegInf joined [08:28] * lizmat: clickbaits https://rakudoweekly.blog/2021/05/24/2021-21-chattering/ [08:30] has there always been a hero image at the top? [08:30] hero image ? [08:31] like when you have one big image for its own merit [08:31] yes, every issue of the Rakudo Weekly News had one [08:31] literally only just realised :D [08:31] although that's probably exactly how it should be [08:32] ah, I guess then I failed this week ? :-) [08:32] Well I thought of that too [08:32] Maybe I'm just more on the ball today :D [08:33] all but 2 of them, come from my personal picture collection [08:33] ones you've taken, or ones you've collected? [08:34] ones Wendy or I have taken [08:34] *** holyghost left [08:35] nice :) [08:42] thank you for another weekly lizmat++ [08:58] *** jjatria joined [08:59] *** holyghost joined [09:00] fucking netsplits [09:00] just like in the old days [09:07] *** asymptotically joined [09:08] weekly: new rakudo-pkg 2021.05 [09:08] El_Che, Noted! (weekly) [09:11] *** childlikempress joined [09:12] *** moon-child left [09:12] *** childlikempress is now known as moon-child [09:13] *** samebchase1 joined [09:13] *** samebchase left [09:16] *** guifa joined [09:16] *** JRaspass_ joined [09:17] *** guifa left [09:17] *** MasterDuke55 is now known as MasterDuke [09:17] *** JRaspass_ is now known as JRaspass [09:21] lizmat: I've been looking at your irc log. thank you again for working on it. do you want issues filed wrt the front end, or should it be regarded as a placeholder until the back end is more settled? [09:25] *** jjatria left [09:25] *** JRaspass left [09:26] Has anyone else tried Joplin? I happen to be looking for a shared todo/notes app for the business [09:26] Small projects like the one on this weekly are good for word-of-mouth learning about other projects [09:27] *** jraspass joined [09:27] *** jjatria joined [09:27] *** JRaspass joined [09:28] for my notes & todo I use NextCloud, but that's a big PHP application suite (it replaced most of Google services for me, and it runs on my own server) [09:28] may not be appropriate for your use case [09:32] *** jraspass left [09:37] I think Opus uses NextCloud [09:37] I think there's also another thing with a similar name [09:37] That's gonna be useful in future when we don't want to rely on Google Drive for all our shared docs [09:37] OwnCloud, of which NextCloud is a fork? [09:38] ah that might be it [09:38] Didn't realise they were related! [09:38] one of them is good and works well - probably NextCloud [09:38] nextcloud works great for me and the missus [09:40] it's free software with commercial backing, so it will probably not die soon ☺ [09:40] (AGPL-3) [09:41] *** guifa joined [09:42] Altreus: I use markdown and git [09:43] *** guifa left [09:43] I started a NES Solstice game on http://github.com/theholyghost2/Solstice [09:43] just a side game project [09:44] El_Che: yeah, works for me but not for a business with other people in [09:44] still needs lots of work but there's some kind of a codebase [09:44] Especially ones who use email, and apps, and what have you [09:44] Altreus: ahm you're the social type :P [09:44] no I'm the CTO type, not the CEO type [09:46] *** Black_Ribbon left [09:47] *** guifa joined [09:48] *** guifa left [09:49] m: multi sub infix:<*> (Int() $a, Int() $b) is equiv(&infix:<+>) is assoc is default { say "A: $a / B: $b"; nqp::mul_I($a, $b, Int); }; say 1 + 2 * 3 + 4 * 5 + 6; [09:49] rakudo-moar 1962e6744: OUTPUT: «===SORRY!=== Error while compiling ␤Could not find nqp::mul_I, did you forget 'use nqp;' ?␤at :1␤------> A: $a / B: $b"; nqp::mul_I($a, $b, Int)⏏; }; say 1 + 2 * 3 + 4 * 5 + 6;␤» [09:49] m: use nqp; multi sub infix:<*> (Int() $a, Int() $b) is equiv(&infix:<+>) is assoc is default { say "A: $a / B: $b"; nqp::mul_I($a, $b, Int); }; say 1 + 2 * 3 + 4 * 5 + 6; [09:49] rakudo-moar 1962e6744: OUTPUT: «A: 2 / B: 3␤A: 4 / B: 5␤33␤» [09:49] I am trying to get * to act like + in terms of operator precedence. What am I doing wrong? [09:51] m: 4.^name [09:51] rakudo-moar 1962e6744: ( no output ) [09:51] m: say 4.^name [09:51] rakudo-moar 1962e6744: OUTPUT: «Int␤» [09:51] oh, it's not a type problem then [09:53] I'm not sure that adding another multi will work, there is already a candidate with Int args. you might have to change the precedence of the existing one [09:54] radiak: It's getting selected. See the output. [09:54] that's true... [09:55] ¦ problem-solving: a830d70241 | (Elizabeth Mattijsen)++ | solutions/meta/move-repo-to-raku.md [09:55] ¦ problem-solving: Suggest moving to "raku" organisation [09:55] ¦ problem-solving: [09:55] ¦ problem-solving: Note, this is only part of solving issue #280. [09:55] ¦ problem-solving: review: https://github.com/Raku/problem-solving/commit/a830d70241 [09:55] ¦ problem-solving: 72008265ff | (Elizabeth Mattijsen)++ (committed using GitHub Web editor) | solutions/meta/move-repo-to-raku.md [09:55] ¦ problem-solving: Merge pull request #281 from Raku/move-repo-to-raku [09:55] ¦ problem-solving: [09:55] ¦ problem-solving: Suggest moving IRC logs to "raku" organisation [09:55] ¦ problem-solving: review: https://github.com/Raku/problem-solving/commit/72008265ff [09:57] *** kawaii_ is now known as kawaii [10:02] I suspect it has something to do with how the core ops are written explicitly into the grammar... [10:04] https://github.com/rakudo/rakudo/issues/1237 [10:08] also, having one candidate have a different *parsing* than others, is not exactly a sensible thing to do [10:08] because the parsing has to happen before all type information is available [10:09] *** unclechu joined [10:09] *** jdv79 joined [10:09] *** kornbluth.freenode.net sets mode: +vv unclechu jdv79 [10:10] radiak: OK. So how would I change the rule on the existing operator? [10:10] (maybe in 6.zz we should require precedence/associativity/&c to be declared on the `proto`, and not on the candidates?) [10:10] *** Xliff_ is now known as Xliff [10:11] *** shadowpaste left [10:11] *** kawaii is now known as kawaii_ [10:12] *** unclechu left [10:14] *** Ulti joined [10:14] Xliff: it wouldn't work if I'm reading the code related to that bug correctly. the precedence of core ops is basically hard-coded into the grammar. best I can think to suggest off the top of my head is to just name your operator something else [10:14] *** klapperl joined [10:14] radiak: Unfortunately, that's not a part of the problem space. [10:14] *** kornbluth.freenode.net sets mode: +vv Ulti klapperl [10:14] *** swaggboi left [10:14] *** wingfold_ left [10:14] *** perigrin left [10:14] *** Manifest0 left [10:14] *** cooper left [10:14] *** sena_kun left [10:15] I will have to figure out another method. Thanks! [10:16] *** swaggboi joined [10:16] wouldn't hurt to add a comment to that bug along the lines of "this is a blocking issue for my current project" to get it a little more attention, but no guarantees. you're welcome, sorry I couldn't be more helpful [10:16] *** wingfold_ joined [10:16] *** perigrin joined [10:16] *** Manifest0 joined [10:16] *** cooper joined [10:16] *** sena_kun joined [10:16] *** Xliff joined [10:16] *** kornbluth.freenode.net sets mode: +vvvv Manifest0 cooper sena_kun Xliff [10:16] *** krunen joined [10:16] *** kornbluth.freenode.net sets mode: +v krunen [10:17] *** stux|RC joined [10:17] raydiak: You were helpful enough. Thanks! [10:17] *** shadowpaste joined [10:18] *** swaggboi left [10:18] *** wingfold_ left [10:18] *** perigrin left [10:18] *** Manifest0 left [10:18] *** cooper left [10:18] *** sena_kun left [10:18] *** Xliff left [10:18] *** krunen left [10:18] *** Ulti left [10:18] *** klapperl left [10:18] *** jdv79 left [10:18] *** shadowpaste left [10:18] *** stux|RC left [10:18] *** |Sno| left [10:18] *** aluaces left [10:18] *** dustinm` left [10:18] *** oftl left [10:18] *** nebuchadnezzar left [10:18] *** Sir_Ragna left [10:18] *** cog left [10:18] *** b2gills left [10:18] *** asymptotically left [10:18] *** abraxxa left [10:18] *** pecastro left [10:18] *** frost-lab left [10:18] *** jmcgnh left [10:18] *** gordonfish left [10:18] *** xinming left [10:18] *** kini left [10:18] *** jcallen left [10:18] *** nine left [10:18] *** tyil left [10:18] *** mojca left [10:18] *** pnu__ left [10:18] *** charsbar left [10:18] *** mtj left [10:18] *** a3f left [10:18] *** caasih left [10:18] *** Grauwolf left [10:18] *** solitario3 left [10:18] *** rjeli left [10:18] *** timeless left [10:18] *** domidumont left [10:18] *** ugexe left [10:18] *** riatre left [10:18] *** perry left [10:18] *** SmokeMachine left [10:18] *** renormalist left [10:18] *** benaiah left [10:18] *** Mithaldu left [10:18] *** KotH left [10:18] *** pierrot left [10:18] *** samebchase left [10:18] *** literal left [10:18] *** DiffieHellman left [10:19] *** shadowpaste joined [10:19] wonder what the concequences would be if we just outright removed https://github.com/rakudo/rakudo/blob/master/src/Perl6/Grammar.nqp#L4547-L4549 [10:19] *** stux|RC joined [10:19] *** krunen joined [10:19] *** Xliff joined [10:19] *** sena_kun joined [10:19] *** cooper joined [10:19] *** kornbluth.freenode.net sets mode: +vvvv krunen Xliff sena_kun cooper [10:19] *** Manifest0 joined [10:19] *** perigrin joined [10:19] *** wingfold_ joined [10:19] *** swaggboi joined [10:19] *** klapperl joined [10:19] *** Ulti joined [10:19] *** jdv79 joined [10:19] *** kornbluth.freenode.net sets mode: +vvvv Manifest0 klapperl Ulti jdv79 [10:19] *** asymptotically joined [10:19] *** caasih joined [10:19] *** rjeli joined [10:19] *** timeless joined [10:19] *** abraxxa joined [10:19] *** pecastro joined [10:19] *** domidumont joined [10:19] *** frost-lab joined [10:19] *** kini joined [10:19] *** |Sno| joined [10:19] *** b2gills joined [10:19] *** cog joined [10:19] *** Sir_Ragna joined [10:19] *** aluaces joined [10:19] *** Grauwolf joined [10:19] *** kornbluth.freenode.net sets mode: +vvvv cog Sir_Ragna aluaces Grauwolf [10:19] *** dustinm` joined [10:19] *** jcallen joined [10:19] *** jmcgnh joined [10:19] *** gordonfish joined [10:19] *** kornbluth.freenode.net sets mode: +vvvv dustinm` jcallen jmcgnh gordonfish [10:19] *** solitario3 joined [10:19] *** xinming joined [10:19] *** nine joined [10:19] *** stux|RC-only joined [10:19] *** kornbluth.freenode.net sets mode: +vvvv solitario3 xinming nine stux|RC-only [10:19] *** BuildTheRobots joined [10:19] *** robinsmidsrod joined [10:19] *** jhill joined [10:19] *** Voldenet joined [10:19] *** kornbluth.freenode.net sets mode: +vvvv BuildTheRobots robinsmidsrod jhill Voldenet [10:19] *** peteretep joined [10:19] *** spycrab0 joined [10:19] *** codesections joined [10:19] *** brass joined [10:19] *** kornbluth.freenode.net sets mode: +vvvv peteretep spycrab0 codesections brass [10:19] *** broquaint joined [10:19] *** maggotbrain joined [10:19] *** rypervenche joined [10:19] *** vrurg joined [10:19] *** kornbluth.freenode.net sets mode: +vvvv broquaint maggotbrain rypervenche vrurg [10:19] *** bonz060 joined [10:19] *** PotatoGim joined [10:19] *** mrsolo joined [10:19] *** kst joined [10:19] *** kornbluth.freenode.net sets mode: +vvvv bonz060 PotatoGim mrsolo kst [10:19] *** agentzh joined [10:19] *** japhb joined [10:19] *** defaultxr joined [10:19] *** sivoais joined [10:19] *** kornbluth.freenode.net sets mode: +vvvv agentzh japhb defaultxr sivoais [10:19] *** __jrjsmrtn__ joined [10:19] *** silug joined [10:19] *** nicholatian joined [10:19] *** ecocode joined [10:19] *** kornbluth.freenode.net sets mode: +vvvv __jrjsmrtn__ silug nicholatian ecocode [10:19] *** Grrrr joined [10:19] *** sjn joined [10:19] *** m_athias joined [10:19] *** bdju joined [10:19] *** kornbluth.freenode.net sets mode: +vvvv Grrrr sjn m_athias bdju [10:19] *** vaskozl joined [10:19] *** ambs joined [10:19] *** UukGoblin joined [10:19] *** xi joined [10:19] *** kornbluth.freenode.net sets mode: +vvvv vaskozl ambs UukGoblin xi [10:19] *** Util joined [10:19] *** nebuchadnezzar joined [10:19] *** oftl joined [10:19] *** pierrot joined [10:19] *** kornbluth.freenode.net sets mode: +vvvv Util nebuchadnezzar oftl pierrot [10:19] *** mtj joined [10:19] *** tyil joined [10:19] *** charsbar joined [10:19] *** pnu__ joined [10:19] *** kornbluth.freenode.net sets mode: +vvvv mtj tyil charsbar pnu__ [10:19] *** mojca joined [10:19] *** a3f joined [10:19] *** SmokeMachine joined [10:19] *** riatre joined [10:19] *** kornbluth.freenode.net sets mode: +vvvv mojca a3f SmokeMachine riatre [10:19] *** perry joined [10:19] *** ugexe joined [10:19] *** KotH joined [10:19] *** Mithaldu joined [10:19] *** kornbluth.freenode.net sets mode: +vvvv perry ugexe KotH Mithaldu [10:19] *** benaiah joined [10:19] *** renormalist joined [10:19] *** kornbluth.freenode.net sets mode: +vv benaiah renormalist [10:19] *** literal joined [10:19] *** kornbluth.freenode.net sets mode: +v literal [10:19] *** samebchase joined [10:19] *** kornbluth.freenode.net sets mode: +v samebchase [10:19] *** xelxebar left [10:20] *** jmcgnh left [10:20] *** holyghost left [10:20] *** xelxebar joined [10:20] *** DiffieHellman joined [10:21] *** epony joined [10:21] *** jast joined [10:21] *** masak joined [10:21] *** ens joined [10:21] *** kornbluth.freenode.net sets mode: +vvvv epony jast masak ens [10:21] *** tinita joined [10:21] *** Woodi joined [10:21] *** kornbluth.freenode.net sets mode: +vv tinita Woodi [10:21] *** Sir_Ragna left [10:21] *** cog left [10:21] *** b2gills left [10:22] We'd have to start a proto and create a candiate list for the dispatch as replacement behavior. [10:22] Stage start : 0.000 [10:22] Error while compiling, type X::Comp::AdHoc [10:22] payload: don't change grammar in the setting, please! [10:22] I agree with you: straight up removal would cause problems. [10:22] at line 2239, near "(Mu, Mu, *" [10:22] at gen/moar/stage2/NQPHLL.nqp:1053 (/home/dan/Source/perl6/install/share/nqp/lib/NQPHLL.moarvm:panic) [10:22] ^^^ just removing it [10:23] MasterDuke: Oh, wow. [10:24] *** b2gills joined [10:24] heh, fair enough [10:24] *** Sir_Ragna joined [10:24] *** cog joined [10:24] *** kornbluth.freenode.net sets mode: +vv Sir_Ragna cog [10:26] the bug is not that change precedence/assoc fails, is that it fails *silently* [10:26] it *must* fail [10:27] *** oftl left [10:27] *** linkable6 left [10:27] *** nebuchadnezzar left [10:27] and all of that would be different with the RakuAST branch [10:27] *** oftl joined [10:27] m: multi sub infix:<☞>(Int $a, Int $b) is assoc { return $b }; multi sub infix:<☞>(Str $a, Str $b) is assoc { return $b }; sub foo($a,$b,$c) { return $a☞$b☞$c }; say foo(1,2,3); [10:27] *** nebuchadnezzar joined [10:27] Where can I find a list of CORE grammar rules? [10:27] rakudo-moar 1962e6744: OUTPUT: «3␤» [10:27] m: multi sub infix:<☞>(Str $a, Str $b) is assoc { return $b }; multi sub infix:<☞>(Int $a, Int $b) is assoc { return $b }; sub foo($a,$b,$c) { return $a☞$b☞$c }; say foo(1,2,3); [10:27] rakudo-moar 1962e6744: OUTPUT: «3␤» [10:27] uh… that worked differently on my machine [10:28] it should probably complain about assigning associativity to candidates, rather than the proto [10:28] lizmat++: I expect RakuAST will solve a lot of things and give us new bugs we didn't expect. [10:28] I'm not saying it would solve this [10:29] *** AlexDaniel` joined [10:29] lizmat: I agree [10:29] *** uzl[m] joined [10:29] *** patrickbkr[m] joined [10:30] *** linkable6 joined [10:30] Xliff: the core grammar is https://github.com/rakudo/rakudo/blob/master/src/Perl6/Grammar.nqp [10:31] lizmat: AIUI, having candidates with different assoc/precedence should just be prohibited, because it can't be made to work [10:31] any assoc trait on a candidate is just ignored, apparently [10:31] compar: [10:31] m: multi sub infix:(\a,\b) is assoc { "foo" }; dd &infix:.prec [10:31] couldn't it work if they have non-overlapping types? [10:31] rakudo-moar 4183cdaf3: OUTPUT: «Hash % = {}␤» [10:31] m: proto sub infix:(|) is assoc {*}; multi sub infix:(\a,\b) { "foo" }; dd &infix:.prec [10:31] rakudo-moar 4183cdaf3: OUTPUT: «Hash element = {:assoc("left"), :prec("t=")}␤» [10:32] MasterDuke: no, because associativity is a parse-time thing, and at parse-time you (almost)never have enough typing information [10:32] so you're telling the candidate something, but nobody's listening :-) [10:33] not exactly… [10:33] m: multi sub infix:<☞>(Int $a, Int $b) is assoc { return $a+$b*1000 };multi sub infix:<☞>(Str $a, Str $b) is assoc { return "($a,$b)" };sub foo($a,$b,$c) { return $a☞$b☞$c };say foo(1,2,3); [10:33] rakudo-moar 4183cdaf3: OUTPUT: «5001␤» [10:33] m: multi sub infix:<☞>(Str $a, Str $b) is assoc { return "($a,$b)" };multi sub infix:<☞>(Int $a, Int $b) is assoc { return $a+$b*1000 };sub foo($a,$b,$c) { return $a☞$b☞$c };say foo(1,2,3); [10:33] rakudo-moar 4183cdaf3: OUTPUT: «3002001␤» [10:33] notice that the associativity changed [10:33] it's taken from the first candidate seen [10:33] hmmm... [10:34] worth an issue, I'd say, if there isn't one already [10:34] there is: https://github.com/rakudo/rakudo/issues/1237 [10:34] although it may be reworded to more explicitly point out that the problem is the "silently", not the "fails" [10:35] declaring candidates with different assoc/prec should be a compile-time erorr [10:35] *** rbt left [10:36] agree [10:36] can the precedence of the proto be changed? [10:36] maybe in a slang [10:37] *** jmcgnh joined [10:37] I guess you could, but it will only affect code compiled *after* that change [10:37] so you'd need to do that at compile time, and it wouldn't affect any code compiled *before* that change [10:38] isn't "I want this to be parsed different than normal raku" exactly what slangs are for? [10:38] it is [10:38] but the question was about core ops, no ? [10:39] *** holyghost joined [10:40] *** uzl[m] left [10:40] *** AlexDaniel` left [10:42] yes he wanted to change the precedence of infix:<*> [10:42] lizmat: It is as you say. Your understanding is along the lines of what I need. [10:43] lizmat: https://glot.io/snippets/fyxgoslq4r [10:45] In that example, the right multi is dispatched, but the operator precedence is unchanged. [10:49] *** tusooa joined [10:51] *** juanfra__ joined [10:51] I have to ask because nobody has yet...why? [10:53] *** Tirifto[m] joined [10:55] *** demostanis[m] joined [10:55] Because that's what I need. [10:55] *** pwr22 joined [10:56] I dislike it when that question comes up, because then someone can say "why do it that way" or "what's the point" [10:56] And then stop answering. [10:57] *** mendel_ joined [10:58] *** tobs` joined [10:58] well that's why I thought of everything I could suggest *before* asking :) either way I'm gonna stop answering in the next several minutes, have to try to get a few hours of sleep soon [10:58] *** AlexDaniel joined [10:59] *** tobs` is now known as tobs [10:59] Now that is an acceptable reason to stop answering... [10:59] *** raydiak joined [10:59] :) [10:59] *** ribasushi joined [10:59] Again, thanks for your help. [11:00] I mean at this point, you're down to writing a slang, parsing the whole expression with your own grammar, or doing whatever you're doing some other way anyway [11:00] looks like dakkar and lizmat were the insightful ones here, but glad I could do...whatever I did :D [11:02] radiak: Yeah. I am going the grammar route, with.... not much luck. [11:02] https://glot.io/snippets/fyxh7lm58f [11:03] *** kawaii joined [11:03] I can't figure out why that last expression isn't getting parsed. [11:03] *** fvox joined [11:06] *** doconthe2ocks joined [11:07] *** tailgate joined [11:07] Grammar::Tracer is really helpful for deubgging and optimizing grammars [11:07] Yes, but it won't handle all cases [11:08] *** samcv joined [11:08] what doesn't it handle? [11:08] *** markmarkmark joined [11:08] I'm to tired to remember. [11:08] I need sleep, too! [11:09] I'm sure it should work for what you pasted, I used it for all of Math::Symbolic [11:10] Will check later today, then. Thanks. [11:12] raydiak: Ah. The situation where it the grammar can't get a hold of a starting place. [11:14] yw, good luck. bed and hopefully sleep for me. lizmat if you see this let me know about my question at 9:21:52, there are many irregularities in the html and I don't know if I should be reporting them in one big issue, a pile of small issues, or not at all [11:15] raydiak: please hold off until we got real UI people involved (sena_kun is working with me on that) [11:16] *** sienet_ja_LSD[m] joined [11:16] *** rbt joined [11:16] I never got much beyond HTML 0.9 :-) [11:17] heh got it [11:19] *** kiti_nomad[m] joined [11:20] Xliff: i think the problem is you can't have an expression on the left in your grammar [11:21] *a parenthesized expression [11:22] *** ugexe left [11:22] *** frost-lab left [11:23] MasterDuke: Yep. Figured that out. Still trying to work out the best solution. [11:24] moritz might be around [11:24] hm? [11:25] from Xliff, https://glot.io/snippets/fyxh7lm58f "I can't figure out why that last expression isn't getting parsed." [11:25] *** holyghost left [11:26] MasterDuke: well, you figured it out already [11:27] heh. the problem, not a solution [11:29] my go-to solution is another layer of indirection [11:29] http://perlpunks.de/paste/show/60acdfac.6b20.384 [11:30] that's what I use in the book [11:31] the gist is that an expression is , and term can be a or '(' ')' [11:31] the rest (using multi regexes) is just sugar [11:31] *** holyghost joined [11:36] *** guifa joined [11:37] *** guifa left [11:42] *** ServerStatsDisco joined [11:43] *** unclechu joined [11:48] *** uzl[m] joined [11:48] *** holyghost left [11:48] *** AlexDaniel` joined [11:54] *** holyghost joined [11:58] *** domidumont left [12:00] *** guifa joined [12:01] *** guifa left [12:04] *** reportable6 left [12:04] moritz_++ # Thanks! [12:06] *** guifa joined [12:06] *** reportable6 joined [12:07] *** guifa left [12:15] *** aborazmeh joined [12:15] *** aborazmeh left [12:15] *** aborazmeh joined [12:18] *** Xliff left [12:18] *** Xliff left [12:21] *** aborazmeh_ joined [12:25] *** aborazmeh left [12:29] *** mowcat joined [12:31] *** Xliff joined [12:32] *** Xliff joined [12:42] *** mowcat left [12:42] *** ggoebel_ left [12:58] *** Sgeo joined [12:58] *** Sgeo joined [13:00] *** SqrtNegInf left [13:01] *** LizBot left [13:01] *** LizBot joined [13:02] *** SqrtNegInf joined [13:05] I finished the my Solstice with just floors :-) [13:05] s/the// [13:20] *** samebchase1 left [13:21] *** cog left [13:21] *** rbt left [13:25] *** samebchase joined [13:26] *** holyghost left [13:27] *** rbt joined [13:30] *** holyghost joined [13:32] *** rbt left [13:32] *** rbt joined [13:51] *** lucasb joined [13:52] *** rbt left [13:52] *** rbt joined [14:08] *** lucasb joined [14:20] *** holyghost left [14:24] *** holyghost joined [14:42] *** rbt left [14:42] *** rbt joined [14:48] *** m_athias left [14:52] *** m_athias joined [14:56] *** ggoebel_ joined [14:59] *** holyghost left [15:01] *** guifa joined [15:02] *** guifa left [15:08] *** |Sno| left [15:09] *** aborazmeh_ left [15:10] *** holyghost joined [15:12] <[Coke]> is it possile that running the REPL for the first time ends up precompiling something? [15:12] <[Coke]> *possible [15:12] <[Coke]> Finding that the REPL on windows is very slow to start (2021.04) [15:13] <[Coke]> ah. it's not doing anything in the background, just hanging. :( [15:13] you could run `RAKUDO_MODULE_DEBUG=1 raku` to find out [15:14] <[Coke]> ah: under 'cmd', it launches immediately. under 'git bash', it hangs. [15:15] it shouldn't precompile anythinkg [15:15] then it probably cannot read STDIN in that case ? [15:22] <[Coke]> lizmat: tried cmd/powershell; even under the right codepage (65001), the welcome to message isn't rendering. Guessing we'd need some kind of font fallback mechanism? [15:23] so you're saying the rendering of the welcome message is what's blocking ? [15:24] <[Coke]> no. separate issue [15:24] <[Coke]> ... as far as I know [15:25] *** sno joined [15:26] *** guifa joined [15:27] *** renormalist left [15:27] *** guifa left [15:28] *** kevin1 joined [15:31] *** holyghost left [15:31] *** kjp left [15:31] But...if it's unable to output anything, how do you know that it's actually hanging and not just waiting for your input? [15:31] *** renormalist joined [15:32] *** renormalist left [15:32] *** guifa joined [15:32] *** renormalist joined [15:33] *** guifa left [15:33] *** renormalist left [15:34] *** renormalist joined [15:38] <[Coke]> I don't know that it can't output anything? [15:38] <[Coke]> there are 2 issues here; one is running raku repl under git bash, the other is displaying the repl announcement where it does work. [15:39] *** renormalist left [15:39] *** renormalist joined [15:39] i guess it doesnt suprise me that it doesnt work under git bash, since that is probably a more cygwin toolchain like setup and you likely used VS toolchain to build rakudo [15:39] <[Coke]> happy to test while I have the windows box up if there's anything else I can run. [15:40] <[Coke]> I did use VS. note that raku works fine in scripts, just not in REPL there. [15:41] raku -e 'say $*SPEC.raku' [15:41] <[Coke]> (could very well be DIHWIDT) [15:41] what does that say in git bash by chance [15:41] <[Coke]> IO::Spec::Win32 [15:42] https://raku.org/ still talks about freenode for IRC. [15:43] the repl worked for me on windows using 2020.04. building 2021.05 now [15:43] <[Coke]> ugexe: again, works fine here in cmd & powershell. [15:44] ah so the issue in cmd is just the jumbled text? [15:44] https://rakudo.org/ also has a link to freenode near the bottom [15:45] <[Coke]> ugexe: aye [15:45] yeah thats been that way for a bit. i argued against it but im not a lawyer [15:45] <[Coke]> which is very likely just a font issue; tried various system fonts, tried source code pro, nada. I think on the mac there's a fallback font for unicode, not sure that exists on windows. [15:46] <[Coke]> well, the message is useless on windows at the moment, at least for me. I opened a ticket if someone wants to use that to argue we should at least default to plain text. [15:46] well asking the average window user to change their terminal settings is a pretty big ask considering i dont think any other language does so [15:47] <[Coke]> I think it makes sense to get to the unicode features of the language; not to see the welcome message. [15:47] aye [15:47] renormalist: thanks for the headsup [15:48] renormalist: I think we have all the changes done, it's now a matter of deploying :-) [15:48] lizmat: cool, thanks [15:51] *** holyghost joined [15:53] <[Coke]> ugexe: I found one font where instead of "cant display glyph", you get whitespace (just blanks). "welcome to TM" [15:59] ive always just gotten "Welcome to ≡¥Éæ≡¥ÉÜ≡¥Éñ≡¥É«≡¥É¥≡¥É¿Γäó v2021.05." [16:03] *** holyghost left [16:13] *** holyghost joined [16:14] *** mowcat joined [16:18] *** swaggboi left [16:18] *** swagg_boi joined [16:18] asking someone to change their font is just as bad [16:31] *** perlbot left [16:32] *** domidumont joined [16:33] *** simcop2387 left [16:36] *** dakkar left [16:37] *** guifa joined [16:38] *** guifa left [16:43] *** guifa joined [16:44] *** guifa left [16:49] *** guifa joined [16:50] *** guifa left [16:54] *** simcop2387 joined [16:56] *** perlbot joined [16:58] do old versions of modules stay forever on fez? [17:00] mine is listed as "xyz:ver<0.1.1>", "xyz:ver<0.1.2>" and search for it on modules.raku.org returns 3 results (1 - CPAN entry, 0.1.1 fez, 0.1.2 fez entry) [17:00] how do i make it show only the 0.1.2 entry and not pollute the results? [17:11] andinus: yes they do [17:12] *** aborazmeh joined [17:12] what do you mean by not pollute? it'd be up to the search or zef to only show the highest ver [17:13] up to search meaning up to your search term, eg `zef search xyz:ver<0.1.2>` [17:22] by pollute i meant that the number beside tags (on modules.raku.org) increments by 1 for each version i push [17:27] <[Coke]> might be nice if default search showed latest stable and not everything, but allowed -v to show all. [17:27] <[Coke]> (assuming we have the concept of a stable or recommended, not sure we do) [17:38] i thought zef only showed the highest version [17:38] ugexe: ^ [17:38] *** daimon joined [17:38] andinus: what is the name of the module? [17:38] antlia? [17:38] zef will show all of them if you do `search` and the highest if you do `info` without any version [17:39] the problem they are talking about is how modules.raku.org groups (or rather doesnt group) distributions [17:40] d'oh [17:41] tyil, lizmat, nine: in the mass migration from freenode my primary concern was making sure my channels and nicknames remained owned by me, as an extension of this I also tried to register nicknames and channels for the communities I am involved in, as of such I own the nicknames 'perl','purl','raku','erlang' and 'csharp'; I obviously reserved 'raku' for yourselfs - if you have a use for that nickname drop me a message if you are +F in this channel it will be [17:41] transferred to you immediately; if not then well its safe for whenever (if you ever) require it [17:44] *** domidumont left [17:44] i reserved daimon1 [17:44] :) [17:45] *** aborazmeh left [17:45] *** guifa joined [17:45] my actual main nickname is daemon but it causes havok in accidental highlights [17:46] *** guifa left [17:46] tonyo: yes i was talking about antlia [17:47] *** stoned75 joined [17:48] *** stoned75 joined [17:50] *** guifa joined [17:51] *** guifa left [18:00] *** holyghost left [18:04] *** reportable6 left [18:07] *** reportable6 joined [18:07] commit: releases my $a = <42>; my Str $s = $a; my Int $i = $a; say ($s.WHAT, $i.WHAT); [18:08] stoned75, ¦releases (54 commits): «((IntStr) (IntStr))␤» [18:13] *** rbt left [18:13] *** rbt joined [18:30] *** epony left [18:30] *** jast left [18:30] *** masak left [18:30] *** ens left [18:30] *** tinita left [18:30] *** Woodi left [18:30] *** masak_ joined [18:30] *** ens joined [18:31] *** tinita joined [18:31] *** Woodi joined [18:41] *** epony joined [18:49] *** [Coke] left [18:50] *** [Coke] joined [18:53] *** lichtkind joined [18:56] *** Black_Ribbon joined [19:01] *** mowcat left [19:05] *** aborazmeh joined [19:16] *** wingfold joined [19:20] *** wingfold_ left [19:20] *** wingfold left [19:28] *** dustinm` left [19:29] *** stoned75 left [19:30] *** stoned75 left [19:32] *** dustinm` joined [19:39] *** guifa joined [19:40] *** guifa left [19:48] *** ilogger2_ joined [19:48] *** rbt left [19:48] *** ilogger2_ joined [19:48] *** ilogger2_ left [19:49] *** rbt joined [19:50] *** ilogger2 joined [19:54] *** rbt left [19:54] *** rbt joined [20:01] *** stoned75 joined [20:01] *** stoned75 joined [20:04] *** guifa joined [20:16] *** [ptc] joined [20:17] *** [ptc] left [20:17] *** ptc joined [20:18] m: say "hullo libera raku!" [20:18] rakudo-moar 4183cdaf3: OUTPUT: «hullo libera raku!␤» [20:22] *** mowcat joined [20:24] *** ptc is now known as [ptc] [20:25] *** [ptc] is now known as ptc [20:44] us here the organizer of raku conf? [20:44] what kind of talk do you want? [20:54] *** mtj left [21:03] we've moved to irc.libera.chat, you might have more luck there. it's also near our quiet time, as much of the community is in europe where it's getting late. if you wanted to try e-mail or other contact methods, they're listed on https://conf.raku.org/contacts [21:04] in general though, I'd expect pretty much any talk related to the Raku language to be welcome [21:23] raydiak: thank you [21:24] *** lichtkind joined [21:27] you're welcome :) [21:31] raydiak: but channel there is 6667 [21:34] *** mowcat left [21:36] yes 6667 for unecrypted connections, 6697 for TLS [21:37] actually, looks like there's more ports than that. see https://libera.chat/guides/connect [21:40] *** lichtkind left [21:40] *** lichtkind joined [21:41] raydiak: yes i mispelled libera thank im there now [21:41] cool [22:05] *** codesections left [22:17] *** dotdotdot joined [22:17] *** lizmat joined [22:23] *** wingfold joined [22:23] *** swagg_boi joined [22:24] *** wingfold_ joined [22:24] *** wingfold left [22:29] *** wingfold joined [22:29] *** wingfold_ left [22:33] *** wingfold_ joined [22:33] *** wingfold left [22:36] *** kini joined [22:37] *** wingfold_ left [22:40] m: .say for 5 [22:40] rakudo-moar 4183cdaf3: OUTPUT: «5␤» [22:47] *** aborazmeh joined [22:50] *** swagg_boi left [22:51] *** wingfold joined [22:54] raydiak: well the topic i would choose i already talked about at yapc [22:55] *** wingfold_ joined [22:56] *** wingfold left [23:00] *** wingfold joined [23:00] *** wingfold_ left [23:04] *** wingfold left [23:17] *** aborazmeh left [23:18] *** wingfold joined [23:22] *** wingfold left [23:23] *** wingfold joined [23:26] *** aborazmeh joined [23:27] *** stoned75 left [23:28] *** stoned75 left [23:37] *** lichtkind left [23:37] *** lichtkind left [23:39] *** swagg_boi joined [23:58] *** aborazmeh left