🦋 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.
[Coke] metoo 01:48
it was a killer feature from an alternate timeline.
patrickb The binaries for 2025.02 are now available on rakudo.org (and thus also in rakubrew). 06:50
nine m: sub foo() { ... }; sub foo() { say "foo" }; foo 09:00
camelia foo
nine So far so clear. 09:01
m: our sub foo() { ... }; our sub foo() { say "foo" }; foo
camelia ===SORRY!=== Error while compiling <tmp>
Redeclaration of routine 'foo' (already defined in package GLOBAL).
Did you mean to declare a multi-sub?
at <tmp>:1
------> o() { ... }; our sub foo() { say "foo" }<HERE>; foo
expecting any of:…
nine Still clear?
timo sounds like we're just not checking if something in the package is a stub? 09:12
timo so, the attempt to from-xml the S05.html from the perl6-web-scraper tests comes from the fact that perl6-web-scraper only tries to use HTML::Parser::XML when the thing being passed to the scrape method is an http or https url, but if it's a string or something that can be slurped, it will just call from-xml on it. the tests of perl6-web-scraper therefore hang because the XML module doesn't bail 09:48
out fast when an XML document is malformed, instead going into catastrophic backtracking
Geth rakudo/main: 080e71f31d | (Stefan Seifert)++ | src/Raku/Actions.nqp
RakuAST: fix exceptions in BEGIN time EVAL leaving resolver in inconsistent state
10:00
rakudo/main: d5fb927c65 | (Stefan Seifert)++ | 3 files
RakuAST: support replacing routine stubs without special syntax

Fixes: sub foo() { ... }; sub foo() { say "for real" };
nine 1186 10:01
Geth ¦ rakudo: lizmat unassigned from tbrowder Issue multi-line comment problems github.com/rakudo/rakudo/issues/3339 10:19
rakudo/main: 3ee9c20bfe | (Elizabeth Mattijsen)++ | src/core.c/REPL.rakumod
Allow multi-line comments in REPL as well

Fixes #3339
lizmat nine: do you think we could make this work in RakuAST: 10:36
m: my $a; { q/$a := 42/.EVAL }
camelia ===SORRY!=== Error while compiling /home/camelia/EVAL_0
Cannot bind to '$a' because it was bound in a signature and variables
bound in signatures cannot be rebound unless they were declared with the
'is rw' or 'is copy' traits
at /home/camelia…
lizmat hmmm further golf:
m: my $a; q/$a := 42/.EVAL
camelia ===SORRY!=== Error while compiling /home/camelia/EVAL_0
Cannot bind to '$a' because it was bound in a signature and variables
bound in signatures cannot be rebound unless they were declared with the
'is rw' or 'is copy' traits
at /home/camelia…
nine probably? 10:37
lizmat in light of #1565 10:38
in light of R#1565
linkable6 R#1565 [open]: github.com/rakudo/rakudo/issues/1565 [REPL][Will be addressed in RakuAST] In REPL cannot bind to scalars declared on earlier lines
lizmat ok, I'll leave the "will be addressed" tag on it then :-)
Geth rakudo/main: b6eed683ba | (Elizabeth Mattijsen)++ | src/core.c/Range.rakumod
Add Range.min/max(:k,:kv,:p) support

As mentioned lacking in #5791
11:10
roast: bbd506e1bf | (Elizabeth Mattijsen)++ | S02-types/range.t
Add Range tests for #5791
11:46
lizmat notable6: weekly 12:44
notable6 lizmat, 4 notes: gist.github.com/a196e798a226837de4...1e8d09fe20
lizmat notable6: weekly reset 12:48
notable6 lizmat, Moved existing notes to “weekly_2025-02-24T12:48:56Z”
Geth rakudo/main: e39269087e | (Stefan Seifert)++ | 2 files
RakuAST: support taking operators as sub arguments

Lets us successfully parse and compile: sub foo2(&infix:<@@>)
13:14
rakudo/main: 37b45597a9 | (Stefan Seifert)++ | src/Raku/ast/expressions.rakumod
RakuAST: don't die when operator doesn't resolve to routine directly

When an operator is passed as an argument or stored in a variable, we won't resolve to the routine directly. Thus we can't ask the routine for its precedence information.
nine 1187 13:16
lizmat and yet another Rakudo Weekly News hits the Net: rakudoweekly.blog/2025/02/24/2025-...avalanche/ 13:23
Geth roast: f21880cb52 | (Elizabeth Mattijsen)++ | S02-types/range.t
More tests for #5791
14:10
rakudo/main: 2d6dd3e3f5 | (Elizabeth Mattijsen)++ | src/core.c/Any-iterable-methods.rakumod
Make min/max(Range) do the right thing

Fixes #5791
14:11
Geth rakudo/main: 7940f6d82e | (Stefan Seifert)++ | src/Raku/Grammar.nqp
RakuAST: support operators declared as variables (instead of constants)

Fixes: my &infix:<foo> = sub ($a, $b) { $a ~ $b }; say "foo" foo "bar"
14:45
rakudo/main: 4dde69f9a4 | (Stefan Seifert)++ | src/Raku/ast/call.rakumod
RakuAST: fix explicit return with pair syntax

Fixes: return :a(1);
nine 1188
Geth rakudo/main: 3610e7abac | (Stefan Seifert)++ | src/Raku/ast/statements.rakumod
RakuAST: ignore empty statements for sink and return value determination