🦋 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.
xinming_ m: my @a = [0 .. 99]; @a[(0 ... Inf, 3)]; 06:02
camelia ( no output )
xinming_ m: my @a = [0 .. 99]; @a[(0 ... Inf, 3)].raku.say;
camelia (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, …
tadzik oh hai 10:10
I just transferred File-Find to raku-community-modules, as requested. There may have been more, so let me know if you're interested in anything – I'm not sure if anything else is in demand :) 10:11
Geth ecosystem/main: 3e8671a813 | (Elizabeth Mattijsen)++ | META.list
Remove File::Find and JSON::Unmarshal

The now live in raku-community-modules and on fez
10:57
lizmat tadzik: thank you for all the work! 11:00
tbrowder__ tadzik: thanks 11:44
tbrowder__ lizmat: ck my comments in File::Find ref the tags issue 14:47
librasteve tadzik: would you say Grammar::BNF, Shell::Command and Test::Harness are in fair shape ... they all seem like good ones to preserve / continue 17:24
xinming_ m: subset X of Str where *.so; class A { method a (X $x) { $x.say }; }; my A $a .= new; (1..10).hyper(:batch, :degree(2)).map({ $a.a($_); }); 18:33
camelia A worker in a parallel iteration (hyper or race) initiated here:
in block <unit> at <tmp> line 1

Died at:
Type check failed in binding to parameter '$x'; expected X but got Int (1)
in method a at <tmp> line 1
in block a…
xinming_ I think this is a bug in method call, any ideas?
m: subset X of Str where *.so; class A { method a (X $x) { $x.say }; }; my A $a .= new; (1..10).hyper(:batch(1), :degree(2)).map({ $a.a($_); }); 18:38
camelia A worker in a parallel iteration (hyper or race) initiated here:
in block <unit> at <tmp> line 1

Died at:
Type check failed in binding to parameter '$x'; expected X but got Int (1)
in method a at <tmp> line 1
in block a…
Nahita but you're passing an integer to what expects a nonempty string (X)? so it's not a bug i think 18:39
if you call it with, e.g., $a.a("$_") it shouldn't error
or ~$_ 18:40
xinming_ m: subset X of Str where *.so; class A { method a (X $x) { $x.say }; }; my A $a .= new; (1..10).hyper(:batch(1), :degree(2)).map({ $a.a("$_"); }); 18:58
camelia 1
2
3
4
5
6
7
8
9
10
xinming_ hmm, sorry, I don't narrow down the issue enough.
Will try more, I do actually meet some kind of issue like this today.
m: my %m = ("a" => 1, "b" => 2, "c" => 3); subset X of Str where * (elem) %m.keys.Set; class A { method a (X $x) { $x.say }; }; my A $a .= new; ("a" .. "c").hyper(:batch, :degree(2)).map({ $a.a($_); }); 19:00
camelia A worker in a parallel iteration (hyper or race) initiated here:
in block <unit> at <tmp> line 1

Died at:
Constraint type check failed in binding to parameter '$x'; expected X but got Str ("a")
in method a at <tmp> line 1
xinming_ Nahita, Now, this time is subset X of Str... 19:01
this is exactly I discovered
nemokosch is the hyper needed? 19:04
xinming_ nemokosch, without hyper, it runs fine. 19:05
m: my %m = ("a" => 1, "b" => 2, "c" => 3); subset X of Str where * (elem) %m.keys.Set; class A { method a (X $x) { $x.say }; }; my A $a .= new; ("a" .. "c").map({ $a.a($_); }); 19:06
camelia a
b
c
xinming_ we are talking about the bug triggered :-)
xinming_ So I think it's probably a edge case cause subset type validation fails with hyper/race 19:07
NemokoschKiwi m: my %m = ("a" => 1, "b" => 2, "c" => 3); subset X of Str where * (elem) %m.keys.Set; class A { method a (X $x) { $x.say }; }; my A $a .= new; $a.a(all "a" .. "c") 19:10
camelia a
b
c
NemokoschKiwi I wish there were <<. 19:11
not just >>.
Nahita seems so. BTW, you can do * (elem) %m instead of .keys.Set because keys are already unique and (elem) against a Map looks for keys
or * ~~ %m does the same thing also
* ∈ %m is the shortest 19:12
xinming_ Anyone here would confirm my bug? 19:13
Nahita i ran with 2021.04 and got an error 19:13
xinming_ Let's not talk about the * (elem) %m.keys.Set thing
nemokosch oh right... 19:14
bisectable time
NemokoschKiwi keep calm, and... 19:14
bisectable6: my %m = ("a" => 1, "b" => 2, "c" => 3); subset X of Str where * (elem) %m.keys.Set; class A { method a (X $x) { $x.say }; }; my A $a .= new; ("a" .. "c").hyper(:batch, :degree(2)).map({ $a.a($_); });
bisectable6 NemokoschKiwi, Will bisect the whole range automagically because no endpoints were provided, hang tight
NemokoschKiwi, Output on all releases: gist.github.com/3cbc7dd556a11bead8...f096f36735 19:15
NemokoschKiwi, More than 4 changes to bisect, please try a narrower range like old=2017.09 new=HEAD
nemokosch ultimately it's the same error everywhere
xinming_ I think it's a long time bug. 19:16
xinming If anyone responds to the bug, Please copy the answer agaiin, I restarted the machine 19:56
librasteve nice! 20:02
tadzik hm, I built Test::Harness? 20:05
tadzik github.com/tadzik/Test-Harness hmm, I don't think I did after all :P 20:06
is it actually used? 20:07
librasteve tadzik: sorry I took a deeper look and its only 72 lines marked May change. Probably too early to use this. 20:09
I withdraw my request 20:10
xinming m: m: my %m = ("a" => 1, "b" => 2, "c" => 3); subset X of Str where * (elem) %m.keys.Set; sub a (X $x) { $x.say }; ("a" .. "c").hyper(:batch(1), :degree(2)).map({ a($_); });
camelia A worker in a parallel iteration (hyper or race) initiated here:
in block <unit> at <tmp> line 1

Died at:
Constraint type check failed in binding to parameter '$x'; expected X but got Str ("a")
in sub a at <tmp> line 1
i…
xinming So, I think it's not only the method call will trigger the bug
but also sub calls.
librasteve probably should remove from raku.land too if its not a real thing 20:11
(or at least mark as deprecated somehow) 20:12