🦋 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:11
Donut_Kop joined
00:17
Donut_Kop left
01:08
kylese left
01:09
kylese joined
01:27
wayland76 left,
wayland76 joined
02:15
kylese left,
kylese joined
03:24
stanrifkin joined
03:45
kylese left
03:48
kylese joined
04:22
LainIwakura joined
05:05
derpydoo left
05:24
ConnorJ28 joined
05:26
derpydoo joined
05:39
Aedil joined
05:54
Xliff left
06:00
ConnorJ28 left
06:34
Aedil left
07:21
Sgeo_ left,
Sgeo joined
07:58
lichtkind joined
08:03
lichtkind left
08:08
Aedil joined
08:33
abraxxa-home joined
09:05
human-blip left
09:07
Sgeo left
09:15
human-blip joined
|
|||
librasteve | o/ hi! | 09:16 | |
my regex brain is fading ... I have this rx / <[A..Za..z]> && <[0..9]> / to check that a str has at least one digit and one letter... but it fails I guess since the conjunction && requires a substring to match BOTH the first and second criteria ... can anyone show me how to do this within a regex? | 09:18 | ||
nahita3882 | hi, i think doing this within a regex involves lookaheads/behinds etc. and gets tedious if not worse in performance | 09:29 | |
compared to doing two regexes and &&'ing their results | |||
coranila | @librasteve: regex are linear unless you introduce lookaround or backreferences; as such you probaby want "a letter followed by a number or a number followed by a letter", as in /[ <[A..za..z]> .* <[0..9]> ] || [<[0..9]> .* <{A..Za..z]>/ or /<alpha><?before <digit>>||<digit><?before <alpha>>/ | 09:41 | |
lizmat | m: say so"fo1".contains(/ <[A..Za..z]> / & / <[0..9]> /) | 09:42 | |
camelia | True | ||
lizmat | I think that actually reads better as well | ||
coranila | yes but that's the "cheat" of using two regexes - which i do agree is probably appropriate, but still is a bit of cheat in that it does reframe the problem somewhat - of course, in the interest of clarity this is totally approppriate here! | 09:43 | |
.oO( too many words for "i agree" :-) ) | 09:44 | ||
10:56
wayland joined
10:57
wayland76 left
|
|||
librasteve | thanks to all… it certainly reads better … this is the test for a Cro::WebApp::Form is validated trait, so hopefully I can jam multiple regex into the API | 10:59 | |
the api takes the thing and applies as the rhs of a ~~ smartmatch will report back later when back in the keys | 11:01 | ||
feels a junction coming on | 11:13 | ||
12:06
lichtkind joined
|
|||
lizmat: that works well... | 12:22 | ||
12:55
LainIwakura left
13:02
LainIwakura joined
14:18
MasterDuke joined
|
|||
timo | if you want a && to ensure both a letter and a digit, you can most easily .* before and after it I think | 14:37 | |
m: for <abc 987 ab1cd2ef abcd1 1abcd 11a33> { say $_, " matched? ", so m/ .* <[a..z A..Z]> .* && .* <[0..9]> / } | 14:43 | ||
camelia | abc matched? False 987 matched? False ab1cd2ef matched? True abcd1 matched? True 1abcd matched? False 11a33 matched? True |
14:44 | |
linkable6 | (2024-12-21) github.com/jliebert477/go-green/co...ab1cd2ef29 🖥️ Improved desktop app performance on 2024-12-21 17:22:52 | ||
timo | haha ok thanks | ||
15:11
MasterDuke left
15:22
LainIwakura left,
LainIwakura41 left
15:42
Guest35 joined
|
|||
Guest35 | what is the keyword that says stop scanning the source code? | 15:43 | |
jdv | exit? | 15:46 | |
lizmat | =finish | ||
jdv | hmm, is there something like __DATA__ in raku? | 15:49 | |
i feel like i used to know this | |||
lizmat | $=finish | ||
everything after =finish | 15:50 | ||
jdv | but is that a fh? | ||
or stream or whatever | |||
lizmat | it's a string | ||
m: say $=finish.^name | |||
camelia | Mu | ||
lizmat | meh | ||
m: say $=finish=finishfoo | 15:51 | ||
camelia | foo | ||
lizmat | m: say $=finish.^name=finishfoo | ||
camelia | Str | ||
16:47
Aedil left
16:51
Aedil joined
17:04
Sgeo joined
17:45
derpydoo left
17:59
derpydoo joined
|
|||
jdv | is there a way to get zef and/or the compunit stuff spit out fs ops? | 18:01 | |
18:04
MasterDuke joined
18:30
MasterDuke left
18:34
MasterDuke joined
|
|||
jdv | i'm a bit confused why i can't install a dist in a rando spot and use it... | 18:52 | |
gist.github.com/jdv/45727a1e8ab3ca...ab36aa03ac | 18:56 | ||
ugexe: what did i do wrong? ^ | 18:58 | ||
19:01
greppable6 left,
greppable6 joined,
linkable6 left,
linkable6 joined
19:15
LainIwakura joined
19:18
apac joined
19:24
Guest35 left
19:28
MasterDuke left
|
|||
jdv | ugexe: nevermind. odd that the dir listing looks the same for all but "inst#" prefix is needed for the "non-regular" one | 19:31 | |
19:53
Guest9 joined
|
|||
Guest9 | Heyo | 19:53 | |
20:03
japhb left
20:11
japhb joined
|
|||
tbrowder | my wife’s macbook wants to upgrade from Sonoma to Sequoia, any reason not to? | 20:13 | |
tellable6 | 2025-04-24T23:02:54Z #raku <wayland> tbrowder: This is why I've wrapped my github tests in a docker container, so that I can run the container on local when debugging these problems. | ||
tbrowder | wayland: sounds like a good idea, but i just tried reading github’s logs again and it wasn’t too bad. i think when the test’s do fail, their short msg seems not to be very helpful. | 20:17 | |
re macbook, only 8 GB ram, is that enough for the upgrade? | 20:19 | ||
20:28
Guest9 left
20:42
abraxxa-home left
21:29
lichtkind left
21:34
lichtkind joined
|
|||
tbrowder | erg, i see more about the mac upgrade—skipping for now | 21:44 | |
21:45
apac left
22:04
LainIwakura left
22:07
LainIwakura joined
22:32
lichtkind left
23:12
human-blip left
|