| ugexe | m: say "/tmp".IO.resolve.absolute("/bar") | 00:01 | |
| evalable6__ | (exit code 1) Type check failed for return value; expected Str:D but got Mu (Mu) in block <unit> at /tmp/JRMnlINItF line 1 |
||
| ugexe | similar for .resolve | ||
|
00:14
jcallen left
00:16
jcallen joined
|
|||
| ugexe | gist.github.com/ugexe/ba8d19ab74f0...df1c4b56f0 | 00:54 | |
| Voldenet | that StrDistance bug is intruiging, `$_ for 0..@s.end` is weird to read | 01:05 | |
| erm, `@d[$_][ 0] = $_ for 0..@s.end;` | |||
| i'd expect something like `@d[$_][ 0] = $_ for ^@s;` | 01:06 | ||
|
01:09
hulk joined
01:10
kylese left
|
|||
| Voldenet | those are some solid bug reports though, especially the one with channel | 01:15 | |
| fwiw StrDistance written by deepseek glot.io/snippets/hhb60hr691 | 01:40 | ||
| ugexe | usually you'd add a fast path when one of the lengths is 0 | 01:43 | |
| Voldenet | yes but | ||
| m: say (($ = "fold") ~~ tr/old/new/).Int; # that's the main use case | 01:44 | ||
| evalable6__ | 3 | ||
| ugexe | i'm not seeing how having e.g. return $targetLength if $sourceLength == 0; would affect that | 01:45 | |
| also i thought the main usecase for StrDistance was suggesting things like subroutine names when you use one that does not exist | 01:46 | ||
| Voldenet | ah, totally not, the logic for suggesting is different | ||
| github.com/rakudo/rakudo/blob/b18d...umod#L1256 | 01:47 | ||
| it has special scores for - and _ | |||
| it'd be rare, but there could be some optimized path for empty strings | 01:49 | ||
| there was a conversation a week or two ago on #moarvm regarding introducing an op that'd replace multiple implementations of string distance, but nothing final was implemented | 01:55 | ||
| though I still think that "get most similar string" op would be more useful in the context than raw edit distance | 01:59 | ||
|
02:15
hulk left,
kylese joined
02:34
annamalai left
02:35
annamalai joined
03:27
japhb left
03:28
japhb joined
03:37
wayland76 joined
03:51
ugexe left
04:35
ugexe joined
04:56
Aedil joined
05:22
lichtkind joined
06:06
soverysour joined,
soverysour left,
soverysour joined
06:31
soverysour left
07:13
Aedil left
07:41
wafflus joined,
soverysour joined,
soverysour left,
soverysour joined,
svartur-1rafn joined
07:46
soverysour left
08:29
soverysour joined,
soverysour left,
soverysour joined
08:42
soverysour left
08:47
Sgeo left
08:49
soverysour joined
08:54
soverysour left
09:01
wafflus left
09:12
soverysour joined,
soverysour left,
soverysour joined
09:17
soverysour left
09:30
soverysour joined,
soverysour left,
soverysour joined
09:38
soverysour left,
soverysour joined
09:39
sibl joined
09:43
soverysour left
09:44
soverysour joined,
soverysour left,
soverysour joined
10:17
Aedil joined
10:19
david7832 joined
10:33
sibl left
10:39
itaipu joined
10:49
abraxxa joined
11:03
abraxxa left
11:39
david7832 left
11:43
annamalai left
11:58
annamalai joined
12:06
annamalai left,
annamalai joined
12:17
sibl joined
12:26
AlexDaniel joined
12:38
sibl left,
sibl joined
|
|||