🦋 Welcome to Raku! raku.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: colabti.org/irclogger/irclogger_log/raku
Set by ChanServ on 14 October 2019.
Zero_Dogg Anyone else having issues with vim syntax hilight? (using the vim-raku plugin). Quite often in module files vim (randomly) thinks the entire file is a string and hilights it as such (even with :syntax sync fromstart) 08:12
moon-child Zero_Dogg: yep, I have the same problem 08:13
Zero_Dogg moon-child: can't find any issue opened about it, might be time to open one? 08:18
Zero_Dogg github.com/Raku/vim-raku/issues/22 08:33
Zero_Dogg Is there any raku equivalent of 'perl -i' (ie. to replace 'perl -pi -E' with 'raku -pe') ? 11:53
SmokeMachine xinming_: was that you who asked me about has-one relationships on Red recently? I've just opened this issue, I'd like to know your (and anyone's) opinion about that, please: github.com/FCO/Red/issues/452 11:56
tobs Zero_Dogg: no, I believe you have to do that by yourself. The <> magic exists in a reduced form in the &lines sub, so you could think about wrapping around that. 11:57
Zero_Dogg tobs: nod, probably not worth it, perl -pi -E is for quick hacks, or as a super-powered sed, if I have to add boilerplate to it then it's most likely overkill 11:58
SmokeMachine .tell xinming_ was that you who asked me about has-one relationships on Red recently? I've just opened this issue, I'd like to know your (and anyone's) opinion about that, please: github.com/FCO/Red/issues/452 12:05
tellable6 SmokeMachine, I'll pass your message to xinming_
AlexDaniel tony-o: ping :) 14:21
xinming_ SmokeMachine: I think we need the feature, :prefetch and :cache when we create the relation. ;-) 14:36
tellable6 2020-11-04T12:05:59Z #raku <SmokeMachine> xinming_ was that you who asked me about has-one relationships on Red recently? I've just opened this issue, I'd like to know your (and anyone's) opinion about that, please: github.com/FCO/Red/issues/452
cfa o/ 16:00
SmokeMachine xinming_: we already have :prefetch (if my memory isn't tricking me) 16:03
tony-o AlexDaniel: i'll take a look 18:16
tellable6 2020-09-30T15:10:24Z #raku <patrickb> tony-o Have you seen github.com/tony-o/perl6-pluggable/pull/17 ?
AlexDaniel` tony-o: thank you!
tony-o .tell patrickb merged on pluggable.
tellable6 tony-o, I'll pass your message to patrickb
tony-o AlexDaniel`: do you have which issue # handy? 18:17
nvm, found it - bummer. 18:19
AlexDaniel` thanks! 18:20
Geth_ problem-solving/master: 4 commits pushed by (Daniel Sockwell)++, (Aleks-Daniel Jakimenko-Aleksejev)++ 18:22
Geth_ problem-solving: ba2e9c49e4 | (Aleks-Daniel Jakimenko-Aleksejev)++ | .github/CODEOWNERS
Fix CODEOWNERS file according to the README

  AlexDanielcodesections (based on #242).
18:24
AlexDaniel` o/
tony-o \o 19:01
cpan-raku New module released to CPAN! Sparrowdo (0.1.11) by 03MELEZHIK 19:18
New module released to CPAN! Sparrow6 (0.0.31) by 03MELEZHIK
AlexDaniel` hmmm should I let Geth spam a little or turn it off… 20:22
let's try the silent way…
OK, problem-solving tickets are now reassigned 20:23
codesections: have fun! 👍
Geth_ ¦ doc: AlexDaniel self-unassigned FAQ/unicode_entry Unicode characters that look alike github.com/Raku/doc/issues/1444 20:27
cpan-raku New module released to CPAN! Cro::WebSocket (0.8.4) by 03JNTHN 20:51
New module released to CPAN! Cro::WebApp (0.8.4) by 03JNTHN
New module released to CPAN! Cro::TLS (0.8.4) by 03JNTHN
New module released to CPAN! Cro::HTTP (0.8.4) by 03JNTHN
New module released to CPAN! cro (0.8.4) by 03JNTHN
New module released to CPAN! Cro::Core (0.8.4) by 03JNTHN
melezhik How do I make a slice of 2 dimensions matrix ? 21:03
tellable6 2020-11-02T08:17:11Z #raku <nine> melezhik: $obj."$method-name"()
melezhik m: my @foo; for 0 .. 2 -> $i { for 0 .. 2 -> $j { @foo[$i,$j] = $i + $j } }; 21:05
camelia ( no output )
melezhik m: my @foo; for 0 .. 2 -> $i { for 0 .. 2 -> $j { @foo[$i,$j] = $i + $j } }; say @foo[1,2]; 21:06
camelia ((Any) (Any))
melezhik m: my @foo; for 0 .. 2 -> $i { for 0 .. 2 -> $j { @foo[$i,$j] = "JJJ" } }; say @foo[1,2];
camelia ((Any) (Any))
melezhik m: my @foo; for 0 .. 2 -> $i { for 0 .. 2 -> $j { @foo[$i,$j] = "JJJ" } }; say @foo[0,0]; 21:06
camelia ((Any) (Any))
melezhik m: my @foo = Array.new; for 0 .. 2 -> $i { for 0 .. 2 -> $j { @foo[$i].push: "JJJ" } }; say @foo[0,0]; 21:08
camelia ([JJJ JJJ JJJ] [JJJ JJJ JJJ])
melezhik m: my @foo = Array.new; for 0 .. 2 -> $i { for 0 .. 2 -> $j { @foo[$i].push: "JJJ" } }; say @foo[0];
camelia [JJJ JJJ JJJ]
melezhik m: my @foo = Array.new; for 0 .. 2 -> $i { for 0 .. 2 -> $j { @foo[$i].push: "JJJ" } }; say @foo[0][0];
camelia JJJ
melezhik m: my @foo = Array.new; for 0 .. 2 -> $i { for 0 .. 2 -> $j { @foo[$i].push: "JJJ" } }; say @foo[0 .. 1][0 .. 1]; 21:09
camelia ([JJJ JJJ JJJ] [JJJ JJJ JJJ])
melezhik m: my @foo = Array.new; for 0 .. 2 -> $i { for 0 .. 2 -> $j { @foo[$i].push: "{i=$i} {j=$j} JJJ" } }; say @foo[0 .. 1][0 .. 1];
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared routine:
j used at line 1
melezhik m: my @foo = Array.new; for 0 .. 2 -> $i { for 0 .. 2 -> $j { @foo[$i].push: "{$i+$j}" } }; say @foo[0 .. 1][0 .. 1]; 21:10
camelia ([0 1 2] [1 2 3])
melezhik m: my @foo = Array.new; for 0 .. 2 -> $i { for 0 .. 2 -> $j { @foo[$i].push: "{'i='+$i + ' j=' +$j }" } }; say @foo[0 .. 1][0 .. 1]; 21:12
camelia Cannot convert string to number: base-10 number must begin with valid digits or '.' in '3⏏5i=' (indicated by ⏏)
in block at <tmp> line 1
in block <unit> at <tmp> line 1
melezhik m: my @foo = Array.new; for 0 .. 2 -> $i { for 0 .. 2 -> $j { @foo[$i].push: "{'i='+$i.to_s + ' j=' +$j.to_s }" } }; say @foo[0 .. 1][0 .. 1];
camelia No such method 'to_s' for invocant of type 'Int'. Did you mean any of
these: 'cos', 'does'?
in block at <tmp> line 1
in block <unit> at <tmp> line 1
melezhik m: my @foo = Array.new; for 0 .. 2 -> $i { for 0 .. 2 -> $j { @foo[$i].push: "{'i='+($i.fmt('%03d')) + ' j=' +($j.fmt('%03d') }" } }; say @foo[0 .. 1][0 .. 1]; 21:14
camelia 5===SORRY!5=== Error while compiling <tmp>
Unable to parse expression in parenthesized expression; couldn't find final ')' (corresponding starter was at line 1)
at <tmp>:1
------> 3.fmt('%03d')) + ' j=' +($j.fmt('%03d') 7⏏5}" } }; sa…
melezhik m: my @foo = Array.new; for 0 .. 2 -> $i { for 0 .. 2 -> $j { @foo[$i].push: "{'i='+($i.fmt('%03d')) + ' j=' +($j.fmt('%03d')) }" } }; say @foo[0 .. 1][0 .. 1]; 21:15
camelia Cannot convert string to number: base-10 number must begin with valid digits or '.' in '3⏏5i=' (indicated by ⏏)
in block at <tmp> line 1
in block <unit> at <tmp> line 1
melezhik m: my @foo = Array.new; for 0 .. 2 -> $i { for 0 .. 2 -> $j { my $val = "i=$i; j=$j"; @foo[$i].push: $val } }; say @foo[0 .. 1][0 .. 1]; 21:17
camelia ([i=0; j=0 i=0; j=1 i=0; j=2] [i=1; j=0 i=1; j=1 i=1; j=2])
melezhik m: my @foo = Array.new; for 0 .. 2 -> $i { for 0 .. 2 -> $j { my $val = "i=$i; j=$j"; @foo[$i].push: $val } }; say @foo[0][0];
camelia i=0; j=0
melezhik m: my @foo = Array.new; for 0 .. 2 -> $i { for 0 .. 2 -> $j { my $val = "i=$i; j=$j"; @foo[$i].push: $val } }; say @foo[1][1];
camelia i=1; j=1
melezhik m: my @foo = Array.new; for 0 .. 2 -> $i { for 0 .. 2 -> $j { my $val = "i=$i; j=$j"; @foo[$i].push: $val } }; say @foo[1..2][1..2]; 21:18
camelia ([i=2; j=0 i=2; j=1 i=2; j=2] Nil)
melezhik so I know how to make a slice on Array, but I don't know if it possible to do the same with matrix (2 dim array )
m: my @foo = Array.new; for 0 .. 2 -> $i { for 0 .. 2 -> $j { my $val = "i=$i AND j=$j"; @foo[$i].push: $val } }; say @foo[1..2][1..2]; 21:19
camelia ([i=2 AND j=0 i=2 AND j=1 i=2 AND j=2] Nil)
melezhik gist.github.com/melezhik/b1d4060e1...15679ae4fa not I really want to ... I want an array of arrays as a result of Matrix slice, what I am doing wrong here? 21:24
SmokeMachine .tell xinming_ the first step has been done: github.com/FCO/Red/issues/452 22:15
tellable6 SmokeMachine, I'll pass your message to xinming_