Raku Conference Day 2 on Youtube: www.youtube.com/watch?v=BL9-XdC9WYI šŸ¦‹ 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 14 August 2022.
00:07 reportable6 left 00:08 reportable6 joined 00:46 Furor is now known as Colere 00:47 Colere left 00:48 TieUpYourCamel left
ugexe gist.github.com/ugexe/ce581c7cac44...ebe816d97f 00:53
a prototype of the load-from-this-same-dist functionality 00:54
anyone have suggestions to make the `use-from-dist("module-name")` work as `use-from-dist(module-name)`? 00:56
or `use-from-dist module-name`
00:56 TieUpYourCamel joined 01:47 frost joined 02:09 Colere joined 02:36 frost left 03:36 squashable6 left, sourceable6 left, coverable6 left, committable6 left, greppable6 left, benchable6 left, notable6 left, bloatable6 left, reportable6 left, statisfiable6 left, evalable6 left, tellable6 left, bisectable6 left, releasable6 left, releasable6 joined, tellable6 joined, squashable6 joined 03:37 notable6 joined, reportable6 joined, committable6 joined, greppable6 joined, sourceable6 joined, benchable6 joined 03:38 statisfiable6 joined, coverable6 joined, bloatable6 joined, evalable6 joined 03:39 bisectable6 joined 04:34 gfldex left, discord-raku-bot left 05:34 sourceable6 left, committable6 left, reportable6 left, statisfiable6 left, coverable6 left, releasable6 left, notable6 left, squashable6 left, nativecallable6 left, evalable6 left, greppable6 left, bloatable6 left, tellable6 left, linkable6 left, shareable6 left, unicodable6 left, quotable6 left, benchable6 left, bisectable6 left, statisfiable6 joined, benchable6 joined, quotable6 joined 05:35 reportable6 joined, linkable6 joined, greppable6 joined, squashable6 joined 05:36 committable6 joined, sourceable6 joined, nativecallable6 joined, bloatable6 joined, unicodable6 joined, notable6 joined, shareable6 joined, releasable6 joined 05:37 bisectable6 joined, coverable6 joined, evalable6 joined, tellable6 joined 06:07 reportable6 left 06:10 reportable6 joined 06:18 elcaro left 06:40 elcaro joined, Sgeo left, elcaro left, elcaro joined 06:42 summerisle is now known as eof 07:42 reportable6 left, committable6 left, shareable6 left, statisfiable6 left, tellable6 left, benchable6 left, greppable6 left, sourceable6 left, releasable6 left, evalable6 left, bloatable6 left, unicodable6 left, squashable6 left, linkable6 left, nativecallable6 left, notable6 left, coverable6 left, bisectable6 left, quotable6 left 07:43 unicodable6 joined, committable6 joined, sourceable6 joined, shareable6 joined, bloatable6 joined, squashable6 joined, coverable6 joined, nativecallable6 joined, notable6 joined, quotable6 joined 07:44 greppable6 joined, reportable6 joined, tellable6 joined, linkable6 joined, releasable6 joined, bisectable6 joined 07:45 evalable6 joined, statisfiable6 joined, benchable6 joined 08:11 sena_kun joined 08:47 frost joined 09:25 sena_kun left 10:04 sena_kun joined 10:36 timo left 10:58 discord-raku-bot joined 11:06 gfldex joined
tib Hi all :) by curiosity, anyone can tell me what is or was "pigeon" (from www.reddit.com/r/linux/comments/3y...context=3) or it was just the word used to talk about "parrot"? 11:40
11:42 mexen_ joined 12:01 timo joined 12:08 reportable6 left 12:11 reportable6 joined 12:42 jgaz joined 13:11 otpv joined, otpv left 14:11 bisectable6 left, benchable6 left, nativecallable6 left, evalable6 left, committable6 left, greppable6 left, tellable6 left, quotable6 left, notable6 left, reportable6 left, linkable6 left, sourceable6 left, squashable6 left, unicodable6 left, shareable6 left, releasable6 left, bloatable6 left, coverable6 left, statisfiable6 left, evalable6 joined, notable6 joined 14:12 sourceable6 joined, frost left, nativecallable6 joined, reportable6 joined, quotable6 joined, committable6 joined, greppable6 joined, benchable6 joined, releasable6 joined, linkable6 joined, tellable6 joined, statisfiable6 joined 14:13 squashable6 joined, coverable6 joined, bloatable6 joined, unicodable6 joined, bisectable6 joined 14:14 shareable6 joined 14:36 jgaz left
leont I can't add a COERCE method to a role, can I? 14:56
Mixing in a role { COERCE() { .ā€¦ }} gives an error because something else is already adding a COERCE as well, I don't know any other escape hatch
Er, I meant add a CEORCE to an enum 14:57
14:58 xinming left 14:59 xinming joined
p6steve this code line seems to work as intended ```$obj = sort( $obj: {$obj[$++]<species>, $obj[$++]<mass>})[*].reverse^;``` 15:16
I am a bit nervous that the state var ```$``` is getting incremented twice on each pass ... or is it one state var for each subscript ```[]```? 15:18
15:19 epony left
p6steve m: my @a = 3,6,5,7;for ^2 { say @a[$++] } 15:26
camelia 3
6
p6steve m: my @a = 3,6,5,7;for ^2 { say @a[$++], '+', @a[$++] }
camelia 3+3
6+6
p6steve looks like the [] subscript delimits the block scope of $ 15:27
Nemokosch I'd like to know the reason for this behavior 15:31
p6steve m: my @a = 3,6,5,7;for ^2 {state $i; say @a[$i++],'+',@a[$i++]} 15:33
camelia 3+6
5+7
15:34 Nemokosch joined
Nemokosch . 15:34
tellable6 2022-08-23T10:48:11Z #raku <leont> Nemokosch: It will probably work if you use Getopt::Long šŸ˜‰
2022-08-27T11:13:01Z #raku <leont> Nemokosch: I will open a ticket as soon as I narrowed it down. It's tricker than I thought
Nemokosch m: for ^2 { ($ ~= 'asd') .WHICH.say; ($++) .WHICH.say; }
camelia Str|asd
Int|0
Str|asdasd
Int|1
Nemokosch oops, bad copy 15:35
leont Very helpul, tellable6
Nemokosch this was simple enough
m: for ^2 { ($++) .WHICH.say; ($++) .WHICH.say; }
camelia Int|0
Int|0
Int|1
Int|1
Nemokosch almost as if they were two different static variables
p6steve I think that may be intentional 15:36
Nemokosch isn't this the same thing that you showed? 15:39
p6steve I think that the independent indexing is useful 15:40
maybe like this
Nemokosch it can be useful, I just don't understand it :D 15:41
p6steve m: my @a = 3,6,5,7;for ^2 { say @a[$++], '+', @a[$+=2] }
camelia 3+5
6+(Any)
Nemokosch umm 15:42
something seems strange
p6steve m: my @a = 3,6,5,7,8,9,2;for ^2 { say @a[$++], '+', @a[$+=2] }
camelia 3+5
6+8
Nemokosch can you comprehend this? because I surely can't 15:44
p6steve looking at this behaviour, I would say for the state var, each index [] "context" is seen as a block scope 15:45
so in my first example, there are two state vars and each increments each time it is touched, so they index the same values 15:46
Nemokosch so far so good 15:47
oh maybe I just miscounted
it just acts like two state variables
but wasn't this the case without indexing as well? 15:48
p6steve yes - just acts like two independent state vars
Nemokosch m: for ^2 { ($++) .WHICH.say; ($ += 2) .WHICH.say; }
camelia Int|0
Int|2
Int|1
Int|4
p6steve I didn't try outside of the index [] 15:49
I did declare state $i in the outer scope and then used it in both indexes (and then $i is shared) 15:50
looks like the () example you just did has single $ also 15:51
alles klar? 15:52
Nemokosch jawohl xd 15:55
15:55 Nemokosch left 15:58 MoC joined
lizmat PSA: this week's Rakudo Weekly news will be later today or tomorrow 16:26
16:33 Kaiepi left 16:34 Kaiepi joined 17:12 sena_kun left 17:14 razetime joined 17:20 razetime left 17:45 ProperNoun left 17:59 sena_kun joined 18:07 reportable6 left 18:09 reportable6 joined 18:11 epony joined 18:26 silug left 18:32 silug joined 18:33 silug left 19:21 squashable6 left 19:23 squashable6 joined 19:27 silug joined
lizmat and yet another Rakudo Weekly News hits the Net: rakudoweekly.blog/2022/08/29/2022-35-reworkout/ 20:05
20:27 linkable6 left, evalable6 left, evalable6 joined 20:29 linkable6 joined
Xliff m: my $*a, $*b = (1, 2); DYNAMIC::.keys.gist.say 20:39
camelia Dynamic variable $*b not found
in block <unit> at <tmp> line 1
Xliff m: my ($*a, $*b) = (1, 2); DYNAMIC::.keys.gist.say
camelia ($_ ::?PACKAGE $=pod $*a $=finish EXPORT $?PACKAGE $Ā¢ GLOBALish $*b $! !UNIT_MARKER $/)
Xliff m: class A { method a { DYNAMIC::.keys.gist.say }; }; my ($*a, $*b) = (1, 2); A.a 20:40
camelia ($! %_ $Ā¢ self $/ $_)
Xliff Why aren't $*a and $*b visible in the second example? 20:41
20:44 [Coke] left
Xliff m: sub a { DYNAMIC::.keys.gist.say }; my ($*a, $*b) = (1, 2); A.a 20:45
camelia ===SORRY!=== Error while compiling <tmp>
Undeclared name:
A used at line 1
Xliff m: sub a { DYNAMIC::.keys.gist.say }; my ($*a, $*b) = (1, 2); a()
camelia ($/ $Ā¢ $! $_)
japhb Well that explains some weirdness that I thought was just me holding it wrong. 20:48
20:48 [Coke] joined
japhb ... and why I generally handle dynamic variables by setting PROCESS:: keys 20:49
Xliff Example, please? 20:52
japhb: Exanple, please? 20:57
m: class A { method a { DYNAMIC::.keys.gist.say }; }; PROCESS::<$a> = 1; PROCESS:<$b> = 2; A.a 20:59
camelia ===SORRY!=== Error while compiling <tmp>
Preceding context expects a term, but found infix = instead.
Did you make a mistake in Pod syntax?
at <tmp>:1
------> }; }; PROCESS::<$a> = 1; PROCESS:<$b> =ā 2; A.a
Xliff m: class A { method a { DYNAMIC::.keys.gist.say }; }; PROCESS::<$a> = 1; PROCESS::<$b> = 2; A.a 21:00
camelia ($/ $_ %_ self $! $Ā¢)
Xliff m: PROCESS::<$a> = 1; PROCESS::<$b> = 2; class A { method a { DYNAMIC::.keys.gist.say }; }; ; A.a
camelia ($/ $_ %_ self $! $Ā¢)
Xliff m: class A { method a { $*a.say; $ *b.say }; }; PROCESS::<$a> = 1; PROCESS::<$b> = 2; A.a
camelia ===SORRY!=== Error while compiling <tmp>
Undeclared routine:
b used at line 1
Xliff m: class A { method a { $*a.say; $*b.say }; }; PROCESS::<$a> = 1; PROCESS::<$b> = 2; A.a
camelia 1
2
21:03 euandreh left 21:05 euandreh joined 21:35 epony left
japhb Sorry, was working $day-job. :-) 21:40
But yeah, I don't generally do DYNAMIC:: introspection, so when I need to set particular variables to be seen anywhere in my code, I just set the PROCESS:: keys as you did with your last example. 21:41
Because PROCESS:: is the final fallback for all dynamic searches.
22:04 sena_kun left 22:14 euandreh left 22:16 euandreh joined 22:19 epony joined 22:34 Sgeo joined 22:45 archenoth left, MoC left 22:53 Guest10 joined
Guest10 my last name is sud => stupid suicide 22:54
i am mage looking for a priest and healer 22:55
help 22:57
reno911
23:10 Guest10 left 23:19 bdju left 23:28 archenoth joined 23:46 bigdata joined