🦋 Welcome to the IRC channel of the core developers of the Raku Programming Language (raku.org #rakulang). This channel is logged for the purpose of history keeping about its development | evalbot usage: 'm: say 3;' or /msg camelia m: ... | Logs available at irclogs.raku.org/raku-dev/live.html | For MoarVM see #moarvm
Set by lizmat on 8 June 2022.
00:00 reportable6 left 00:01 reportable6 joined 00:53 kurahaupo left 00:54 kurahaupo joined
leont I wrote my first RakuAST code, converting Path::Finder's glob-to-regex code. I consider it a good sign I was able to do this without asking questions, the second article was helpful in getting me started. 01:05
01:40 Xliff joined 03:41 evalable6 left, linkable6 left, linkable6 joined, evalable6 joined 04:06 closetfourtwenty joined, kurahaupo left 04:08 closetfourtwenty left 04:16 kurahaupo joined 04:37 Xliff left 06:00 reportable6 left, reportable6 joined 07:00 greppable6 left, evalable6 left, linkable6 left, shareable6 left, committable6 left, releasable6 left, coverable6 left, statisfiable6 left, bloatable6 left, notable6 left, squashable6 left, sourceable6 left, unicodable6 left, reportable6 left, tellable6 left, bisectable6 left, nativecallable6 left, benchable6 left, quotable6 left 07:01 greppable6 joined, shareable6 joined, tellable6 joined, reportable6 joined 07:02 evalable6 joined, committable6 joined, coverable6 joined, bloatable6 joined, unicodable6 joined 07:03 sourceable6 joined, linkable6 joined, benchable6 joined, squashable6 joined, quotable6 joined, notable6 joined, nativecallable6 joined 07:04 bisectable6 joined, statisfiable6 joined, releasable6 joined 07:51 Xliff joined 08:11 sena_kun joined 08:12 squashable6 left 08:15 squashable6 joined 08:24 Xliff left 08:56 kurahaupo left 09:12 kurahaupo joined
lizmat glad to hear that! 09:32
10:12 evalable6 left, linkable6 left 10:13 linkable6 joined, evalable6 joined
nine lizmat: I don't have anything per se against .grep / .first on RakuAST nodes. I'm just wary of them in RakuAST core code, as we should traverse the tree as little as possible if we want any hope for the compiler to be reasonably fast. 10:52
lizmat well, this is more intended for RakuAST users, rather than internal uses 10:53
think rakudoc renderers
Geth rakudo/main: 14b803f519 | (Elizabeth Mattijsen)++ | src/core.c/RakuAST/Fixups.pm6
RakuAST: add .map on RakuAST nodes based on gather/take

  - also re-implement .rakudoc / .grep using gather / take
lizmat also: since RakuAST::Node is an Any, .map / .grep / first were already available on nodes, better make them do something sensible / expected
11:13 linkable6 left 11:14 linkable6 joined 12:00 reportable6 left 12:02 reportable6 joined 12:15 squashable6 left 12:17 squashable6 joined
Geth rakudo/main: 73a6ff6f44 | (Elizabeth Mattijsen)++ | src/core.c/RakuAST/Deparse.pm6
RakuAST: deparse support for RakuAST::StatementPrefix::Phaser::Check
lizmat m: dd (1,2,3,4).first: -> $a, $b { dd $a, $b } # TIL that .first doesn't take Callables with multiple arguments 13:16
camelia Too few positionals passed; expected 2 arguments but got 1
in block <unit> at <tmp> line 1
13:34 linkable6 left, evalable6 left 13:35 evalable6 joined 13:37 linkable6 joined
Geth rakudo/main: 213bacbb14 | (Elizabeth Mattijsen)++ | src/Raku/ast/doc-block.rakumod
RakuAST: some children in RakuAST::Doc:: *should* be visited
rakudo/main: fdb84124e6 | (Elizabeth Mattijsen)++ | src/core.c/RakuAST/Fixups.pm6
RakuAST: introduce @*LINEAGE in .map/grep/first

When using .map / .grep / .first on RakuAST::Node objects, the dynamic variable @*LINEAGE will be set with all of the parent objects of the topic.
Also make sure that .first(:end) does not actually visit all objects, but really starts from the end with actually visiting.
14:46 Xliff joined 15:23 codesections joined 16:36 discord-raku-bot left 16:37 discord-raku-bot left, discord-raku-bot joined 17:37 linkable6 left, evalable6 left 17:38 linkable6 joined 17:39 evalable6 joined 18:00 reportable6 left 18:02 reportable6 joined
lizmat appears unstoppable: dev.to/lizmat/walking-the-rakuast-tree-3fbd 18:23
JRaspass I swear that was a three-part series when I last looked, it keeps growing! 18:33
tellable6 2023-02-11T13:24:21Z #raku <tbrowder> JRaspass i
2023-02-11T13:25:07Z #raku <tbrowder> JRaspass i've asked for some help on irc #raku-land
lizmat it was :-) 18:34
Xliff Those RakuAST nodes... they might be part Tribble! 20:54
20:56 Xliff left 21:11 sena_kun left 21:18 samebchase0 joined 21:19 samebchase left, samebchase0 is now known as samebchase 21:43 coleman left, sena_kun joined 21:44 coleman joined 21:50 sena_kun left 21:52 Xliff joined