🦋 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:07 bdju joined
Voldenet actually don't use augment in grammars, it's bad 01:10
actions are elegant, but I like the inline style
m: grammar :: { rule TOP { \d+ <?{ $/.make($/.Int) }> }}.parse("42").made.say
camelia 42
Voldenet nevermind, I read the question it was related to, actions are the way to go 01:15
01:23 hulk joined, kylese left 01:24 derpydoo joined 01:59 lichtkind joined
wayland Voldenet: I was looking at using augment on the Match, so that it would have an additional attribute. 02:13
02:15 hulk left
wayland I like the idea of it being an action; I'll have to investigate the actions object that's paired with the Raku grammar. 02:15
02:15 kylese joined 02:17 wayland left
antononcube @wayland See the section "Add actions directly" here: docs.raku.org/language/grammar_tut...r_tutorial 02:18
02:40 stanrifkin joined 02:41 wayland76 joined, wayland76 left, wayland76 joined 02:42 wayland76 left, wayland76 joined 02:43 wayland76 left 02:44 wayland joined, wayland left, wayland joined
wayland antononcube: I was more meaning that I need to find the actions associated with github.com/rakudo/rakudo/blob/main....nqp#L2173 (which I found at the fairly obvious github.com/rakudo/rakudo/blob/be3d....nqp#L1783 ) 02:45
02:45 wayland left, wayland joined 02:47 wayland left, wayland joined 02:48 wayland left, wayland joined 02:51 wayland left, wayland joined 02:52 wayland left, wayland joined 02:56 wayland left, wayland76 joined 03:06 wayland joined 03:08 wayland76 left 03:11 wayland left, wayland joined 03:14 wayland left, wayland joined 03:15 wayland left 03:16 wayland joined, wayland left, wayland joined 03:17 wayland left 03:18 wayland joined 03:33 stanrifkin_ joined 03:36 lichtkind_ joined, stanrifkin left 03:40 lichtkind left 04:09 wayland left, wayland joined 04:29 wayland left 04:30 wayland joined, kylese left 04:33 kylese joined 04:44 wayland76 joined, wayland left 05:06 lichtkind_ left 05:30 kylese left, kylese joined 05:40 abraxxa-home joined 05:41 abraxxa-home left 05:42 abraxxa-home joined 06:00 amaz0n joined 06:36 stanrifkin_ left 07:29 lizmat joined 08:03 undoencalma joined 08:14 undoencalma left 08:15 lizmat left 08:17 lizmat joined 08:18 abraxxa-home left 08:21 lizmat left 08:23 Aedil left 08:59 amaz0n left 09:29 jpn left 09:44 derpydoo left 10:09 abraxxa-home joined 10:27 Sgeo left 11:40 lichtkind_ joined
tbrowder note to self: chdir does NOT change location of the running program--super duh!! 12:09
in the docs it says do this to really 'cd': temp $*CWD; &*chdir('/tmp'); 12:14
i assume the '/tmp' could be any valid path, yes? 12:15
m: temp $*CWD; &*chdir('/usr'); 12:16
camelia ( no output )
tbrowder m: temp $*CWD; &*chdir('/usr'); say $*CWD 12:18
camelia "/usr".IO
tbrowder 👏
m: my f($dir) {temp $*CWD; &*chdir($dir); say $*CWD;}; f "/usr/bin" 12:21
camelia ===SORRY!===
Type 'f' is not declared
at <tmp>:1
------> my f<HERE>($dir) {temp $*CWD; &*chdir($dir); say $
Malformed my
at <tmp>:1
------> my<HERE> f($dir) {temp $*CWD; &*chdir($dir); say
tbrowder m: sub f($dir) {temp $*CWD; &*chdir($dir); say $*CWD;}; f "/usr/bin" 12:24
camelia "/usr/bin".IO
tbrowder excellent! why not add a mult or method to chdir to really change directories? 12:26
12:29 JimmyZhuo joined
tbrowder well, never mind, i'm going down the wrong "path" 12:41
12:49 MoC joined 13:01 leah2 left 13:22 leah2 joined 13:41 leah2 left
librasteve weekly: rakujourney.wordpress.com/2025/04/...tic-htmxy/ 13:56
notable6 librasteve, Noted! (weekly)
13:56 leah2 joined
librasteve wayland: imo Grammar Actions are the way to go with make/made ... there is a lot going on with grammars backtracking and so on that otherwise can make very thorny issues 13:58
tellable6 librasteve, I'll pass your message to wayland
14:28 JimmyZhuo left
lichtkind_ are there any feature cmparsons 6c vs 6d ? thank you 15:15
15:17 lichtkind_ is now known as lichtkind 15:23 Aedil joined
librasteve lichtkind: I guess the most likely place to look is the 6d release notes on the rakudo github repo 15:28
lichtkind librasteve: thank you 15:30
librasteve yw ... it's been a long time since I heard the name 6c 15:51
17:29 vrurg left 17:31 vrurg joined 18:16 Guest5455 joined 18:19 Guest5455 is now known as misha, misha is now known as Guest5764 18:21 kawaii joined 18:49 abraxxa-home left 18:58 MasterDuke joined 18:59 lizmat joined 19:15 MoC left 19:17 Sgeo joined 19:42 MasterDuke left 20:31 kawaii left 20:39 MasterDuke joined 21:03 Aedil left 21:19 bdju left 21:22 bdju joined, MasterDuke left 21:23 Geth left, Geth joined 22:36 MasterDuke joined 23:10 wayland76 left 23:18 MasterDuke left