| 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. | |||
|
16:39
habere-et-disper joined
16:40
Sgeo joined
16:46
sibl left
17:01
habere-et-disper left
|
|||
| david7832 | Yet another question: Is there a good way to represent complex infinity? I.e. if we call it cinf, then cinf == i*cinf == -cinf == -i*cinf, as opposed to the inbuilt Inf. | 17:03 | |
|
17:09
soverysour left
17:10
habere-et-disper joined
17:21
svartur-1rafn left
17:26
unicodable6 left,
bisectable6 left,
benchable6 left,
linkable6 left,
coverable6 left,
shareable6 left,
tellable6 left,
greppable6 left,
quotable6 left,
bloatable6 left,
evalable6 left,
committable6 left,
nativecallable6 left,
sourceable6 left,
releasable6 left,
notable6 left
17:28
coverable6 joined,
shareable6 joined,
greppable6 joined
17:29
benchable6 joined,
committable6 joined,
releasable6 joined,
quotable6 joined,
bloatable6 joined,
linkable6 joined
17:30
evalable6 joined,
bisectable6 joined,
notable6 joined,
unicodable6 joined,
sourceable6 joined
17:31
tellable6 joined,
nativecallable6 joined
17:44
soverysour joined,
soverysour left,
soverysour joined
|
|||
| disbot2 | <librasteve> fwiw I have been playing with Inf in App::Crag as the result of a DBZ (ideally this issue would be implemented github.com/issues/mentioned?page=1...ing%7C515) | 17:45 | |
| <librasteve> for complex Inf, I would say a few things ⌠(i) a module to do that would be welcome (ii) please can you follow the style of Inf and NaN wrt caps eg maybe CIinf ⌠| 17:47 | ||
| <librasteve> (iii) it has become clear that making Rats hold the sign of the denominator is not sensible, so we live in a world where Rat DBZ (eg when rendering <1/-0>) returns Inf and not -Inf | 17:50 | ||
| <librasteve> (iv) so to do a proper job with Complex depends on whether the two Reals are Num or Rat (or a mixture) ⌠so I would like to see a design for that that tends to the Real Inf result where Imaginary part is zero | 17:52 | ||
| <librasteve> (v) we might want to think about the situation where RATOVERFLOW is Num (ie use Num semantics) vs Rat (ie use Rat semantics) | 17:54 | ||
| <librasteve> (vi) IEEE does not define complex inf ⌠so my initial proposal would be to use these Num (signed Inf) or Rat (always CInf) semantics depending on what you have ⌠| 17:58 | ||
| <librasteve> (vii) I would be tempted to do that by just returning CIinf (ie never -CInf) if one of the terms is a Rat (but I havenât really thought about it) | 17:59 | ||
| david7832 | Regarding (vii): For an implementation of the complex sphere (which is what I have in mind): | 18:24 | |
| Always returning CInf is most likely the right way. There should not be any difference at all between CInf and -CInf (or i*CInf or -i*CInf), since mathematically they're all just the same point at infinity. In fact, the same holds for 0 here, i.e. there should be no difference between -0 and +0, since unlike in the Reals, in the Complex numbers | |||
| there's no hard distinction between directions anymore (i.e. + and â lie on a continuum). | |||
| Implementing that in a numerically good way is a different question, of course... | |||
|
18:29
habere-et-disper left
18:46
habere-et-disper joined
|
|||
| disbot2 | <librasteve> sorry ⌠that all sounded rather bossy ⌠your code, your call :-) | 18:48 | |
| david7832 | didn't think that at all :) | ||
| the notes on how Rat & Num handle infinity are very helpful | 18:49 | ||
| disbot2 | <librasteve> oh and the docs here docs.raku.org/language/variables#$*RAT-OVERFLOW (bottom of the section) have a joke example of how to adjust RAT-OVERFLOW ⌠might be worth thinking about | 18:50 | |
| <librasteve> of course Rat does not need to handle infinity until it is coerced to something else (Str, Num) since <42/0> is anyway fine | 18:51 | ||
| david7832 | ha, that joke example is almost exactly what I think is needed here, which is: `$nu.abs > $de ?? CInf !! 0` | 18:58 | |
| (in case one only wants complex numbers with rational real & imaginary part, of course) | 18:59 | ||
| on second thought, I suppose RAT-OVERFLOW can also occur in circumstances where this isn't what one wants | 19:02 | ||
|
19:17
sibl joined
|
|||
| disbot2 | <librasteve> yeah - if you are doing serious math, you probably don't want to unpredictably[1] bump to Num and lose precision... | 19:21 | |
|
19:22
Aedil left
|
|||
| disbot2 | <librasteve> [1] that means I haven't really worked out how to predict it, not that it can't be predicted ;-) | 19:22 | |
|
19:24
sibl left
19:36
releasable6 left,
notable6 left,
quotable6 left,
evalable6 left,
bisectable6 left,
benchable6 left,
nativecallable6 left,
sourceable6 left,
coverable6 left,
greppable6 left,
committable6 left,
linkable6 left,
tellable6 left,
shareable6 left,
unicodable6 left,
bloatable6 left
19:38
releasable6 joined
19:39
linkable6 joined,
committable6 joined,
greppable6 joined
19:40
evalable6 joined,
coverable6 joined,
tellable6 joined,
huggable6 joined,
quotable6 joined,
bloatable6 joined,
bisectable6 joined,
shareable6 joined
19:41
sourceable6 joined,
benchable6 joined,
notable6 joined,
unicodable6 joined,
nativecallable6 joined,
sibl joined
|
|||
| AlexDaniel | .hug lizmat | 19:43 | |
| huggable6 hugs lizmat | |||
| AlexDaniel | that looks close enough hahaha | ||
| sibl | ah indeed | 19:46 | |
| how come, when I tested on a custom channel it worked | |||
| AlexDaniel | I think we changed that code a little bit, right? | 19:48 | |
| perhaps whateverable auto-escapes control characters, so you probably still need $.irc.send | 19:49 | ||
| my suggestion to return just a string was at the time when it was literally just sending a message | |||
| in that case, yeah, you can just return it and it'll be sent just fine. But for raw actions perhaps you need to handle the sending yourself | |||
| .hug lizmaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaat | 19:50 | ||
| huggable6 | gist.github.com/be0cf49a7980b73931...43ea1cbd31 | ||
| AlexDaniel | see, it's trying to be smart :) | ||
| sibl | I can make it send as message, or if you know how I can escape that, I can do it as well xD | ||
| maybe I can try to modify the filter method ? xD | 19:56 | ||
|
19:57
abraxxa joined
|
|||
| sibl | seems a bit too hard for me, I will settle for the simple message for now ;-; | 19:58 | |
|
20:00
habere-et-disper left
|
|||
| AlexDaniel | sibl: well, one way those cases are handled is with `but`: github.com/Raku/whateverable/blob/...m6#L25-L28 | 20:00 | |
| sibl: so basically you can `but ProperStr(âŚ)` on any string and it'll add stuff that will be passed along. So in theory you can add something like `but RawAction(âŚ)` and in the presence of that it'd skip all the filtering | 20:01 | ||
| but it's totally fine to have a custom send too, if that works in all cases | 20:02 | ||
| huggable6: me | 20:03 | ||
| huggable6 hugs me | |||
|
20:08
notna joined
|
|||
| sibl | I think I figured out, I made a pr | 20:19 | |
|
20:24
sibl left
20:43
soverysour left
20:54
bloatable6 left,
releasable6 left,
shareable6 left,
linkable6 left,
unicodable6 left,
nativecallable6 left,
greppable6 left,
sourceable6 left,
tellable6 left,
notable6 left,
bisectable6 left,
quotable6 left,
evalable6 left,
huggable6 left,
benchable6 left,
committable6 left
|
|||
| disbot2 | <simon_sibl> .hug | 20:55 | |
| <simon_sibl> đĽ˛đĽ˛đĽ˛ | 20:56 | ||
|
20:57
nativecallable6 joined,
greppable6 joined
|
|||
| disbot2 | <simon_sibl> .hug | 20:57 | |
|
20:57
bisectable6 joined
20:58
sourceable6 joined,
benchable6 joined,
committable6 joined,
releasable6 joined,
coverable6__ joined,
notable6 joined
20:59
coverable6 left,
shareable6 joined,
linkable6 joined,
unicodable6 joined,
tellable6 joined,
evalable6 joined
21:00
bloatable6 joined,
quotable6 joined,
huggable6 joined
21:07
habere-et-disper joined
21:13
thelounge4285 joined
|
|||
| thelounge4285 | .hug | 21:13 | |
| huggable6 hugs thelounge4285 | |||
| disbot2 | <simon_sibl> .hug | ||
| huggable6 hugs simon_sibl | |||
| disbot2 | <simon_sibl> Alright almost work on discord | 21:14 | |
|
21:14
notna left
|
|||
| disbot2 | <simon_sibl> Seems like a formatting problem tho not fork the bot | 21:14 | |
|
21:15
thelounge4285 left
|
|||
| disbot2 | <simon_sibl> Oooh it is, I guess the filter usually handle the _ | 21:15 | |
| AlexDaniel | huggable6: hug lizmat | 21:19 | |
| huggable6 hugs lizmat | |||
| AlexDaniel | huggable6: sibl | ||
| huggable6 hugs sibl | |||
| AlexDaniel | I'd call that a success :) | ||
| huggable6: help | |||
| huggable6 | AlexDaniel, Like this: .hug <nick> # See wiki for more examples: github.com/Raku/whateverable/wiki/Huggable | ||
| AlexDaniel | why did you make that bot though? You know that you can just hug people, right? :D | 21:20 | |
| sounds a bit passive aggressive to me actually, asking a bot to hug someone. Like why not you yourself? | 21:21 | ||
| disbot2 | <simon_sibl> Oh yeah I can, just I read a blog few days ago and they talked about a hug bot, so I wanted to remake it đ | 21:38 | |
| <simon_sibl> Mostly it can hug yourself even when nobody is there | |||
| <simon_sibl> But I get what you mean | 21:39 | ||
| <simon_sibl> Someone being mean, and instead of saying âwho hurt youâ you just use â.hug <nick>â | 21:40 | ||
| <simon_sibl> I didnât think of that | |||
| AlexDaniel | we can just see how it goes :) | 21:47 | |
|
21:49
habere-et-disper left
|
|||
| disbot2 | <simon_sibl> If it goes bad (hopefully wonât) I can just add the nickname of the sender before âhugsâ so that the bot simply becomes a helper to hug people | 21:59 | |
| <simon_sibl> .hug everyone | |||
| huggable6 hugs everyone | |||
|
21:59
wayland left
|
|||
| disbot2 | <simon_sibl> People will always find a way to turn something good into something bad if they really want to I guess, from my pov, itâs just hugging and sharing đ¤ | 22:00 | |
| AlexDaniel | yeah, agreed đ¤ Good job! | 22:11 | |
|
22:17
abraxxa left
22:51
david7832 left
|
|||
| lizmat | simon_sibl++ AlexDaniel++ | 23:01 | |
| .hug sibl AlexDaniel | |||
| huggable6 hugs sibl AlexDaniel | |||
| timo | .hug the sun | 23:07 | |
| huggable6 hugs the sun | |||
| disbot2 | <simon_sibl> Oof, didnât get burn ? Put your solar cream before hand ? | 23:18 | |
| AlexDaniel | maybe it should say âpasses <from>'s hug to <to>â. A bit harsh in case of the sun, but maybe more meaningful | 23:55 | |