|
🦋 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
reportable6 joined
00:04
jpn joined
00:08
jpn left
00:16
discord-raku-bot left
00:17
discord-raku-bot joined
00:29
lichtkind left
00:55
archenoth left
00:58
jpn joined
01:04
jpn left
01:16
discord-raku-bot left
01:17
discord-raku-bot joined
01:53
razetime joined
02:17
discord-raku-bot left,
discord-raku-bot joined
02:23
epony joined
02:24
jpn joined
02:28
jpn left
02:31
jjido left
|
|||
| rf | Is there an issue with Test::META? Consistently getting: Fetching [FAIL]: Test::META:ver<0.0.19>:auth<zef:jonathanstowe>:api<1.0> from 360.zef.pm/T/ES/TEST_META/dc249956...674.tar.gz | 02:49 | |
|
03:03
rf left
03:17
discord-raku-bot left,
discord-raku-bot joined
03:48
rf joined
03:55
rf left,
rf joined
03:59
rf left,
razetime left
04:18
Xliff left
|
|||
| guifa | constant R = RakuAST; # <--- best line of code ever when working with RakuAST lol | 05:14 | |
|
05:18
linkable6 left,
evalable6 left
05:19
evalable6 joined
05:20
linkable6 joined
06:00
reportable6 left
06:01
reportable6 joined
06:21
heartburn left
06:22
heartburn joined
06:33
razetime joined
06:39
razetime left
07:05
Sgeo_ joined,
razetime joined
07:06
razetime left
07:07
samcv_ joined,
oodani_ joined,
Voldenet_ joined,
gabiruh joined
07:08
Some-body_ joined
07:10
xinming_ joined
07:14
Ulti_ joined,
Sgeo left,
JRaspass left,
xinming left,
samcv left,
gabiruh_ left,
destroycomputers left,
oodani left,
Voldenet left,
DarthGandalf left,
Ulti left,
elcaro left,
Voldenet_ is now known as Voldenet,
Some-body_ is now known as DarthGandalf
07:15
destroycomputers joined
07:17
elcaro joined
07:22
JRaspass joined
07:39
epony left
08:17
discord-raku-bot left,
xinming_ left,
discord-raku-bot joined,
xinming_ joined
08:44
sena_kun joined
08:55
xinming_ left,
xinming_ joined
|
|||
| Geth | examples/master: 4 commits pushed by (JJ Merelo)++ | 09:08 | |
|
09:55
evalable6 left
09:57
evalable6 joined
10:15
Xliff joined
10:17
Xliff left
10:31
xinming_ left,
xinming_ joined
10:35
epony joined
10:42
Sgeo_ left
10:45
xinming_ left
10:46
xinming_ joined
11:35
lichtkind joined
11:49
discord-raku-bot left,
discord-raku-bot joined
11:52
Xliff joined
11:57
discord-raku-bot left
11:58
discord-raku-bot joined
12:00
reportable6 left
12:03
reportable6 joined
12:26
xinming_ left,
xinming_ joined
|
|||
| Xliff | m: use MONKEY-TYPING; augment class Match { method line { self.orig.comb("\n").elems.succ }; }; say "{ .Str } - { .line }" for "ab\\nc\\nde\\n" ~~ m:g/ <[bce>/ | 12:30 | |
| camelia | ===SORRY!=== Unrecognized regex metacharacter < (must be quoted to match literally) at <tmp>:1 ------> .line }" for "ab\\nc\\nde\\n" ~~ m:g/ <⏏[bce>/ Unrecognized regex metacharacter [ (must be quoted to match literally) at <… |
||
| Xliff | m: use MONKEY-TYPING; augment class Match { method line { self.orig.comb("\n").elems.succ }; }; say "{ .Str } - { .line }" for "ab\\nc\\nde\\n" ~~ m:g/ <[bce]>/ | ||
| camelia | b - 1 c - 1 e - 1 |
||
| Xliff | m: use MONKEY-TYPING; augment class Match { method line { self.orig.substr(0, .to).comb("\n").elems.succ }; }; say "{ .Str } - { .line }" for "ab\\nc\\nde\\n" ~~ m:g/ <[bce>/ | 12:31 | |
| camelia | ===SORRY!=== Unrecognized regex metacharacter < (must be quoted to match literally) at <tmp>:1 ------> .line }" for "ab\\nc\\nde\\n" ~~ m:g/ <⏏[bce>/ Unrecognized regex metacharacter [ (must be quoted to match literally) at <… |
||
| Xliff | m: use MONKEY-TYPING; augment class Match { method line { self.orig.substr(0, .to).comb("\n").elems.succ }; }; say "{ .Str } - { .line }" for "ab\\nc\\nde\\n" ~~ m:g/ <[bce]>/ | ||
| camelia | No such method 'to' for invocant of type 'Any'. Did you mean 'so'? in method line at <tmp> line 1 in block at <tmp> line 1 in block <unit> at <tmp> line 1 |
||
| Xliff | m: use MONKEY-TYPING; augment class Match { method line { self.orig.substr(0, self.to).comb("\n").elems.succ }; }; say "{ .Str } - { .line }" for "ab\\nc\\nde\\n" ~~ m:g/ <[bce]>/ | ||
| camelia | b - 1 c - 1 e - 1 |
||
| Xliff | m: use MONKEY-TYPING; augment class Match { method line { my $o = self.orig.substr(0, self.to); $o.say; $o.comb("\n").elems.succ }; }; say "{ .Str } - { .line }" for "ab\\nc\\nde\\n" ~~ m:g/ <[bce]>/ | 12:32 | |
| camelia | ab b - 1 ab\nc c - 1 ab\nc\nde e - 1 |
||
| Xliff | m: use MONKEY-TYPING; augment class Match { method line { my $o = self.orig.substr(0, self.to); $o.say; $o.lines.elems.succ }; }; say "{ .Str } - { .line }" for "ab\\nc\\nde\\n" ~~ m:g/ <[bce]>/ | ||
| camelia | ab b - 2 ab\nc c - 2 ab\nc\nde e - 2 |
||
| Xliff | m: use MONKEY-TYPING; augment class Match { method line { my $o = self.orig.substr(0, self.to); $o.say; $o.lines.elems }; }; say "{ .Str } - { .line }" for "ab\\nc\\nde\\n" ~~ m:g/ <[bce]>/ | 12:33 | |
| camelia | ab b - 1 ab\nc c - 1 ab\nc\nde e - 1 |
||
| Xliff | WTF? | ||
| m: use MONKEY-TYPING; augment class Match { method line { my $o = self.orig.substr(0, self.to.pred); $o.say; $o.lines.elems }; }; say "{ .Str } - { .line }" for "ab\\nc\\nde\\n" ~~ m:g/ <[bce]>/ | 12:34 | ||
| camelia | a b - 1 ab\n c - 1 ab\nc\nd e - 1 |
||
| Xliff | m: $a = "a"; $a.lines.elems.say' | 12:36 | |
| camelia | ===SORRY!=== Error while compiling <tmp> Variable '$a' is not declared. Perhaps you forgot a 'sub' if this was intended to be part of a signature? at <tmp>:1 ------> <BOL>⏏$a = "a"; $a.lines.elems.say' |
||
| Xliff | m: my $a = "a"; $a.lines.elems.say' | ||
| camelia | ===SORRY!=== Error while compiling <tmp> Two terms in a row at <tmp>:1 ------> my $a = "a"; $a.lines.elems.say⏏' expecting any of: infix infix stopper statement end statement modifier… |
||
| Xliff | m: my $a = "a"; $a.lines.elems.say | ||
| camelia | 1 | ||
| Xliff | m: $a = "a\nb"; $a.lines.elems.say' | ||
| camelia | ===SORRY!=== Error while compiling <tmp> Variable '$a' is not declared. Perhaps you forgot a 'sub' if this was intended to be part of a signature? at <tmp>:1 ------> <BOL>⏏$a = "a\nb"; $a.lines.elems.say' |
||
| Xliff | m: $a = "a\nb"; $a.lines.elems.say | ||
| camelia | ===SORRY!=== Error while compiling <tmp> Variable '$a' is not declared. Perhaps you forgot a 'sub' if this was intended to be part of a signature? at <tmp>:1 ------> <BOL>⏏$a = "a\nb"; $a.lines.elems.say |
||
| Xliff | m: my $a = "a\nb"; $a.lines.elems.say | 12:37 | |
| camelia | 2 | ||
| Xliff | m: use MONKEY-TYPING; augment class Match { method line { my $o = self.orig.substr(0, self.to.pred); $o.say; $o.lines.elems }; }; say "{ .Str } - { .line }" for "ab\\nc\\nde\\n" ~~ m:g/ <[bce]>/ | ||
| camelia | a b - 1 ab\n c - 1 ab\nc\nd e - 1 |
||
| Xliff | Odd. | ||
|
13:13
PipStuart joined
13:16
xinming_ left
13:17
xinming_ joined
13:41
Homer_Simpson joined
13:44
PipStuart left
13:46
PipStuart joined
|
|||
| Xliff | m: use MONKEY-TYPING; augment class Match { method line { my $o = self.orig.substr(0, self.to.pred); $o.say; $o.lines.elems }; }; say "{ .Str } - { .line }" for "ab\\nc\\nde\\n" ~~ m:g/ <[bce]>/ | 13:50 | |
| camelia | a b - 1 ab\n c - 1 ab\nc\nd e - 1 |
||
| Xliff | Is there an easy way to take an array <A B C> and turn it into a hash refrence %<A><B><C> ? | 13:51 | |
| guifa | Xliff yes | ||
| Xliff | guifa! Whoa! Please share! | ||
| guifa | m: my @foo = <A B C>; my %bar = A => %( B => %( C => "D" ) ); say %bar{||@foo} | 13:52 | |
| camelia | ({B => {C => D}} (Any) (Any)) | ||
| guifa | errr | ||
| I thought that was put into main a few months ago? | |||
| Xliff | guifa: Where is the discussion on that? | 13:53 | |
| guifa | m: use 6.e; my @foo = <A B C>; my %bar = A => %( B => %( C => "D" ) ); say %bar{||@foo} | ||
| camelia | ===SORRY!=== Error while compiling <tmp> Undeclared routine: use used at line 1 (in Raku please use "v" prefix for pragma (e.g., "use v6;", "use v6.c;") instead) |
||
| guifa | m: use v6.e; my @foo = <A B C>; my %bar = A => %( B => %( C => "D" ) ); say %bar{||@foo} | ||
| camelia | ===SORRY!=== Error while compiling <tmp> Raku v6.e requires PREVIEW modifier at <tmp>:1 ------> use v6.e⏏; my @foo = <A B C>; my %bar = A => %( B |
||
| guifa | Xliff: I'll see if I remember, but the operator is || | ||
| Xliff | m: use v6.e PREVIEW; my @foo = <A B C>; my %bar = A => %( B => %( C => "D" ) ); say %bar{||@foo} | ||
| camelia | ===SORRY!=== Error while compiling <tmp> Raku v6.e requires PREVIEW modifier at <tmp>:1 ------> use v6.e⏏ PREVIEW; my @foo = <A B C>; my %bar = A |
||
|
13:53
dogbert11 left
|
|||
| guifa | it's like a super slip of sorts | 13:54 | |
| but I can't think of the right search term to find it | |||
| Xliff | my @foo = <A B C>; my %bar = A => %( B => %( C => "D" ) ); my %h; %h := %h{$_} for @foo; %h.gist.say | 13:56 | |
| m: my @foo = <A B C>; my %bar = A => %( B => %( C => "D" ) ); my %h; %h := %h{$_} for @foo; %h.gist.say | |||
| camelia | Type check failed in binding; expected Associative but got Any (Any) in block <unit> at <tmp> line 1 |
||
|
13:57
dogbert11 joined
|
|||
| Xliff | m: my @foo = <A B C>; my %bar = A => %( B => %( C => "D" ) ); my $h = %bar; $h := $h{$_} for @foo; $h.gist.say | 13:57 | |
| camelia | D | ||
| Xliff | There we do. | ||
| What role needs to be implemented for an object to work with for? | 14:15 | ||
| I have Iterable with a method iterator, but it doesn't work. | 14:16 | ||
|
14:17
discord-raku-bot left
14:18
discord-raku-bot joined
|
|||
| guifa | I can't remember if for checks for Positional or Iterable | 14:20 | |
| probably Iterable I'd guess so | |||
| Nemokosch | well, what happens? | 14:22 | |
|
14:28
razetime joined
14:30
dogbert11 left
14:43
razetime left
14:50
dogbert11 joined
14:54
simcop2387 left,
perlbot left
14:55
perlbot joined
14:57
simcop2387 joined
14:58
grondilu joined
|
|||
| grondilu | m: say ($(1,2),).Set === ($(1,2),).Set # shouldn't that be True? | 15:00 | |
| camelia | False | ||
| Nemokosch | wait, === ? Probably not | 15:04 | |
| they are reference types | |||
|
15:06
discord-raku-bot left,
discord-raku-bot joined
|
|||
| grondilu | m: say ($(1,2),).Set ~~ ($(1,2),).Set | 15:08 | |
| camelia | False | ||
| grondilu | m: say ($(1,2),).Set (==) ($(1,2),).Set | 15:09 | |
| camelia | False | ||
| grondilu | m: say ((1,2),).Set (==) ((1,2),).Set | 15:10 | |
| camelia | True | ||
| grondilu | m: say ((1,2),).Set.elems | ||
| camelia | 2 | ||
| grondilu | 🤔 | ||
| what I want is to use `classify` with a test function returning a set. I can't make it work when the set contains Lists. | 15:12 | ||
| moritz | that's because Lists can contain references, so they aren't good value types | 15:14 | |
| Nemokosch | Actually, the WHICH method of a Set is a bit interesting | 15:15 | |
| maybe it is a value type, after all? <:cameliathink:897316667653247057> | |||
| List surely isn't, that one returns something that looks like a plain address | |||
|
15:16
NemokoschKiwi joined
|
|||
| NemokoschKiwi | m: (1, 2).List.say; (1, 2).Set.say; | 15:16 | |
| camelia | (1 2) Set(1 2) |
||
| NemokoschKiwi | oops, dum dum | ||
| m: (1,2).List.WHICH.say; (1, 2).Set.WHICH.say; | |||
| camelia | List|3094028646688 Set|AEA2F4CA275C3FE01D5709F416F895F283302FA2 |
||
| grondilu | what's the value type equivalent of a List, then? | 15:18 | |
| I doubt a Seq would work | |||
| m: say ((1,2).Seq,).Set (==) ((1,2).Seq,).Set | 15:19 | ||
| camelia | True | ||
| NemokoschKiwi | raku.land/zef:lizmat/ValueList | 15:22 | |
| grondilu | Not in core, really? | 15:24 | |
| NemokoschKiwi | I don't know of anything else | 15:25 | |
| Homer_Simpson | can someone make me a subroutine that read a single char from an array, compares it to a char that the user specifies, and returns true if it matches and false if it does not match | 15:32 | |
| it should also move to the next char if the user does $chr++ in a loop say | 15:34 | ||
| I couldnt find a built in routine that does what I want | 15:38 | ||
|
15:38
shmup left
|
|||
| Homer_Simpson | and my $chr is implicitally a string not a single character | 15:38 | |
| so even if I did substr (@contents, 0..4) it would by pass the range | 15:39 | ||
| if chr(32) != $chr = substr(@contents[$line], $chr, $chr++)) { ... } | 15:40 | ||
| if ($chr = substr(@contents[$line], $chr, $chr++) ne chr(32)) { ... } | 15:41 | ||
| idk | |||
| it would be nice to have search(@contents[$line], $chr++, chr(32)); | 15:42 | ||
| if the file contents was 1 2\n11 2\n it should match space regardless if its 1, 11 or 111 etc | 15:43 | ||
| grondilu | Homer_Simpson: I suspect you think strings are arrays. In raku, they're not. | 15:44 | |
| Homer_Simpson | I know | ||
| grondilu | ok, sorry | ||
| Homer_Simpson | but im trying to find a way to do it | ||
|
15:44
guifa_ joined
|
|||
| Homer_Simpson | I do have a simular function: | 15:44 | |
| pastebin.com/Jmcucthn | 15:45 | ||
| so maybe just modify that one | |||
| this one simply replaces a single char from a string | 15:46 | ||
|
15:46
guifa left
|
|||
| Homer_Simpson | I probably didnt' realize that $chr wasn't doing what I thought | 15:49 | |
| grondilu | you could just convert your string into an array of characters, if that would make it easier for you. | 15:50 | |
| Homer_Simpson | even with a range in substr | ||
| how | |||
| grondilu | m: say "foo".comb | ||
| camelia | (f o o) | ||
| Homer_Simpson | ok so comb returns a char array? | 15:51 | |
| ok interesting hmm | 15:52 | ||
| grondilu | an array of graphemes, I think. | ||
| but in ascii that would be the same. | |||
| also it may be a List or even a Seq. Not sure. | 15:53 | ||
| m: say "foo".comb.WHAT | |||
| camelia | (Seq) | ||
| grondilu | so affect it to an array. | ||
| m: say my @txt = "foo".comb; say @txt.WHAT | |||
| camelia | [f o o] (Array) |
||
| Homer_Simpson | can I do say(my @c-array = comb(@contents)); | 15:57 | |
| grondilu | comb is not a routine IIRC | 15:58 | |
| Homer_Simpson | ill try and make a routine from most of combs declaration | ||
| for now, can it at least do @content.comb = @c-array | 15:59 | ||
| so if @contente was ["hello"] , ["world"] then @c-array would be (('h','e','l','l','o'),('w','o','r','l','d')) | 16:01 | ||
| tbrowder | howdy, i have a new host with raku installed for use by root or my normal user. zef is currenty installed for use only by root. i want raku modules only installable by root but have them installed for use by all users. the modules should be installed into a standard directory created | ||
|
16:02
dogbert17 joined
|
|||
| tbrowder | under /opt/rakudo-pkg | 16:02 | |
| Homer_Simpson | my @str = ("hello","world"); @str.comb = my @c-arrray; #Cannot modify an immutable Seq ((h e l l o w o r l d)) | 16:04 | |
|
16:04
dogbert11 left
|
|||
| Xliff | Nemokosch: Got it working. Had to do .say for $a[] where A does Iterable | 16:04 | |
| tellable6 | Xliff, I'll pass your message to Nemokosch | ||
| Xliff | That's more like ".say for $a[]" where $a does Iterable, to clarify what is code and what isn't. | 16:05 | |
| m class A { }; role B { }; A does B; A.^name.say | |||
| m: class A { }; role B { }; A does B; A.^name.say | |||
| camelia | Cannot use 'does' operator on a type object A. in block <unit> at <tmp> line 1 |
||
| grondilu | m: say my @c-array = (my @content = <hello world>)>>.comb | ||
| camelia | [(h e l l o) (w o r l d)] | ||
| Xliff | How can you pun a role on a class after the class is defined? | 16:06 | |
| Homer_Simpson | my @str = ("hello","world"); | ||
| my @c-array = @str.comb; | |||
| print(@c-array[1]); | |||
| thx | |||
| beat me to it :) | |||
| Xliff | m: class A { }; role B { }; use MONKEY-TYPING; augment class A { also does B }; A.^name.say' | 16:08 | |
| camelia | ===SORRY!=== Error while compiling <tmp> Two terms in a row at <tmp>:1 ------> ent class A { also does B }; A.^name.say⏏' expecting any of: infix infix stopper statement end statement … |
||
| tbrowder | that "standard" dir should be what in zef's terms ("--install-to=some-dir")? | ||
| Xliff | m: class A { }; role B { }; use MONKEY-TYPING; augment class A { also does B; }; A.^name.say' | ||
| camelia | ===SORRY!=== Error while compiling <tmp> Two terms in a row at <tmp>:1 ------> nt class A { also does B; }; A.^name.say⏏' expecting any of: infix infix stopper statement end statement … |
||
| Xliff | m: class A { }; role B { }; A.add_role(B); A.^name.say | 16:10 | |
| camelia | No such method 'add_role' for invocant of type 'A' in block <unit> at <tmp> line 1 |
||
| Xliff | m: class A { }; role B { }; A.^add_role(B); A.^name.say | ||
| camelia | A | ||
| Xliff | m: class A { }; role B { }; A.^add_role(B); A.^compose; A.^name.say | ||
| camelia | A | ||
|
16:15
grondilu left
|
|||
| Nemokosch | Xliff: oh right, you know, "itemization" of Scalar containers | 16:17 | |
|
16:37
shmup joined
16:40
discord-raku-bot left,
discord-raku-bot joined
|
|||
| Homer_Simpson | ok so, how do I convert my file into an array where each line is one dimention and each ccharacter is another dimention, using comb | 16:54 | |
| ddimension* | |||
| lines i.e up to \n | 16:55 | ||
| I keep getting array out of index | 16:56 | ||
| something like: my $fh = open "data.ldr", :r; my $line = $fh.lines; my $index; $fh.lines.comb; my @contents = ($line ; $index); close($fh); | 17:01 | ||
| or: my $fh = open "data.ldr", :r; my @line = $fh.lines; my @index; $fh.lines.comb; my @contents = (@line ; @index); close($fh); | 17:02 | ||
| brb | 17:13 | ||
|
17:17
discord-raku-bot left,
discord-raku-bot joined
|
|||
| Xliff | What's the proper parameter target when the parameter is a literal value? | 17:20 | |
| Rather, the proper RakuAST Node | |||
| So, I'm trying to create the RakuAST for: method a("me") { ... } | 17:21 | ||
| lizmat | "file".IO.lines.map(*.comb.List) # comes to mind Homer_Simpson | 17:23 | |
| guifa_ | my @lines = $fh.lines.map(*.comb) | ||
| lol | |||
| jinx | |||
| lizmat | I think you need the .List otherwise you'll just get Seqs | ||
| Xliff | lizmat: Can you help, please? | 17:24 | |
| lizmat | and either would break, or just created Arrays under the hood | ||
| Xliff | lizmat: Let me know if you are busy or not. I am not trying to intrude or interrupt. Just would like a little bit of help. | ||
| lizmat | Xliff: look for RakuAST::Method in t/12-rakuast | ||
| Xliff | lizmat: All occurrences are "expression => RakuAST::Method.new(" which doesn't look right | 17:25 | |
| lizmat | what doesn't look right about it? | 17:26 | |
| RakuAST::Method.new( | |||
| name => RakuAST::Name.from-identifier('meth-a'), | |||
| body => RakuAST::Blockoid.new( | |||
| RakuAST::StatementList.new( | |||
| RakuAST::Statement::Expression.new( | |||
| expression => RakuAST::IntLiteral.new(99) | |||
| ) | |||
| ), | |||
| ) | |||
| Xliff | OK, sorry. | 17:27 | |
| The example was too literal., | |||
| I need the signature object, not the method declaration. | |||
| And that's the AST for "method meth-a { 99 }" not "method meth-a (99) { }" | 17:28 | ||
| lizmat | then look for RakuAST::Signature | 17:30 | |
| RakuAST::Signature.new( | 17:31 | ||
| parameters => ( | |||
| RakuAST::Parameter.new( | |||
| target => RakuAST::ParameterTarget::Var.new('$param') | |||
| ), | |||
| ) | |||
| Xliff | It's not in signature.rakutest -- that one tests all possible variable-based signatures | 17:32 | |
| Same with statement.rakutest | |||
| Same with label.rakutest | 17:33 | ||
| Same with code.rakutest. | |||
| That's all the occurrences. | |||
|
17:35
linkable6 left
|
|||
| lizmat | Xliff? rak finds 29 occurrences of RakuAST::Signature in t/12-rakuast | 17:37 | |
| Xliff | lizmat: I've checked them all, not a single one deals with a Parameter Listeral. They are all variables | ||
|
17:38
linkable6 joined
|
|||
| lizmat | ok, what is the code that you want to make? /me is confused | 17:38 | |
| Xliff | "method meth-a (99) { } | ||
| What you've shown is: "method meth-a { 99 }" | |||
| lizmat | github.com/rakudo/rakudo/blob/main...kutest#L61 is: ($param) | 17:40 | |
| github.com/rakudo/rakudo/blob/main...kutest#L58 is (Int $x) | 17:42 | ||
| github.com/rakudo/rakudo/blob/main...utest#L205 is (:first(:fst($var))!) | |||
| aren't these sufficient examples? | |||
| Xliff | No! | 17:44 | |
| Geth | doc: jmaslak++ created pull request #4185: throws-like does not work correctly a string for the exception name |
||
| Xliff | lismat: Every example you've posted has a "$" in it! | ||
| I'm not looking for variables, I need parameter Literals! | |||
| m: multi sub a (42) { "Boo!" }; multi sub a ($a) { "Not Boo!" }; say a(2); say a(42) | 17:45 | ||
| camelia | Not Boo! Boo! |
||
| lizmat | aah... ok | ||
| lemme see if that a. works, and b. I can write a test for it :-) | |||
| m: say Q| sub foo (42) { } |.AST.dump # that may not work yet | 17:46 | ||
| camelia | CompUnit 𝄞 /home/camelia/EVAL_0:1 ⎡ sub foo (42) { } ⎤ StatementList 𝄞 /home/camelia/EVAL_0:1 ⎡sub foo (42) { } ⎤ Statement::Expression ▪𝄞 /home/camelia/EVAL_0:1 ⎡sub foo (42) { } ⎤ Sub 𝄞 /home/camelia/EVAL_… |
||
| Xliff | D'oh! I forgot about --target! | 17:48 | |
| Aaand.... --target ast not so good. | 17:49 | ||
| p6steve | comb is both a sub and a method ... but you need to supply a matcher first if using the sub variant | 17:50 | |
| m:say my @c-array = comb(/./,"foo"); | |||
| Homer_Simpson | thx @lizmat | 17:54 | |
|
17:59
pleasantpheasant joined
|
|||
| pleasantpheasant | Testing IRC-Discord bridge | 18:00 | |
|
18:00
reportable6 left
|
|||
| Nemokosch | huhu | 18:01 | |
|
18:02
raku-discord joined,
reportable6 joined
|
|||
| pleasantpheasant | Testing again... | 18:02 | |
| Raku bridge | **<pleasantpheasant>** Testing again... | ||
| **<discord-raku-bot>** <Raku bridge> **<pleasantpheasant>** Testing again... | |||
| **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<pleasantpheasant>** Testing again... | |||
| **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<pleasantpheasant>** Testing again... | |||
| raku-discord | <4raku-bot> <pleasantpheasant> Testing again... | ||
| Raku bridge | **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<pleasantpheasant>** Testing again... | ||
| **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<pleasantpheasant>** Testing again... | |||
| **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<pleasantpheasant>** Testing again... | |||
| **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<pleasantpheasant>** Testing again... | |||
| raku-discord | <4raku-bot> <raku-discord> <4raku-bot> <pleasantpheasant> Testing again... <4raku-bot> <raku-discord> <4raku-bot> <raku-discord> <4raku-bot> <raku-discord> <4stevied> which one was that, the one that lets you use a menu to navigate it? | ||
| Raku bridge | **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<pleasantpheasant>** Testing again... | ||
| raku-discord | <4raku-bot> <raku-discord> <4raku-bot> <raku-discord> <4raku-bot> <pleasantpheasant> Testing again... <4raku-bot> <raku-discord> <4raku-bot> <raku-discord> <4raku-bot> <raku-discord> <4stevied> which one was that, the one that lets you use a menu to navigate it? | ||
| Raku bridge | **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<pleasantpheasant>** Testing again... | ||
| raku-discord | <4raku-bot> <raku-discord> <4raku-bot> <raku-discord> <4raku-bot> <raku-discord> <4raku-bot> <pleasantpheasant> Testing again... <4raku-bot> <raku-discord> <4raku-bot> <raku-discord> <4raku-bot> <raku-discord> <4stevied> which one was that, the one that lets you use a menu to navigate it? | ||
| Raku bridge | **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<pleasantpheasant>** Testing again... | ||
| **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<plea | |||
| **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<disc | |||
|
18:02
raku-discord left
|
|||
| **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<discord-raku-bot>** <Raku bridge> **<disc | 18:02 | ||
| pleasantpheasant | Well, *that* was less than ideal. | 18:03 | |
| Homer_Simpson | holy mackrel | ||
| Zephyr | indeed... | ||
| Rog | I expected double messages but not the ping-pong | ||
| Zephyr | me neither | 18:04 | |
|
18:11
squashable6 left
18:12
squashable6 joined
18:16
codesections joined
18:17
jpn joined
|
|||
| tbrowder | can anyone say if installing zef only in /opt/rakudo-pkg/bin would work for both root and a normal user for using installed modules? | 18:27 | |
|
18:33
NemokoschKiwi left
18:44
jpn left
18:47
josh24 joined
18:50
jpn joined
18:51
josh24 left
18:52
djerius left,
djerius joined
|
|||
| El_Che | tbrowder: the user will able to use the root installed modules. But it's a good idea to install zef as a user imho | 19:12 | |
| tellable6 | 2023-01-20T23:29:13Z #raku <melezhik> El_Che - thanks - will let you know | 19:13 | |
|
19:47
discord-raku-bot left
|
|||
| tbrowder | El_Che: thanks. i understand, and generally agree. for my pristine box, though, and i being the only user for now, want to see if i can do better at installing modules for use system-wide. i'm writing a bash script to help me do that. | 19:49 | |
| i've run into weird cases with mixed installations and haven't had much luck getting a handle on it. | 19:50 | ||
| and there's nothing at the moment stopping any other user from installing for themselves. | 19:51 | ||
| so i'm keeping zef out of my user account until it's too much pain | 19:52 | ||
|
19:53
raku-discord joined
19:55
Zephyr[m] joined
|
|||
| Zephyr[m] | test | 19:55 | |
| raku-discord | <2Zephyr> test2 | 19:57 | |
| El_Che | tbrowder: I use it 2 ways. Local in my home on my user machines. as root in /opt in containers | 20:01 | |
| raku-discord | <5Nemokosch> woah | 20:02 | |
| <5Nemokosch> I mean, it does look fancy, not gonna lie 😄 | |||
| <5Nemokosch> why the number 5 in front of my name though | |||
| <2Zephyr> ...I'm not quite sure, lemme check | 20:03 | ||
| <2Zephyr> it doesn't appear on Matrix, lemme just log into IRC | |||
| <2Zephyr> cdn.discordapp.com/attachments/633.../image.png | |||
| tbrowder | El_Che: by containers are you talking docker VMs or qemu VMs or? | ||
|
20:04
Zep20230123 joined
|
|||
| raku-discord | <2Zephyr> test | 20:05 | |
| <2Zephyr> @Nemokosch doesn't show up for me | |||
| <2Zephyr> cdn.discordapp.com/attachments/633.../image.png | |||
|
20:05
jpn left
|
|||
| raku-discord | <5Nemokosch> irclogs.raku.org/raku/live.html | 20:05 | |
| <5Nemokosch> well, where does the log get it from, then | |||
| <2Zephyr> weird, colabti.org/irclogger/irclogger_log/raku doesn't have it | 20:06 | ||
| <5Nemokosch> true.. | 20:07 | ||
| <5Nemokosch> well I guess the logging will need to be adapted either way | |||
| <2Zephyr> maybe this? | |||
| <2Zephyr> cdn.discordapp.com/attachments/633.../image.png | |||
| <5Nemokosch> could be | |||
| <5Nemokosch> they do show some correspondence to our colors, that's for sure | 20:08 | ||
|
20:08
Guest93 joined
20:09
Guest93 left
|
|||
| raku-discord | <2Zephyr> I think we should look into bridging other channels as well, also removing the webring channel since it doesn't exist anymore | 20:09 | |
| <2Zephyr> I guess that's for tomorrow though, I'll go sleep for today | |||
| <5Nemokosch> okay, good night 🙂 | 20:10 | ||
|
20:13
raku-discord left,
discord-raku-bot joined
|
|||
| Zephyr | test2 | 20:13 | |
| I guess the outcome was the new bridge adapting, but yeah | 20:14 | ||
| Nemokosch | oh well | 20:16 | |
| tricky-tricky | |||
| name change? | |||
| Zephyr | name change + colored nickname disabling | ||
|
20:16
Sgeo joined
|
|||
| I didn't realize there was an option for the latter | 20:16 | ||
| Nemokosch | oh cool | ||
|
20:17
Zephyr[m] left,
Zep20230123 left
|
|||
| tbrowder | El_Che: ah, i just found /opt/rakudo-pkg/bin/zef-as-root, that looks like i should use that shebang line in my script. do you know what its intended purpose is? | 20:20 | |
|
20:21
squashable6 left
20:22
squashable6 joined
20:54
jpn joined
20:58
sena_kun left
21:07
Geth left,
Geth joined,
Geth left
21:08
Geth joined
21:11
rf joined
21:53
jpn left
|
|||
| Geth | Raku-Steering-Council: codesections++ created pull request #55: Announcement of JJ's resignation |
22:05 | |
|
22:07
Geth left
22:08
Geth joined
22:12
Geth left,
Geth joined
|
|||
| [Coke] | -1 on the colors. | 22:18 | |
|
22:20
Xliff left
|
|||
| El_Che | sad to see JJ go | 22:30 | |
| Nemokosch | is there a nice and straightforward way to split a list by series of identical values? | 23:10 | |
|
23:30
epony left
23:51
lichtkind left
|
|||