🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). This channel is logged for the purpose of keeping a history about its development | evalbot usage: 'm: say 3;' or /msg camelia m: ... | Log inspection is getting closer to beta. If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 25 August 2021.
00:06 reportable6 left 00:09 reportable6 joined 00:23 melezhik joined, melezhik left 01:10 Guest41 joined 01:15 Guest41 left 02:15 bloatable6 left, nativecallable6 left, coverable6 left, evalable6 left, bisectable6 left, linkable6 left, shareable6 left, unicodable6 left, committable6 left, sourceable6 left, reportable6 left, quotable6 left, tellable6 left, statisfiable6 left, releasable6 left, benchable6 left, greppable6 left, notable6 left, releasable6 joined 02:16 sourceable6 joined, reportable6 joined, notable6 joined, quotable6 joined, coverable6 joined, linkable6 joined 02:17 bloatable6 joined, benchable6 joined, statisfiable6 joined, tellable6 joined, shareable6 joined, evalable6 joined, committable6 joined, unicodable6 joined 02:18 bisectable6 joined, greppable6 joined, nativecallable6 joined 02:20 razetime joined 02:30 hythm left 03:02 guifa joined 03:36 guifa left 04:07 Guest35 left 05:07 evalable6 left, nativecallable6 left, releasable6 left, quotable6 left, greppable6 left, committable6 left, notable6 left, shareable6 left, bisectable6 left, benchable6 left, statisfiable6 left, linkable6 left, reportable6 left, bloatable6 left, tellable6 left, sourceable6 left, unicodable6 left, coverable6 left 05:08 sourceable6 joined, greppable6 joined, statisfiable6 joined, nativecallable6 joined, quotable6 joined, evalable6 joined, reportable6 joined 05:09 unicodable6 joined, bloatable6 joined, releasable6 joined, benchable6 joined, notable6 joined, linkable6 joined 05:10 shareable6 joined, coverable6 joined, committable6 joined, bisectable6 joined, tellable6 joined 05:33 guifa joined 05:50 guifa left 06:07 reportable6 left 06:08 reportable6 joined 06:34 yolo joined 06:35 yolo left 06:48 razetime left 07:00 p6steve left 07:03 dumarchie joined 07:22 razetime joined 07:56 RakuIRCLogger left, RakuIRCLogger joined 07:58 Xliff joined 08:01 Sgeo left 08:05 jujo left 08:19 Sankalp left 08:22 Sankalp joined 08:45 dumarchie left 08:48 dumarchie joined 09:12 Sankalp left 09:20 dumarchie left 09:30 Geth__ joined, RakuIRCLogger__ left 09:31 TempIRCLogger__ joined, TempIRCLogger__ left 09:32 TempIRCLogger__ joined, RakuIRCLogger left, lizmat left 09:33 Geth left, TempIRCLogger left 09:34 TempIRCLogger__ left, TempIRCLogger joined, Geth__ left, Geth joined, lizmat_ left, lizmat joined 09:38 TempIRCLogger left, TempIRCLogger joined, Geth left, Geth joined 09:43 Geth left, Geth joined 10:01 mexen joined 10:41 Nemokosch joined
Nemokosch m: dd ('a'..'z').rotor(5) 10:42
camelia (("a", "b", "c", "d", "e"), ("f", "g", "h", "i", "j"), ("k", "l", "m", "n", "o"), ("p", "q", "r", "s", "t"), ("u", "v", "w", "x", "y")).Seq
lizmat m: dd ("a".."z").comb(5) # alternate ? 10:49
camelia ("a b c", " d e ", "f g h", " i j ", "k l m", " n o ", "p q r", " s t ", "u v w", " x y ", "z").Seq
lizmat hmm
m: dd ("a".."z").batch(5) # alternate ?
camelia (("a", "b", "c", "d", "e"), ("f", "g", "h", "i", "j"), ("k", "l", "m", "n", "o"), ("p", "q", "r", "s", "t"), ("u", "v", "w", "x", "y"), ("z",)).Seq
Nemokosch "it is a shorthand of .rotor($batch, :partial)" 10:51
11:02 Nemokosch left
lizmat it's a simpler, faster version 11:06
Xliff lizmat: Did you see the timings? 11:09
11:23 razetime left 11:24 grondilu joined
grondilu can't I define a FALLBACK method in an action class? 11:25
m: grammar { token TOP { foo } }.parse: "foo", actions => class { multi method FALLBACK($ where "bar") {...} }
camelia Cannot resolve caller FALLBACK((<anon|2>): TOP, 「foo」); none of these signatures matches:
(<anon|2>: $ where { ... }, *%_)
in regex TOP at <tmp> line 1
in block <unit> at <tmp> line 1
patrickb hythm: Which libcurl.dll did you use? Do you know which compiler that was compiled with? (mingw or msvc) Which compiler do you use for your builds on Windows? 11:26
tellable6 patrickb, I'll pass your message to hythm
patrickb hythm: Can you turn this into a bugreport? 11:27
tellable6 patrickb, I'll pass your message to hythm
11:57 thegargler joined 11:59 frost joined 12:08 reportable6 left, razetime joined 12:10 reportable6 joined
gfldex lolibloggedalittle: gfldex.wordpress.com/2022/05/01/antipairing/ 12:23
13:10 linkable6 left, evalable6 left 13:12 linkable6 joined 13:13 evalable6 joined 13:40 sena_kun left 13:41 sena_kun joined 13:50 Guest35 joined 14:28 thegargler left 14:48 frost left 15:08 sdf joined 15:10 razetime left 15:11 sdf left 15:25 razetime joined 16:25 reportable6 left, nativecallable6 left, coverable6 left, linkable6 left, evalable6 left, unicodable6 left, greppable6 left, committable6 left, benchable6 left, tellable6 left, releasable6 left, quotable6 left, statisfiable6 left, sourceable6 left, notable6 left, shareable6 left, bloatable6 left, bisectable6 left 16:26 releasable6 joined, notable6 joined, sourceable6 joined, committable6 joined, benchable6 joined, shareable6 joined, quotable6 joined, bloatable6 joined, unicodable6 joined, reportable6 joined 16:27 Sgeo joined, nativecallable6 joined, evalable6 joined, greppable6 joined 16:28 bisectable6 joined, linkable6 joined, tellable6 joined, statisfiable6 joined, coverable6 joined 17:06 razetime left
SmokeMachine .ask melezhik are you planning on having a image badge to add on readme to show if the build has passed? I think that would help a lot. And thank you very much for all the work! That’s helping a lot! Most of the tests are not being skipped for Pg anymore! :) 17:10
tellable6 SmokeMachine, I'll pass your message to melezhik
17:12 mexen left
Nemokosch batch just doesn't give the same result as rotor, though 17:39
and once you want to make it non-partial, I suspect batch isn't superior anymore
17:41 grondilu left 18:08 reportable6 left 18:11 reportable6 joined 18:39 sena_kun left 18:40 sena_kun joined 19:40 linkable6 left, evalable6 left 19:41 linkable6 joined 19:43 evalable6 joined 20:23 hythm joined
hythm patrickb, created rakubrew issue #54 and answered the questions there. let me know if I missed anything. thanks 20:24
tellable6 2022-05-01T11:26:49Z #raku <patrickb> hythm: Which libcurl.dll did you use? Do you know which compiler that was compiled with? (mingw or msvc) Which compiler do you use for your builds on Windows?
2022-05-01T11:27:17Z #raku <patrickb> hythm: Can you turn this into a bugreport?
Nemokosch Something odd happened 20:51
_nextwith is not in the dynamic scope of a dispatcher_
If this wasn't new enough for me: if I only give the proto {*}, the arguments seem to be passed wrong 20:53
if I make a dummy body with logging the arguments, they are passed right but this error message shows up for my nextwith call from a multi
check, the arguments are passed almost right - I thought the proto could be used for setting a default value? 20:59
21:05 lichtkind joined
okay, seems like it cannot: "can validate but not modify arguments" 21:05
this one I understand
still don't understand what happened when I gave it a block and hence broke `nextwith`
Anyway, I think this should work:
multi process-pair(@table, $mode, $a, $b = 'x') { nextsame }
and it doesn't
seems like same is too much the same 21:06
okay no, this could work 21:10
the argument passing somehow doesn't work from map 21:11
aaah 21:14
can I somehow tell a multi "if this argument is Nil, do accept but replace it with a default value"? 21:15
no no no, this never works as intended, that's for sure 21:24
if my proto has no default option, the map call fails when there was only 1 element left
so it's not the fault of the argument passing from map
if my proto does have a default option, Nil gets assigned instead 😡
MasterDuke i think that'd have to be done "manually", i.e., make it of type Mu, and in the body check and replace
m: multi sub a($a, Nil $b) { a($a, 42) }; multi sub a($a, $b) { say "$a $b" }; a(3, Nil) 21:27
camelia 3 42
Nemokosch anyway, what I'm trying to do just has too many ways to fail 21:32
however, I'm pretty sure that this fake default is incorrect behavior
if you cannot set a default on a proto, it should say that, not pretend to add a default argument and then set it to Nil 21:34
MasterDuke a quick `git grep proto | grep =` in roast doesn't show anything obviously testing that, so very well could be unspecced 21:44
21:50 tejr joined
gfldex nextsame will just pass on the Capture which is immutable. I would not expect defaults of one candidate to travel to the next that way. 21:52
If anything, this is an ENODOC.
Or better, it could be more precise and tell what is really going on. 21:53
Nemokosch Something else: why are @-sigilled variables treated as immutable when `given`? 22:04
22:43 linkable6 left 22:44 linkable6 joined
Voldenet my @what = <are they now?>; given @what { .push('not at all'); }; say @what 22:50
evalable6 [are they now? not at all]
Voldenet m: my @what := <are they now?>; given @what { .WHAT.say; .push('…if they are lists'); }; say @what 22:53
camelia (List)
Cannot call 'push' on an immutable 'List'
in block <unit> at <tmp> line 1
Nemokosch this is not an assignment, though, it doesn't actually change the container
23:15 lichtkind left
Voldenet m: my @sth = <this>; given @sth { @sth = "it works" }; say @sth 23:24
camelia [it works]
Bscan🍺 I released a vscode extension today for Raku. It defines the language and file extensions (otherwise only shows Perl 6), uses the syntax highlighting from the Atom extension, and contains a simple language server for syntax checking. marketplace.visualstudio.com/items...-navigator
Voldenet m: my @sth = <this>; given @sth { $sth = "this won't work" }; say @sth
camelia ===SORRY!=== Error while compiling <tmp>
Variable '$sth' is not declared. Did you mean '@sth'?
at <tmp>:1
------> my @sth = <this>; given @sth { ⏏$sth = "this won't work" }; say @sth
Voldenet m: my @sth = <this>; given @sth { @_ = "it also works" }; say @sth
camelia [this]
Voldenet m: my @sth = <this>; given @sth { $_ = "this won't work" }; say @sth
camelia Cannot assign to an immutable value
in block <unit> at <tmp> line 1
Voldenet I'm not sure if I get the question, but I wouldn't be able to answer either way 23:27
23:55 discord-raku-bot left 23:57 discord-raku-bot joined