🦋 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:00 reportable6 left 00:01 jpn joined 00:02 reportable6 joined 00:05 gugod_ is now known as gugod 00:06 jpn left 01:02 jpn joined 01:07 jpn left 01:21 hulk joined, kylese left 01:33 _________ left 01:59 jpn joined 02:07 jpn left 02:15 hulk left, kylese joined 02:57 jpn joined 03:03 jpn left 03:58 jpn joined 04:03 jpn left 04:59 jpn joined 05:01 kst left 05:04 jpn left 05:06 merp left 05:07 merp joined 05:25 _________ joined 05:54 jpn joined 05:59 jpn left 06:00 reportable6 left 06:02 reportable6 joined 06:30 jpn joined 06:37 jpn left 06:56 jpn joined 07:01 jpn left 08:02 jpn joined 09:07 sena_kun joined 09:08 schnaki joined 09:25 schnaki left 09:39 Sgeo left 10:23 jpn left 10:24 jpn joined 11:23 jpn left 11:24 sena_kun left, sena_kun joined 12:00 reportable6 left 12:03 reportable6 joined 12:29 jpn joined 12:34 jpn left 12:47 linkable6_ left 12:48 squashable6 left, linkable6_ joined 12:50 squashable6 joined
tbrowder anyone have any experience with nixos running on debian? 14:41
14:42 abraxxa-home joined 14:45 jpn joined
ugexe hmm, not sure im a fan of the docs site changing cntrl+f behavior to focus on the search bar instead of letting me use the browser search 15:36
15:38 bdju left 15:39 bdju joined
librasteve github.com/Raku/doc-website/issues/358 15:46
github.com/Raku/doc-website/issues/344
ugexe: join the queue
16:07 lizmat_ joined 16:11 lizmat left, lizmat_ left, lizmat joined 16:35 jpn left
ab5tract librasteve, lucs, and to whomever else it may concern: R#5550 is now addressed :) 16:37
linkable6 R#5550 [open]: github.com/rakudo/rakudo/issues/5550 [Fixed in RakuAST] Simple literal-only regex fails
16:38 linkable6_ left 16:41 linkable6_ joined 16:46 jpn joined 16:51 jpn left
librasteve ab5tract: awesome job ... very tricky and your explanation is clear and illustrates how these corner cases were not caught in over 6 years 16:58
have you checked if there are other, similar conditions that could arise eg. is memcmp sometimes given 64-bit byte strings (this is just a guess ... but I think that we would like to be confident that similar, but different regex patterns are not going to trip over a closely related mechanism 17:01
coleman ugexe: I agree. I kind of wish I'd pushed back against it more when it went in. Some people really like the shortcuts, but I think we can give them what they want, just not by default. My comments here: github.com/Raku/doc-website/issues...2068134677 17:02
17:02 bdju left, bdju joined
librasteve amen to this ... To be honest, I don't think we should take over any key combos at all. 17:03
coleman GitHub does it in SOME UI views, like interactive code editors. They do it well. They also have billions of dollars and thousands of JavaScript devs lol 17:05
librasteve [don't mean to dump on innovation ... but in general you need to cover a LOT of corner cases for overrides like this to avoid user frustration ... eg iPads, touch in general, etc and on every browser / OS combo .... its doable for github with their deep pockets and resources ... btw they capture the '/' key for search and not the ctrl-f] 17:07
coleman they use '/' in most views, yea. And while i never use it, it doesn't get in my way. They take over Ctrl+F here...Another feature I rarely use github.com/Raku/doc-website/edit/m...ANGELOG.md 17:10
(interactive editing)
But anyway, your point stands.
17:28 jpn joined
librasteve getting brainfade ... what s the right way to test for true/false in a when statement? 17:29
lizmat when 42.so { } 17:30
when 42.not { }
librasteve ^^ ??
librasteve aha! thanks!
lizmat m: when ?42 { } 17:31
camelia ( no output )
lizmat m: when !42 { }
camelia ( no output )
lizmat shorter versions
librasteve .oO
lizmat inspired by the error message 17:32
m: when True { }
camelia Potential difficulties:
Smartmatch against True always matches; if you mean to test the topic for truthiness, use :so or *.so or ?* instead
at <tmp>:1
------> when ⏏True { }
17:33 jpn left
librasteve m: given 1,1 {when ?,? {say 'yo'} } 17:33
evalable6 (exit code 1) 4===SORRY!4=== Er…
Raku eval Exit code: 1 ===SORRY!=== Error while compiling /home/glot/main.raku Prefix ? requires an argument, but no valid term found. Did you mean ? to be an opening bracket for a declarator block? at /home/glot/main.raku:1 ------> given 1,1 {when ?⏏,? {say 'yo'} } expecting any of: prefix
evalable6 librasteve, Full output: gist.github.com/8592cd0ab86ace2943...1354134378
lizmat m: dd (1,1) 17:34
camelia (1, 1)
lizmat m: dd (1,1).^name
camelia "List"
lizmat m: given 1,1 { say .^name } 17:35
camelia List
librasteve m: given 1,1 {when ?$,?$ {say 'yo'} }
evalable6 (exit code 1) 4===SORRY!4=== Er…
Raku eval yo
17:35 jpn joined
evalable6 librasteve, Full output: gist.github.com/68f96db36d0ddf8178...a464d9b1fd 17:35
librasteve discord bot swallows _ 17:36
17:39 sena_kun left 17:40 sena_kun joined, jpn left 17:53 jpn joined 17:59 jpn left 18:00 reportable6 left 18:02 reportable6 joined
ab5tract librasteve: thanks for that feedback, it's much appreciated. I strived to match the expectations you mentioned (irclogs.raku.org/raku/2024-04-15.html#11:09), since I've felt the same about previous bugs (and this one too) 18:29
18:31 jpn joined
ab5tract re: your question, thankfully this codepath is well-protected from non-32-bit sized characters 18:31
18:32 xinming left 18:35 jpn left 18:37 xinming joined 18:41 Sgeo joined 18:43 sena_kun left 18:44 sena_kun joined 18:55 jpn joined 19:25 jpn left 20:24 abraxxa-home left 20:30 donaldh joined 20:52 vrurg_ joined 20:54 vrurg left 22:36 greppable6 left, quotable6 left, sourceable6 left, nativecallable6 left, tellable6 left, shareable6 left, benchable6 left, notable6 left, unicodable6 left, linkable6 left, committable6 left, bloatable6 left, evalable6 left, coverable6 left, bisectable6 left, releasable6 left 22:41 releasable6 joined, bisectable6 joined, bloatable6 joined, nativecallable6 joined, unicodable6 joined, evalable6 joined 22:42 benchable6 joined, greppable6 joined, coverable6 joined, linkable6 joined, quotable6 joined, sourceable6 joined 22:43 shareable6 joined, notable6 joined 22:44 committable6 joined, tellable6 joined 23:24 sena_kun left