| 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
13:09
unicodable6 left,
coverable6 left,
committable6 left,
sourceable6 left,
bloatable6 left,
greppable6 left,
quotable6 left,
linkable6 left,
notable6 left,
shareable6 left,
benchable6 left,
evalable6__ left,
nativecallable6 left,
tellable6 left,
releasable6__ left,
bisectable6 left
13:12
bisectable6 joined,
unicodable6 joined,
quotable6 joined
13:13
notable6 joined,
nativecallable6 joined,
linkable6 joined,
coverable6 joined
13:14
bloatable6 joined,
shareable6 joined,
greppable6 joined,
committable6 joined,
benchable6 joined,
releasable6 joined,
tellable6 joined,
evalable6 joined
13:15
sourceable6 joined
13:16
_huggable left
13:41
soverysour left
|
|||
| ab5tract | m: multi s(@a is item) { say “item” }; multi s(@a) { say “array” }; my @a = ^5; s $@a; s @a | 13:52 | |
| evalable6 | item array |
||
|
13:53
soverysour joined,
soverysour left,
soverysour joined,
wayland joined,
notable6 left,
committable6 left,
bloatable6 left,
linkable6 left,
releasable6 left,
evalable6 left,
shareable6 left,
tellable6 left,
quotable6 left,
nativecallable6 left,
sourceable6 left,
coverable6 left,
unicodable6 left,
greppable6 left,
bisectable6 left,
benchable6 left,
wayland76 left
|
|||
| ab5tract | ds7382: that’s what it’s designed to do, so not sure what might be going wrong for you there | 13:53 | |
| ds7832, david7832, ^^ | 13:54 | ||
| Can you share a full example of all the multi candidates? | 13:55 | ||
|
13:56
unicodable6 joined,
tellable6 joined,
bloatable6 joined,
greppable6 joined,
nativecallable6 joined,
evalable6 joined,
coverable6 joined,
shareable6 joined
13:57
benchable6 joined,
releasable6 joined,
linkable6 joined,
soverysour left
13:58
bisectable6 joined,
notable6 joined,
committable6 joined,
quotable6 joined,
sourceable6 joined
13:59
bisectable6 left,
sourceable6 left,
evalable6 left,
coverable6 left,
nativecallable6 left,
quotable6 left,
tellable6 left,
notable6 left,
bloatable6 left,
shareable6 left,
unicodable6 left,
releasable6 left,
benchable6 left,
linkable6 left,
greppable6 left
14:02
linkable6 joined,
evalable6 joined,
releasable6 joined,
committable6__ joined,
tellable6 joined,
unicodable6 joined,
sourceable6 joined
14:03
quotable6 joined,
committable6 left,
notable6 joined,
coverable6 joined,
bloatable6 joined,
shareable6 joined
14:04
bisectable6 joined,
greppable6 joined,
benchable6 joined,
nativecallable6 joined
14:05
greenfork left,
atweedie left,
thatonelutenist left,
patrickb left,
cpli left,
tellable6 left,
shareable6 left,
sourceable6 left,
notable6 left,
releasable6 left,
committable6__ left,
nativecallable6 left,
evalable6 left,
bloatable6 left,
greppable6 left,
quotable6 left,
unicodable6 left,
bisectable6 left,
benchable6 left,
coverable6 left,
linkable6 left
14:08
releasable6 joined,
benchable6 joined,
shareable6 joined,
committable6 joined
14:09
atweedie joined,
notable6 joined,
linkable6 joined,
sourceable6 joined,
quotable6 joined,
bloatable6 joined,
bisectable6 joined,
unicodable6 joined,
nativecallable6 joined
14:10
greppable6 joined,
coverable6 joined,
tellable6 joined,
evalable6 joined
14:11
annamalai left,
greenfork joined,
annamalai joined
14:12
patrickb joined
|
|||
| lizmat | .hug AlexDaniel | 14:12 | |
|
14:12
cpli joined
|
|||
| lizmat | meh, huggable still awol | 14:13 | |
| AlexDaniel | ===SORRY!=== Error while compiling /srv/xbin/Huggable.raku Unable to parse class definition at /srv/xbin/Huggable.raku:10 ------> unit class Huggable does Whateverable<HERE><EOL> | ||
| lizmat | ok, I'm leaving this to 4zv4l :-) | 14:14 | |
| AlexDaniel | unit class Huggable does Whateverable <---- missing semicolon | ||
|
14:14
thatonelutenist joined
|
|||
| AlexDaniel | but I wonder how did that work and when the semicolon was lost | 14:14 | |
|
14:20
gugod left
14:22
gugod joined
14:23
charsbar_ joined
14:24
charsbar left,
charsbar_ is now known as charsbar
14:39
soverysour joined
14:44
soverysour left
15:11
soverysour joined
|
|||
| disbot2 | <antononcube> I have problem installing "HTTP::UserAgent" in my GitHub actions. I get errors like: ===SORRY!=== Error while compiling /Users/runner/work/Raku-DSL-Translators/Raku-DSL-Translators/site#sources/47257BA70F233525B020CE3BE828D794F2D0B7D3 (HTTP::UserAgent) Merging GLOBAL symbols failed: duplicate definition of symbol Request ===> Staging LibraryMake:ver<1.0.5>:auth<zef:jjmerelo> at | 15:31 | |
| /Users/runner/work/Raku-DSL-Translators/Raku-DSL-Translators/site#sources/47257BA70F233525B020CE3BE828D794F2D0B7D3 (HTTP::UserAgent):5 ===> Staging [OK] for LibraryMake:ver<1.0.5>:auth<zef:jjmerelo> | |||
| <antononcube> Here is a link: github.com/antononcube/Raku-DSL-Tr...#step:4:98 | |||
|
15:32
wayland left,
wayland joined
|
|||
| disbot2 | <antononcube> Do you know how deal with these errors? Should I make GitHub actions install these packages "manually", like, say, zef install HTTP::UserAgent --/test ? | 15:33 | |
|
15:45
soverysour left
15:47
david7832 joined
15:55
david7832 left
15:56
soverysour joined,
david7832 joined
|
|||
| david7832 | ab5tract: You're totally right, `is item` does work that way for me too. My mistake was having the same function body { .say for @a } in both f(@a) and f(@a is item), thinking that with `is item` the @a would behave differently in the body, in the way $a behaves in f($a) { .say for $a } where there is just one iteration in which the entire list | 15:59 | |
| gets printed. | |||