🦋 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.
Nemokosch bisectable6: dd «  "$a b" c  ».raku 00:00
bisectable6 Nemokosch, Will bisect the whole range automagically because no endpoints were provided, hang tight
Nemokosch, Output on all releases: gist.github.com/a72a6ca51ac0580f6a...d6d92ae0b5
Nemokosch, Bisecting by output (old=2022.03 new=2022.04) because on both starting points the exit code is 1
Nemokosch, bisect log: gist.github.com/7ac89bcccd5f30dee5...32eb07db84 00:01
Nemokosch, (2022-03-23) github.com/rakudo/rakudo/commit/a5...ce933274f0
Nemokosch, Output on all releases and bisected commits: gist.github.com/fdf2b765c6e38bca2a...8ce6fc27bf
Nemokosch is an idiot 00:02
bisectable6: my $a = 42; dd «  "$a b" c  »
bisectable6 Nemokosch, Will bisect the whole range automagically because no endpoints were provided, hang tight
bisectable6 Nemokosch, ¦6c (66 commits): «("42 b", "c  ")␤» 00:03
Nemokosch, Nothing to bisect!
Nemokosch oof
that's a non-breaking space :clown: 00:05
Geth ¦ problem-solving: 2colours assigned to codesections Issue Handling of non-breaking spaces when splitting to words github.com/Raku/problem-solving/issues/357 00:24
grondilu m: package foo { package bar { sub f is export {} }; sub f is export {} }; 02:57
camelia ===SORRY!=== Error while compiling <tmp>
A symbol '&f' has already been exported
at <tmp>:1
grondilu ^but its ::bar that exported it, not ::foo 02:58
m: package { sub f is export {} }; sub f is export {}
camelia ===SORRY!=== Error while compiling <tmp>
A symbol '&f' has already been exported
at <tmp>:1
grondilu m: package { multi f(Int) is export {} }; multi f(Str) is export {} 02:59
camelia ===SORRY!=== Error while compiling <tmp>
A symbol '&f' has already been exported
at <tmp>:1
grondilu even when they are different candidates, they conflict? 03:00
Geth doc: 0rir++ created pull request #4173:
Consolidate supply from statement-prefixes.pod6 to control.pod6.
03:15
Geth doc: 0rir++ created pull request #4174:
Consolidate gather from statement-prefixes.pod6 to control.pod6.
04:13
Geth ecosystem/main: ac05b62bbc | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | META.list
Continues removals
10:31
Geth doc: 0rir++ created pull request #4175:
Add glossary to HomePage.pod6
15:31
mscha My Advent of Code for the day: github.com/mscha/aoc/blob/master/aoc2022/aoc14 17:18
hobbified mine: github.com/arodland/Advent-of-Code.../master/14 -- nothing fancy or interesting (or particularly clean) this time, but I did it in one pass and it works. I got to use % in a regex for the second day in a row, so that's nice. 17:29
mscha m: class Foo { has $.bar; method Str { "[$!bar]" } }; my $f = Foo.new(:bar(123)); say "$f"; say $f; 17:30
camelia [123]
Foo.new(bar => 123)
mscha Why doesn't method gist default to self.Str?
If I had a nickel for every time I wrote method gist { self.Str } ...
drakonis oh, rakuast has been merged 17:44
what a time to be alive.
Nemokosch not complete yet but maybe encouraging to participate 18:03
Xliff Hi ho. 19:40
Given: "sub a ($a, $b, $c, $d) { ... }" can RakuAST (in its current state) be used to replace any of the parameters on a()? 19:41
So that would look something like this: 19:50
"sub a ($a, $b, EVAL { c-param() }, $d) { ... }" 19:51
where c-param() is a function that generates the RakuAst necessary to make a the parameter node $c
melezhik SmokeMachine: please see my PR, I suggested some fixes and improvements on CI pipeline for Red 20:56
SmokeMachine melezhik: I just merged that! Thank you! 21:22
tellable6 SmokeMachine, I'll pass your message to melezhik
grondilu_ m: package Foo { our sub bar is export {}; &bar.wrap: -> { say "hi" } }; import Foo; bar; 23:01
camelia ( no output )
grondilu_ m: package Foo { our sub bar is export {}; &bar.wrap: -> { say "hi" } }; import Foo; our::bar;
camelia Could not find symbol '&bar' in 'GLOBAL::our'
in block <unit> at <tmp> line 1
grondilu_ m: package Foo { our sub bar is export {}; &bar.wrap: -> { say "hi" } }; import Foo; Foo::bar;
camelia hi
grondilu_ the wrapping is lost during exportation? 23:02
grondilu just realized he had a running session 23:02
package Foo { our sub bar is export { "bar" }; &bar.wrap: -> { say "({callsame})" } }; import Foo; say bar; say Foo::bar; 23:05
evalable6 bar
(bar)
True
Geth ecosystem/main: c1ef5cf325 | (Elizabeth Mattijsen)++ | META.list
Remove Readline by fooist, it lives on CPAN as well
grondilu m: package Foo { our sub bar is export { "bar" }; &bar.wrap: -> { "({callsame})" } }; import Foo; say bar; say Foo::bar;
camelia bar
(bar)
grondilu package Foo { our sub bar is export { "bar" }; CHECK &bar.wrap: -> { say "({callsame})" } }; import Foo; say bar; say Foo::bar; 23:08
evalable6 (bar)
True
(bar)
True
grondilu I guess without a phaser, the wrapping is done after the export, so it can't be seen after the import? 23:09
package Foo { our sub bar is export { "bar" }; INIT &bar.wrap: -> { "({callsame})" } }; import Foo; say bar; say Foo::bar; 23:10
evalable6 (bar)
(bar)
grondilu meh, that will do
Xliff Given: "sub a ($a, $b, $c, $d) { ... }" can RakuAST (in its current state) be used to replace any of the parameters on a()? 23:26
So that would look something like this:
"sub a ($a, $b, EVAL { c-param() }, $d) { ... }"
where c-param() is a function that generates the RakuAst necessary to make a the parameter node $c
tonyo are you looking for macros? 23:50