| 21 Sep 2026 | |||
| lucs | The idea is that the top should match two bunches of letters: a`s or b`s, then c`s or d`s. | 14:45 | |
| In the TOP action method, I don't want to have to go through "Did you match a`s? No? Then did you match b`s?" and so on. | 14:46 | ||
| I'm unable to correctly express the two captures that the TOP token obtains. | 14:47 | ||
| lizmat | and yet another Rakudo Weekly News hits the Net: rakudoweekly.blog/2026/09/21/2026-...er-favore/ | 15:53 | |
| lucs | No ideas for my grammar problem?: gist.github.com/lucs/444248e1a35bc...0a11b9f277 | 18:47 | |
| disbot | <demanddystopia> hmm | 21:35 | |
| <demanddystopia> if you make that '%s - %s', $0, $1 that works for this case, but only because that happens to align with a & d so that seems like a bad solition, not too good with grammars but pretty sure there's ways to make that indexible by key | 21:37 | ||
| <demanddystopia> ah no, rereading it isn't that actually what's intended here? Given the two capturing groups | 21:43 | ||
| <demanddystopia> could also do $/[0] & $/[1] though I assume that $0 & $1 are just shorthand for that | 21:45 | ||
| lucs | OMG. I can't believe I didn't try that. All the variations I tried had a ".made" appended to the two wanted values, which always result in Nil`s. | 22:00 | |
| Turns out that plain $0 would also work if the a, b, c, d actions weren't defined. | 22:02 | ||
| disbot | <demanddystopia> yeah, because it actually doesn't call them at all with this | 22:03 | |
| lucs | Welp, as you can guess, this is just test code, to try to figure out what wasn't working in my real code. | 22:05 | |
| My real code actually does need to see the made() values attached to the $0 etc. | 22:06 | ||
| disbot | <demanddystopia> ah then that's simpler yea | ||
| 22 Sep 2026 | |||
| lucs | Fixed: gist.github.com/lucs/444248e1a35bc...0a11b9f277 | 14:32 | |
| Not the most elegant, but there it is. | 14:33 | ||
| disbot | <demanddystopia> couldn't you do $0.values[0].made instead of the double hash conversion & fishing for the key via .keys? | 14:46 | |
| <demanddystopia> yea looks possible, also the .hash seems skippable, $0{$0.keys[0]}.made seems to do the same, that working confused me for a bit before realizing it's operating on $0 not $/ | 15:00 | ||
| <demanddystopia> also pretty sure it was wrong to call it a hash conversion, it just returns the hash inherent in the Match object | 15:02 | ||
| lucs | Yes, $0.values[0].made appears to work fine. | 15:12 | |
| Thanks! | |||
| Final fix: gist.github.com/lucs/444248e1a35bc...0a11b9f277 | 15:28 | ||
| (oops, fixed typo) | 15:29 | ||
| 25 Sep 2026 | |||
| disbot | <antononcube> Why an allomorph be an Inf? my $a = NumStr.new(1e-4, "1e-4"); say $a ~~ Inf; # False say $a.isa(Inf); # True | 17:15 | |
| lizmat | .isa takes the .WHAT of its argument | 17:22 | |
| and $a is a Num | |||
| so say $a.isa(Inf) is the same as saying $a.isa(Inf.WHAT), which is the same as saying $a.isa(Num) | 17:23 | ||
| disbot | <antononcube> Ok, thank you!! | 17:26 | |
| 26 Sep 2026 | |||
| ab5tract | m: ($ = Inf) == Inf ==> say() | 08:16 | |
| camelia | True | ||
| ab5tract | m: ($ = Inf) === Inf ==> say() | ||
| camelia | True | ||
| lizmat | m: ($ = Inf) =:= Inf ==> say() | ||
| camelia | False | ||
| ab5tract | basically every test besides .isa returns the expected value | 08:18 | |
| I don't think I've ever used .isa | 08:19 | ||
| disbot | <antononcube> I use .isa a lot to check for Whatever. | 13:37 | |
| 29 Sep 2026 | |||
| lizmat | And yet another Rakudo Weekly News hits the Net: rakudoweekly.blog/2026/09/29/2026-...nstreamed/ | 13:22 | |
| disbot | <antononcube> Zahatski beat me to it. | 14:17 | |
| <antononcube> I still plan to make an AI-agent skill for reliable URL retrieval of docs.raku.org. | 14:18 | ||
| <antononcube> Should work with his Raku knowledge base too. | 14:19 | ||
| 5 Oct 2026 | |||
| lizmat | The first Raku Weekly News hits the Net: rakuweekly.blog/2026/10/05/2026-40-pythonesque/ | 13:49 | |
| 12 Oct 2026 | |||
| and yet another Raku Weekly News hits the Net: rakuweekly.blog/2026/10/12/2026-41...-business/ | 18:35 | ||
| 14 Oct 2026 | |||
| disbot | <anagogogo> hi im trying out raku but im stuck at downloading rakudo from rakubrew download: > Couldn't fetch release index at rakudo.org/dl/rakudo. Error: 599 Internal Exception | 09:02 | |
| lizmat | could this be a firewall issue? I can get the release index just fine | 09:03 | |
| disbot | <anagogogo> even though i do have response when i tried accessing it through firefox | ||
| <anagogogo> i could manually download the binaries | 09:04 | ||
| lizmat | not a rakubrew user myself, but that link you posted, works for me | 09:05 | |
| disbot | <anagogogo> well i guess i'd live without version manager for now | 09:06 | |
| <anagogogo> oh it seems to be my isp issue with ipv6 | 10:05 | ||
| <anagogogo> forcing windows to use ipv4 solved the problem | |||
| lizmat | good to hear! | 10:07 | |