🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). Log available at irclogs.raku.org/raku/live.html . If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 6 September 2022.
00:00 reportable6 left 00:03 reportable6 joined 00:14 jpn joined 00:19 jpn left 00:23 merpaderp left 00:24 merpaderp joined 00:59 razetime joined 01:01 lichtkind__ left 01:03 xinming_ left 01:05 xinming_ joined 01:28 jgaz left 01:33 guifa left
tonyo heh 01:54
m: sub trait_mod:<is> (Sub:D $s, :$partial) { $s.wrap(sub (*%_) { if %_.elems == $s.signature.params.elems { callwith |%_;} else { my %cache = %_; my $cw := &callwith; return sub (*%_) { $s.(|%_, |%cache); }; }; }); }; sub x (:$name, :$title) is partial { "{$title}. {$name}".say; }; x(:name<tony>, :title<m>
camelia ===SORRY!=== Error while compiling <tmp>
Unable to parse expression in argument list; couldn't find final ')' (corresponding starter was at line 1)
at <tmp>:1
------> name}".say; }; x(:name<tony>, :title<m>⏏<EOL>
tonyo ); my $partial = x(:name<tony>); $partial.(:title<m2>); #rf
m: gist.github.com/tony-o/9d4fe1e20d8...b568b7ca61 01:56
camelia m. tony
m2. tony
tonyo rf ^
could be expanded to work with *@_ too, and the hash matching would be improved by making sure what's in %_ is what's in the named bits of the signature 01:57
rf Dang thats really neat
Thanks for sharing :D
I really need to study up on the slip operator, I feel like I'm missing out a lot by not knowing it that well 01:59
Or sink, idk what is "|" called? 02:00
02:15 perlbot left 02:16 simcop2387 left 02:21 simcop2387 joined 02:23 perlbot joined 03:04 codesections left 03:26 rf left
tonyo slip, i think. i think of it as a flatten 03:52
04:26 linkable6 left, evalable6 left 04:27 linkable6 joined 04:28 evalable6 joined 04:46 ProperNoun left 04:47 ProperNoun joined 04:49 simcop2387 left 04:50 simcop2387 joined 04:58 jpn joined 04:59 simcop2387 left 05:02 simcop2387 joined 05:03 jpn left 05:08 kaskal left 05:12 simcop2387 left 05:13 perlbot left 05:18 perlbot joined 05:19 simcop2387 joined 06:00 reportable6 left, reportable6 joined 06:15 epony left 06:26 epony joined 07:26 notable6 left, bisectable6 left, linkable6 left, releasable6 left, nativecallable6 left, benchable6 left, sourceable6 left, evalable6 left, statisfiable6 left, quotable6 left, reportable6 left, unicodable6 left, tellable6 left, greppable6 left, squashable6 left, shareable6 left, reportable6 joined, quotable6 joined, statisfiable6 joined, bisectable6 joined, linkable6 joined, greppable6 joined 07:27 shareable6 joined, sourceable6 joined, notable6 joined, tellable6 joined, unicodable6 joined, releasable6 joined 07:28 squashable6 joined, evalable6 joined, benchable6 joined, nativecallable6 joined 07:57 abraxxa joined 08:01 abraxxa left 08:02 abraxxa joined 08:10 Sauvin left, Bocaneri joined, Bocaneri is now known as Guest4106 08:11 epony left, razetime left 08:16 Xliff left 08:21 sdfgsdfg left 08:24 epony joined 08:29 Sgeo left 08:32 razetime joined 09:01 jaguart left 09:55 sena_kun joined 09:57 jpn joined 10:05 lichtkind__ joined 10:30 Guest4106 left 10:31 abraxxa left 10:36 Sauvin joined 11:19 jpn left 11:28 jpn joined, kaskal joined 11:29 razetime left 11:30 razetime joined 12:00 reportable6 left 12:02 razetime left 12:03 reportable6 joined 12:12 Kaipei joined, andreoss` left 12:14 andreoss` joined 12:16 Kaiepi left
Geth doc: Prince213++ created pull request #4180:
Simplify links and fix syntax
13:07 lichtkind__ left 13:11 NemokoschKiwi joined 13:28 razetime joined 13:36 razetime left 13:37 razetime joined
NemokoschKiwi .Is there a way to contribute to Tellable? 14:23
(also, just a notification: Discord messages don't get to IRC at the moment) 14:24
Geth doc: d3ff67f6fe | (Sizhe Zhao)++ (committed using GitHub Web editor) | 7 files
Simplify links and fix syntax (#4180)

  * Simplify links
  * doc/Language/control.pod6: fix link
lizmat NemokoschKiwi: I wondered why it was so quiet today
sorta blamed Friday the 13th :-) 14:26
14:26 linkable6 left
[Coke] any rakuast docs in main/ at the moment? 14:27
14:27 linkable6 joined
NemokoschKiwi lizmat: oh, it's just we entered the read-only state :D 14:28
I mean, sorta strange that apparently two different programs/processes back up the two directions of the bridge
even though there is just one apparent bot client 14:29
14:30 jgaz joined
[Coke] Until I can cutover to ast - how to run a QAST node? 14:33
lizmat Actually, I don't think you can, not until it has been turned onto MAST bytecode 14:35
14:36 rf joined
lizmat and for a given QAST node, am not sure you can without context, compilation unit, etc etc etc 14:36
but then again I could be wrong nine jnthn vrurg might know
vrurg [Coke]: I can give you an NQP code example. 14:41
14:42 NemokoschKiwi left
[Coke] %^&^% 14:42
14:43 MasterDukeMobile joined
[Coke] Found my bug. in raku code, I was doing my $qast = QAST.... insteqad of my $qast := QAST... 14:43
MasterDukeMobile [Coke]: the "executing qast trees" section of blogs.perl.org/users/zoffix_znet/2...cious.html might be helpful 14:45
lizmat TIL :-) 14:49
mind you, that will not hold in the future :-) $*W is going the way of the dodo
14:51 MasterDukeMobile left
lizmat I wonder whether this is a bug in the current regex engine: 15:11
m: say ",🦋" ~~ / \C[COMMA, BUTTERFLY] / 15:12
camelia Nil
lizmat m: say ",🦋" ~~ / \c[COMMA, BUTTERFLY] /
camelia 「,🦋」
lizmat compare that with the negation:
m: say "ab" ~~ / \C[COMMA, BUTTERFLY] /
camelia 「a」
[Coke] github.com/coke/raku-slang-date
lizmat why is that just "a" and not "ab" ?
vrurg m: say "ab" ~~ / \C[COMMA, BUTTERFLY]+ / 15:13
camelia 「ab」
vrurg lizmat: ^^^ ?
lizmat but why wasn't the + needed in the non-negated case ?
vrurg That certainly looks like a bug to me. 15:14
[Coke] raku -I. -MSlang::Date -e 'say 2023-01-13.day-of-week'
lizmat [Coke]: cool!
so is the bug in the negated or the non-negated case in your opinion? 15:15
lizmat feels in the negated case 15:16
[Coke] Inspired by buttondown.email/hillelwayne/archi...languages/ 's "Date Literals"
lizmat and now a followup blog post!
vrurg lizmat: non-negated. It must've caught just one symbol.
lizmat but why? I always interpreted \c[COMMA, BUTTERFLY} as a convoluted way to say: ,🦋 15:17
but you're saying its a convoluted way to say: , | 🦋 15:18
vrurg Because \c still stands for a single char. I consider [P1, P2] as a set of alternatives. 15:19
m: say "ab" ~~ / \w /
camelia 「a」
vrurg So, its no different from the above.
[Coke] uploaded to fez.
rf :[Coke] can you link the source to that slang? 15:20
lizmat sadly, the documentation only mentions single character use of \c
[Coke] github.com/coke/raku-slang-date/bl...te.rakumod
lizmat yet the RakuAST node has "characters" as its attribute
rf Thanks !
vrurg lizmat: an error? Even the doc says that \c matches _a_ character. 15:22
lizmat hmmm that.s what the documentation says, indeed :-) 15:23
I'll make an issue 15:24
[Coke] rf: any feedback welcome, thank you
vrurg lizmat: BTW, I found no specs for the case. Could've overlooked any, but likely they're not there. 15:33
lizmat I guess I'm enshrining the specs in RakuAST tests now :-) 15:34
vrurg: in RakuAST, it's considered to be a CharClass, which would make me lean towards the \c case being correct 15:38
m: say ",," ~~ / \c[COMMA, BUTTERFLY] / # but that doesn't seem to be correct either
camelia Nil
15:41 razetime left
vrurg lizmat: for the sake of uniformity, I'd expect anything withing [] to behave as a set of alternatives, akin to <[]>. The only difference would be in using commas to separate props because these may contains spaces. 15:41
15:42 synthmeat left, synthmeat joined
vrurg From that point of view \c would always be a single char. Besides, it improves readability because one wouldn't need to remember \c specific – quantifiers talk on their own. 15:43
Another uniformity would be to match behaviors of other \<letter> character classes. 15:44
lizmat hmmm... seems \x has the same issue: 15:46
m: say "ab" ~~ / \x[61, 62] /
camelia 「ab」
lizmat m: say "AB" ~~ / \X[61, 62] /
camelia 「A」
lizmat github.com/rakudo/rakudo/issues/5155 15:48
15:51 Sgeo joined
[Coke] ... dammit, I left off a colon in the meta6.json name 16:09
maybe fez could warn about that? 16:10
16:21 ab5tract joined
ingy [Coke]: nothing up yet for toronto afaik 16:28
16:38 ab5tract left 17:05 ab5tract joined 17:10 sena_kun left 17:11 sena_kun joined 17:16 alfonsox joined 17:19 ab5tract left 17:27 alfonsox left 17:38 NemokoschKiwi joined
NemokoschKiwi 2nd attempt: is it possible to make changes to Tellable? 17:43
[Coke] The person who runs them does so but doesn't really do much else, so my guess would be: yes, if it was a simple change that was packaged up in a way that was easy for them to include. 17:59
18:00 reportable6 left, reportable6 joined
[Coke] (AlexDaniel is his nick) 18:02
Missed the previous discussion, but is there an issue/PR on github.com/Raku/whateverable ? 18:03
NemokoschKiwi It seems to me that Tellable itself is not available anywhere so I wouldn't know how it can be changed 18:07
I was thinking that something like a .readall command could be handy, so that if I, or someone else from discord, goes to IRC, the bot won't start spitting a dozen of "missed messages" 18:08
coleman [Coke]: papercuts like that are important, in my opinion. Can you open an issue on fez? 18:09
ugexe i mean there isn't exactly a reason a distribution name can't contain a single : 18:10
and in all honestly we shouldn't be using :: in distribution names anyways, rather s/::/-/
NemokoschKiwi This is quite a good point in my opinion but it doesn't seem like there is a critical mass of awareness regarding this 18:12
[Coke] .ask AlexDaniel - hey, where is the source for tellable6? it's not one of the obvious options here: github.com/Raku/whateverable/tree/...ateverable 18:19
tellable6 [Coke], I'll pass your message to AlexDaniel
[Coke] tellable6: source?
tellable6 [Coke], github.com/Raku/whateverable
linkable6 [Coke], github.com/Raku/whateverable
18:19 xinming joined
[Coke] .tell AlexDaniel nevermind! 18:20
tellable6 [Coke], I'll pass your message to AlexDaniel
[Coke] github.com/Raku/whateverable/blob/...ellable.p6
18:20 ProperNoun left 18:23 ProperNoun joined
NemokoschKiwi well, how could I miss this when I literally grepped the whole folder for any appearance of tellable case insensitive 🤐 18:29
[Coke] I also did. I ended up search for ".ask", that got me there.' 18:30
what kind of change were you thinking of?
[Coke] updates his windows install to HEAD and so far no explosions. 18:31
NemokoschKiwi > I was thinking that something like a .readall command could be handy, so that if I, or someone else from discord, goes to IRC, the bot won't start spitting a dozen of "missed messages" 18:32
tbh looking at the code, it might be possible to just fix the interpretation of Discord names some way 18:34
18:34 jpn left
[Coke] GLHF 18:39
NemokoschKiwi tellable6: test 18:40
tellable6 NemokoschKiwi, I saw test 2017-07-23T21:20:01Z in #perl6: <test> hello?
NemokoschKiwi lol 18:41
.tell tellable6 interesting semantics you've got
tellable6 NemokoschKiwi, Thanks for the message
NemokoschKiwi gotcha
18:44 lichtkind joined 18:47 jjido joined 19:03 abraxxa-home joined 19:06 abraxxa-home left 19:09 abraxxa-home joined 19:10 jjido left 19:11 sena_kun left 19:12 sena_kun joined 19:19 jgaz left 19:24 rf left 19:32 rf joined 19:35 Xliff joined 19:59 ab5tract joined 20:31 ab5tract left 20:37 ab5tract joined 20:47 ab5tract left 21:12 jpn joined 21:48 jpn left 22:01 jgaz joined 22:06 destroycomputers joined 22:19 epony left 22:35 jjido joined 22:51 Homer_Simpson joined 23:06 abraxxa-home left, epony joined 23:09 ab5tract joined, jjido left 23:19 jgaz left 23:51 jjido joined 23:54 kjp left 23:57 kjp joined 23:59 jaguart joined