21 May 2022 | |||
Xliff | Voldenet: But you don't even need the parameter... | 00:06 | |
m: enum Alpha <A B C D>; role NextRandom does Positional { method AT-POS ($k) { $k < self.elems ?? (nextsame) !! self.head.WHAT.pick }; }; my $a = (A, B, C, D) but NextRandom[(A, D)]; $a[^10].say | |||
camelia | No appropriate parametric role variant available for 'NextRandom': Cannot resolve caller (List+{NextRandom[List]}:U, List:D); none of these signatures matches: (::$?CLASS ::::?CLASS Mu) in block <unit> at <tmp> line 1 |
||
Xliff | m: enum Alpha <A B C D>; role NextRandom does Positional { method AT-POS ($k) { $k < self.elems ?? (nextsame) !! self.head.WHAT.pick }; }; my $a = (A, B, C, D) but NextRandom; $a[^10].say | 00:07 | |
camelia | (A B C D C B D D B C) | ||
Voldenet | True, but I find it more convenient | 00:09 | |
m: enum Alpha <A B C D>; role NextFrom[&E] does Positional { method AT-POS ($k) { $k < self.elems ?? (nextsame) !! E() }; }; my $a = (A, B, C, D) but NextFrom[{Alpha.pick}]; $a[^10].say; $a[^10].say | |||
camelia | (A B C D C A D D B B) (A B C D D C B C B D) |
||
Xliff | Oooh.. I like that one. | 00:10 | |
Nemokosch | Crazy xD | 00:11 | |
Voldenet | Crazy? It's not even my final form | 00:14 | |
m: enum Alpha <A B C D>; role NextFrom[&E] does Positional { method AT-POS ($k) { $k < self.elems ?? (nextsame) !! { my $*i = $k; my $*self = self; E() }() }; }; my $a = (A, B, C, D) but NextFrom[{$*self[$*i%$*self.elems]}]; $a[^10].say; $a[^10].say | |||
camelia | (A B C D A B C D A B) (A B C D A B C D A B) |
||
Voldenet | now this is properly crazy | ||
Xliff | Voldenet: Wanna adda a couple of .rotates and a .rotor? :) | 00:17 | |
Voldenet | …it's getting to the point where it's probably better to maintain a class after all ;) | 00:18 | |
Xliff | Toldja! ;) | 00:41 | |
kiti_nomad[m] uploaded an image: (111KiB) < libera.ems.host/_matrix/media/r0/d...019899.jpg > | 02:11 | ||
Is the book about Perl5 or Raku | 02:12 | ||
Is the book about Perl5 or Raku | |||
Is there a PDF | 02:13 | ||
thowe | I think Higher Order Perl is available in electronic form online | 05:48 | |
It's Perl 5, though, not Raku | |||
kiti_nomad[m] | Can you give me the link? | 08:50 | |
Voldenet | > hop.perl.plover.com/book/pdf/Highe...erPerl.pdf | ||
gfldex | lolibloggedalittle: gfldex.wordpress.com/2022/05/21/wr...g-it-down/ (PWC spoiler!) | 09:07 | |
Geth | ¦ doc: Altai-man self-assigned "Generated from" has // in the link github.com/Raku/doc/issues/4067 | 09:37 | |
tbrowder | El_Che: are you active here now? | 11:58 | |
.ask El_Che how can i set up debian sudo so it will run raku and zef for a user with either a rakudo-pkg installation or an official raku and zef package installation? i am having no luck with various combinations of path settings in various places (i'm next going to try one of lower level sudo system input files for another way to set paths for the sudu user) | 12:10 | ||
tellable6 | tbrowder, I'll pass your message to El_Che | ||
Geth | ecosystem: 8fe0e234c7 | (Elizabeth Mattijsen)++ | META.list Remove several modules because they live in zef ecosystem now - Acme::Anguish - Games::TauStation::DateTime - Proc::Q - Proxee - Trait::IO |
13:22 | |
ecosystem: a0bb1bc8c5 | (Elizabeth Mattijsen)++ | META.list Freeze Subset::IO While it is being moved to the zef ecosystem |
13:33 | ||
guifa | rjbs at least in the managerial role you know how to code. I've talked to SO MANY PEOPLE lately who are leads who have never coded before. I'm like, wait, what? Corporatization at its best, I guess | 13:47 | |
El_Che | tbrowder: not behind a computer, will look later | 15:01 | |
tellable6 | hey El_Che, you have a message: gist.github.com/0b7df20aad1d44ba41...5139028ea2 | ||
[Coke] | . | 15:05 | |
rjbs | I think a non-coder can be a good manager for a coder. Just requires certain kinds of trust to work. | 15:26 | |
coleman | Cool hack for non-coder managers: make us coders show our work :) Show the program running, even if it's just a terminal | 15:49 | |
bonus points: running code! not just vaporware :) | |||
Xliff | rjbs: They don't have to code. They do need the ability to think logically. Critical problem solving skills also helps. | 15:59 | |
[Coke] | over in #raku-doc, we could use some volunteers to go through Altai-man's new version of the doc site and provide feedback. If you're interested in volunteering for that, please ping me (or maybe join #raku-doc) | 16:59 |