01:30
Manifest0 left
01:53
zayd joined
02:14
guifa joined
|
|||
guifa | I kinda feel like subst should take a range, although I think other languages use splice for that | 02:14 | |
i just tried to do it and spent a while trying to figure out why it didn't work lol | |||
02:29
hulk joined
02:30
kylese left
02:45
librasteve_ left
03:15
hulk left,
kylese joined
03:23
Aedil joined
04:31
zenmov joined
|
|||
elcaro | guifa: There's always `Pythonic::Str`... the only problem being that under the hood it essentially does a `.comb[Range].join` | 04:39 | |
guifa | elcaro: ew, no, no python for me | ||
I have to deal with that enough at school hahaha | |||
elcaro | It should be possible to add a case for when a Range is provided, and convert it to `substr` call | ||
oh, ok :D | |||
make your own method... I have the perfect name! `strange` | 04:40 | ||
guifa | haha | 04:57 | |
but it is, I think, a decent use case | |||
I'm working on a thing that creates multiple choice questions, and LLMs are HORRIBLE at that | |||
I did find a way around it though | 04:58 | ||
I already had a lemmatizer that could detect various forms of a word when I'd ask for an example sentence. | |||
(so the front end could bold it) | |||
Did the same thing and once I had the range of the word, I wanted to replace with a blank, and then ask the LLM to give me wrong answers :) | 04:59 | ||
So I'm doing $string.substr(0,$range.min) ~ '____' ~ $string.substr($range.max) | 05:02 | ||
I guess I could also do $string.subst($string.substr($word-range), '___') | |||
antononcube | Range can be easily specified with a regex for subst. | 06:38 | |
And I agree — using Python for inspiration or functionality support in Raku seems counterintuitive and backwards. (To me.) | 06:42 | ||
SmokeMachine | m: my $a = “bla bla bla”; $a.substr-rw(4..7) = “_____”; say $a # guifa | 06:47 | |
camelia | bla _____bla | ||
SmokeMachine | m: my $a = “bla bla bla”; $a.substr-rw(4..6) = “_____”; say $a | 06:48 | |
camelia | bla _____ bla | ||
SmokeMachine | m: my $a = “bla bla bla”; (my $b = $a).substr-rw(4..7) = “_____”; say $a; say $b | 06:51 | |
camelia | bla bla bla bla _____bla |
||
guifa | ah yeah but that modifies $a | 06:58 | |
also ab5tract++ for ^Inf for the Comma plugin | |||
just got it up and running in CLion | |||
Currently in a multi language project with Raku included and it's so much nicer | 06:59 | ||
SmokeMachine | guifa: that’s why I also did the (my $b = $a).substr-rw | 07:26 | |
antononcube | @guifa Yeah, same here — it is nice to combine Raku and C in CLion. | 08:20 | |
cdn.discordapp.com/attachments/633...plugin.png | |||
08:50
Aedil left
09:02
BinGOs left
09:33
sena_kun joined
09:50
sena_kun left
09:51
Aedil joined
10:06
bingos joined
10:11
Manifest0 joined
10:15
bingos is now known as BinGOs
10:21
yewscion joined
10:23
yewscion left
10:50
Aedil left
11:38
librasteve_ joined
11:44
Aedil joined
12:00
yewscion joined
12:02
yewscion left
12:54
euandreh joined
13:13
Sgeo left
13:21
euandreh left
15:57
perlbot left
15:59
simcop2387 left
16:16
Guest89 joined
16:21
simcop2387 joined
16:23
perlbot joined
16:27
Guest89 left
16:34
xinming joined
|
|||
xinming | hmm, sorry, power is cut here, The last reply I got is from ab5tract 'I hope that makes sense and/or helps :)', If anyone replied after, Please re-send the reply. thanks. | 16:35 | |
ab5tract: Actually, I had an idea, which is I don't use the get method at all, Just set/get-if-present myself. | |||
But something needs clarified from lizmat, with the get-if-present, Will it always return stale answers? | 16:36 | ||
lizmat | xinming: perhaps you can find the answer here: irclogs.raku.org/raku/live.html | 16:38 | |
xinming | Thanks. Will backlog | 16:39 | |
lizmat | is this about irclogs.raku.org/raku/2024-11-28.html#20:31 ? | ||
xinming | Ys | 16:41 | |
yes | |||
lizmat | i'd have to look | ||
I'm open to PRs :-) | 16:42 | ||
16:55
zenmov left
|
|||
Geth | ecosystem/main: 9dcd5e1256 | (Elizabeth Mattijsen)++ | META.list Remove XXX, it's dead |
16:56 | |
18:15
yewscion joined
18:17
yewscion left
19:03
Xliff left
|
|||
Geth | advent/main: 29bf2e2b29 | (Elizabeth Mattijsen)++ (committed using GitHub Web editor) | raku-advent-2024/authors.md move tbrowder away from 1 december |
19:30 | |
advent/main: 345dcbe11e | (Elizabeth Mattijsen)++ (committed using GitHub Web editor) | raku-advent-2024/authors.md Make everything readable again |
19:34 | ||
20:09
MasterDuke joined
20:29
Sgeo joined
20:43
notna joined
20:45
notna left
20:46
notna joined,
notna left
20:49
silug left
20:57
silug joined
21:11
finanalyst joined
|
|||
Geth | advent/main: a888f26a45 | (Elizabeth Mattijsen)++ (committed using GitHub Web editor) | raku-advent-2024/authors.md Move Richard's post to 1 December |
21:18 | |
21:48
zetaaaa joined
22:06
sena_kun joined
22:25
finanalyst left
22:36
sena_kun left
23:51
japhb left
23:53
japhb joined
|