🦋 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. |
|||
00:58
hudo left
00:59
hudo joined
01:08
Altreus left,
Altreus joined
|
|||
antononcube | Use LLMs — can help you a lot! | 01:12 | |
01:21
hulk joined,
kylese left
01:29
perryprog left,
perryprog joined
01:34
_________ left
01:36
bdju joined
01:39
teatime left
02:13
gabiruh left
02:15
hulk left,
kylese joined
02:25
gabiruh joined
03:15
Chanakan left
03:19
Chanakan joined
03:44
BooK left,
BooK joined
04:07
eof left,
summerisle joined
04:17
gabiruh left
04:45
gabiruh joined
05:01
_________ joined
05:20
acidsys left
05:21
acidsys joined
05:30
Sgeo left,
CIAvash joined
05:50
clarkema left,
clarkema joined
06:05
patrickb left,
patrickb joined
07:06
nativecallable6 left,
nativecallable6 joined
07:12
sourceable6 left,
sourceable6 joined
07:16
linkable6 left
07:17
linkable6 joined
07:50
CIAvash left
07:52
sena_kun joined
08:00
dakkar joined
08:04
wayland joined
08:12
ilogger2 left
08:13
ilogger2 joined
08:18
teatime joined
08:33
jpn joined
09:02
MasterDuke left
09:17
sena_kun left
09:36
jmcgnh left
09:50
jmcgnh joined
|
|||
wayland | thowe: Example? I would've thought that $str1 =~ $str2 would work. | 09:53 | |
lizmat | $str1 ~= $str2 you mean? | 09:55 | |
wayland | Yeah, that's it. thowe: Use ~= | 09:56 | |
m: no strict; $str1 = "aaa"; $str2 = "bbb"; $str1 ~= $str2; say $str1; | 09:57 | ||
camelia | aaabbb | ||
lizmat | note that the "=" in there is a meta-op | ||
m: sub infix:<foo>($a, $b) { $a ~ "foo" ~ $b }; my $a = "bar"; $a foo= "bar; say $a | 09:59 | ||
camelia | ===SORRY!=== Error while compiling <tmp> Unable to parse expression in double quotes; couldn't find final '"' (corresponding starter was at line 1) at <tmp>:1 ------> }; my $a = "bar"; $a foo= "bar; say $a⏏<EOL> expecting … |
||
lizmat | m: sub infix:<foo>($a, $b) { $a ~ "foo" ~ $b }; my $a = "bar"; $a foo= "bar"; say $a | ||
camelia | barfoobar | ||
lizmat | it even works on custom ops | ||
10:50
jpn left
11:08
jpn joined
11:36
jpn left
11:40
MasterDuke joined
11:42
jpn joined
11:51
jpn left
12:16
jpn joined
12:39
Maylay left
12:51
Maylay joined,
jpn left
13:01
DarthGandalf left,
DarthGandalf joined
13:02
Maylay left,
jpn joined
13:08
Maylay joined
13:13
Maylay left
13:17
Maylay joined
|
|||
tbrowder | anybody using sublime editot | 13:17 | |
13:18
kst left
|
|||
tbrowder | *editor for raku? | 13:18 | |
13:18
kst joined
13:32
Maylay left,
bdju left
13:34
Maylay joined
13:40
bdju joined
|
|||
tbrowder | or Damian Conway's .vimrc file? | 13:49 | |
13:50
vrurg left
13:51
vrurg joined
14:15
Maylay left
14:19
Maylay joined
14:20
derpydoo left
14:28
jgaz joined
15:02
silug left
15:03
silug joined
15:06
dmvrtx left,
dmvrtx joined
15:17
swaggboi left
15:28
jpn left
15:45
jpn joined
|
|||
lizmat | and yet another Rakudo Weekly News hits the Net: rakudoweekly.blog/2024/07/15/2024-...exprjit-5/ | 15:48 | |
vendethiel | fwiw, the "unreviewed content" warning on reddit can be dodged by using old.reddit.com, but of course it's suboptimal... | 15:53 | |
jdv | thanks lizmat! | 15:56 | |
just recently reddit on mobile thinks the sub is "unsafe". classic switch to old is easy enuf but really?! | 15:57 | ||
vendethiel | it's just their default | 15:59 | |
reddit is awful | |||
jdv | ah, nevermind. same warning were talkin bout. | 16:01 | |
lizmat | yeah, would have been surprised if it were that easy to circumvent | 16:02 | |
vendethiel | no, it is that easy to circumvent | ||
jdv | yes, reddit isnt great, but its where many look. me included. | ||
lizmat | well, you could start looking at programming.dev as well | ||
vendethiel | the old. trick works, I just have no clue what kind of process you need to go through to get approved | 16:03 | |
jdv | yeah:) i typically hit r/perl, r/rakulang, r/ programming, and r/programmerhumor... | ||
16:03
Ekho left
|
|||
jdv | brrt++ | 16:10 | |
is that the right nick? | 16:11 | ||
.seen brrt | |||
tellable6 | jdv, I saw brrt 2024-07-15T11:24:25Z in #moarvm: <brrt> *sigh* | ||
jdv | pri | ||
probably | |||
lizmat | yeah, that's the one | 16:17 | |
16:19
Ekho joined
16:22
jpn left
16:37
dakkar left
17:43
rypervenche left,
rypervenche joined
18:01
MasterDuke left
19:02
tejr left,
tejr joined
19:45
swaggboi joined
19:47
jpn joined
19:57
Tirifto left
19:58
Tirifto joined
20:00
jpn left
20:27
jpn joined
21:40
jgaz left
21:56
Tirifto left
21:59
Tirifto joined
|
|||
wayland | If I have a series of values of possibly varying types (eg. Int, Str), is there a straightforward way I can get the highest common parent? eg. in the case of Int and Str, it's "Cool", but in the case of Str and Str, it's "Str". | 22:32 | |
m: my Int $a = 42; my Str $b = "c"; say $a.^parents, $b.^parents; | |||
camelia | ()() | ||
22:34
jpn left
|
|||
wayland | my Int $a = 42; my Str $b = "c"; say $a.^parents(:all), $b.^parents(:all); | 22:35 | |
evalable6 | ((Cool) (Any) (Mu))((Cool) (Any) (Mu)) | ||
wayland | Now I just need a good way to detect the first common element in 2 lists. But I think I can do that :). | 22:38 | |
22:44
Maylay left
22:49
Maylay joined
23:06
wayland left
23:11
Sgeo joined
23:42
jpn joined
23:47
jpn left
23:54
jpn joined
23:59
jpn left
|