[00:01] m: my $a = 0, 2, { say $^a + 2; $a + 2 } ... 10; [00:01] rakudo-moar 85320f466: OUTPUT: «Potential difficulties:␤ Useless use of ... in sink context␤ at :1␤ ------> 3y $a = 0, 2, { say $^a + 2; $a + 2 } ...7⏏5 10;␤4␤6␤8␤10␤» [00:02] m: my $a = 0, 2, { say $^a + 2; $a + 2 } ... 10; say 'foo' [00:02] rakudo-moar 85320f466: OUTPUT: «Potential difficulties:␤ Useless use of ... in sink context␤ at :1␤ ------> 3y $a = 0, 2, { say $^a + 2; $a + 2 } ...7⏏5 10; say 'foo'␤4␤6␤8␤10␤foo␤» [00:02] *** markoong left [00:14] there is a new entry on Red cookbook for custom joins if anyone is interested: https://github.com/FCO/Red/blob/master/docs/tutorials/cookbook.md#source-and-source-id [00:19] *** MilkmanDan joined [00:20] *** hungrydonkey left [00:20] *** hungrydonkey joined [00:20] ¦ problem-solving: vrurg assigned to jnthn Issue Loading of custom setting logic is undefined https://github.com/Raku/problem-solving/issues/213 [00:23] New module released to CPAN! Red (0.1.17) by 03FCO [00:27] *** oddp_ left [01:04] *** RaycatWhoDat joined [01:08] *** RaycatWhoDat left [01:09] *** RaycatWhoDat joined [01:12] *** Altai-man_ joined [01:13] *** RaycatWhoDat left [01:14] *** RaycatWhoDat joined [01:14] *** molaf left [01:15] *** sena_kun left [01:17] *** RaycatWhoDat left [01:23] *** RaycatWhoDat joined [01:26] *** molaf joined [01:28] *** RaycatWhoDat left [01:31] *** RaycatWhoDat joined [01:37] *** RaycatWhoDat left [01:44] *** RaycatWhoDat joined [01:48] *** RaycatWhoDat left [01:53] *** RaycatWhoDat joined [01:58] *** RaycatWhoDat left [01:59] *** RaycatWhoDat joined [02:03] *** RaycatWhoDat left [02:03] *** RaycatWhoDat joined [02:06] *** Manifest0 left [02:06] *** Manifest0 joined [02:06] *** dataangel left [02:08] *** RaycatWhoDat left [02:12] *** RaycatWhoDat joined [02:16] *** RaycatWhoDat left [02:16] *** RaycatWhoDat joined [02:21] *** ensamvarg3 joined [02:21] *** RaycatWhoDat left [02:24] *** RaycatWhoDat joined [02:29] *** RaycatWhoDat left [02:35] *** RaycatWhoDat joined [02:42] *** RaycatWhoDat left [02:47] *** RaycatWhoDat joined [02:51] *** RaycatWhoDat left [02:51] *** RaycatWhoDat joined [02:54] *** RaycatWhoDat left [02:55] *** RaycatWhoDat joined [02:59] *** RaycatWhoDat left [02:59] *** RaycatWhoDat joined [03:04] *** RaycatWhoDat left [03:04] *** RaycatWhoDat joined [03:09] *** RaycatWhoDat left [03:11] *** RaycatWhoDat joined [03:12] *** sena_kun joined [03:14] *** Altai-man_ left [03:16] *** RaycatWhoDat left [03:16] *** RaycatWhoDat joined [03:21] ooooh [03:21] I just realized that augment is not lexically scoped [03:21] *** RaycatWhoDat left [03:21] *** RaycatWhoDat joined [03:21] lizmat jnthn: is that by design? [03:26] *** RaycatWhoDat left [03:33] *** RaycatWhoDat joined [03:36] *** RaycatWhoDat left [03:36] *** RaycatWhoDat joined [03:37] New module released to CPAN! Template::Mustache (1.2.0) by 03SOFTMOTH [03:42] *** RaycatWhoDat left [03:43] *** RaycatWhoDat joined [03:50] *** RaycatWhoDat left [03:51] *** RaycatWhoDat joined [03:55] *** RaycatWhoDat left [03:55] *** RaycatWhoDat joined [03:59] *** RaycatWhoDat left [03:59] *** RaycatWhoDat joined [04:04] *** RaycatWhoDat left [04:06] *** RaycatWhoDat joined [04:10] *** RaycatWhoDat left [04:11] *** RaycatWhoDat joined [04:13] *** hungryd83 joined [04:14] *** RaycatWhoDat left [04:15] *** RaycatWhoDat joined [04:15] *** hungrydonkey left [04:20] *** RaycatWhoDat left [04:23] *** RaycatWhoDat joined [04:28] *** RaycatWhoDat left [04:32] *** RaycatWhoDat joined [04:36] *** RaycatWhoDat left [04:38] *** OpenZen left [04:38] *** RaycatWhoDat joined [04:41] *** RaycatWhoDat left [04:42] *** RaycatWhoDat joined [04:42] *** ensamvarg3 left [04:44] *** RaycatWhoDat left [04:45] *** kensanata joined [04:47] *** andrzejku joined [04:48] *** xinming_ left [04:50] *** xinming_ joined [04:52] *** RaycatWhoDat joined [04:56] *** RaycatWhoDat left [04:57] *** RaycatWhoDat joined [05:04] *** RaycatWhoDat left [05:05] *** RaycatWhoDat joined [05:11] *** andrzejku left [05:11] *** RaycatWhoDat left [05:11] *** RaycatWhoDat joined [05:12] *** Altai-man_ joined [05:14] *** sena_kun left [05:14] *** RaycatWhoDat left [05:14] *** RaycatWhoDat joined [05:19] *** RaycatWhoDat left [05:19] *** andrzejku joined [05:22] *** wamba joined [05:25] *** RaycatWhoDat joined [05:29] *** RaycatWhoDat left [05:31] *** RaycatWhoDat joined [05:36] *** RaycatWhoDat left [05:41] *** kktt joined [05:42] *** RaycatWhoDat joined [05:46] *** RaycatWhoDat left [05:47] *** RaycatWhoDat joined [05:47] *** antoniogamiz joined [05:48] *** antoniogamiz left [05:52] *** RaycatWhoDat left [05:54] *** ufobat joined [05:57] *** RaycatWhoDat joined [06:02] *** RaycatWhoDat left [06:06] *** RaycatWhoDat joined [06:07] it's funny, I often wander away from my perl roots and raku infatuation, but I always seem to come back when I realize just how enjoyable DWIM is. sure some of the things I look at handle specific things better, but nothing has ever come close to being as simple, easy, and fun for general purpose stuff as perl/raku. [06:11] *** RaycatWhoDat left [06:21] *** RaycatWhoDat joined [06:22] *** ufobat left [06:23] *** ufobat joined [06:24] *** RaycatWhoDat left [06:25] *** RaycatWhoDat joined [06:28] *** RaycatWhoDat left [06:29] *** RaycatWhoDat joined [06:34] *** RaycatWhoDat left [06:36] *** RaycatWhoDat joined [06:42] *** RaycatWhoDat left [06:43] *** RaycatWhoDat joined [06:48] *** RaycatWhoDat left [06:48] *** RaycatWhoDat joined [06:53] I am honestly super happy there's already some perl stuff I can look at/use via inline::perl magic that brings prolog goodness to raku (: [06:54] *** RaycatWhoDat left [06:55] *** RaycatWhoDat joined [06:55] *** wamba left [07:00] *** RaycatWhoDat left [07:06] *** RaycatWhoDat joined [07:10] *** [Sno] left [07:10] *** RaycatWhoDat left [07:12] *** sena_kun joined [07:14] *** Altai-man_ left [07:23] *** RaycatWhoDat joined [07:27] *** RaycatWhoDat left [07:27] *** RaycatWhoDat joined [07:31] *** dakkar joined [07:31] *** RaycatWhoDat left [07:32] *** RaycatWhoDat joined [07:40] *** RaycatWhoDat left [07:41] *** [Sno] joined [07:44] *** Black_Ribbon left [07:44] *** andrzejku left [07:51] *** Petr37 left [07:56] *** RaycatWhoDat joined [08:03] *** dolmen joined [08:03] *** RaycatWhoDat left [08:05] *** ufobat left [08:08] *** RaycatWhoDat joined [08:11] *** rbt left [08:11] *** rbt joined [08:13] *** RaycatWhoDat left [08:19] *** pecastro joined [08:19] *** RaycatWhoDat joined [08:21] *** Sgeo left [08:25] *** Noisytoot left [08:26] *** RaycatWhoDat left [08:32] *** RaycatWhoDat joined [08:33] *** oddp_ joined [08:36] *** RaycatWhoDat left [08:37] *** sena_kun left [08:41] *** kktt left [08:41] *** RaycatWhoDat joined [08:44] *** sena_kun joined [08:46] *** RaycatWhoDat left [08:54] *** RaycatWhoDat joined [08:58] *** RaycatWhoDat left [08:58] *** RaycatWhoDat joined [08:58] *** rindolf joined [09:03] *** RaycatWhoDat left [09:06] *** RaycatWhoDat joined [09:10] *** RaycatWhoDat left [09:12] *** Altai-man_ joined [09:14] *** hungryd83 left [09:14] *** sena_kun left [09:15] *** RaycatWhoDat joined [09:19] *** hungrydonkey joined [09:19] *** RaycatWhoDat left [09:23] *** sauvin_ joined [09:25] *** bocaneri left [09:26] *** sauvin_ is now known as Sauvin [09:32] *** RaycatWhoDat joined [09:37] *** RaycatWhoDat left [09:43] *** RaycatWhoDat joined [09:47] *** markoong joined [09:48] *** RaycatWhoDat left [09:52] *** markoong left [09:52] *** markoong joined [09:52] *** cpan-raku left [09:53] *** cpan-raku joined [09:53] *** cpan-raku left [09:53] *** cpan-raku joined [09:55] *** RaycatWhoDat joined [10:00] *** RaycatWhoDat left [10:12] *** RaycatWhoDat joined [10:17] *** RaycatWhoDat left [10:20] *** RaycatWhoDat joined [10:25] *** RaycatWhoDat left [10:30] *** RaycatWhoDat joined [10:35] *** RaycatWhoDat left [10:37] *** RaycatWhoDat joined [10:41] *** xinming_ left [10:41] *** xinming_ joined [10:42] *** [Sno] left [10:42] *** RaycatWhoDat left [10:44] *** wamba joined [10:45] *** RaycatWhoDat joined [10:52] *** RaycatWhoDat left [10:56] *** RaycatWhoDat joined [10:57] *** sena_kun joined [10:58] *** sena_kun left [11:00] *** RaycatWhoDat left [11:12] *** sena_kun joined [11:13] *** sno joined [11:14] *** Altai-man_ left [11:29] *** sena_kun1 joined [11:29] *** sena_kun1 left [11:30] *** xelxebar left [11:30] *** tejr left [11:31] *** tejr joined [11:33] *** xelxebar joined [11:34] *** kktt007 joined [11:43] *** sena_kun1 joined [11:43] *** sena_kun1 left [11:52] *** xinming_ left [11:55] *** xinming_ joined [12:06] *** rbt left [12:07] *** rbt joined [12:12] *** molaf left [12:23] m: say Date.today.later(foo => 3) [12:23] rakudo-moar 85320f466: OUTPUT: «2023-07-16␤» [12:28] That looks like a bug :X [12:31] m: say Date.today.later(baz => 3) [12:31] rakudo-moar 85320f466: OUTPUT: «2023-07-16␤» [12:31] Seems like the year is updating without checking actual named. [12:31] Who wants to write a patch? :) [12:31] sourceable6, Date.today.later(foo => 3) [12:31] sena_kun, https://github.com/rakudo/rakudo/blob/85320f4/src/core.c/Date.pm6#L234 [12:33] m: my $t = Date.today; for "/usr/share/dict/words".IO.lines -> $w { if $t.later(|(Pair.new($w, 5))) !eqv $t { say "$w works!" } } [12:33] rakudo-moar 85320f466: OUTPUT: «Failed to open file /usr/share/dict/words: No such file or directory␤ in block at line 1␤␤» [12:33] c: HEAD my $t = Date.today; for "/usr/share/dict/words".IO.lines -> $w { if $t.later(|(Pair.new($w, 5))) !eqv $t { say "$w works!" } } [12:33] https://github.com/rakudo/rakudo/blob/85320f4/src/core.c/Date.pm6#L277 <- it happens here [12:44] c: HEAD say "hi" [12:44] timotimo, ¦HEAD(85320f4): «hi␤» [12:45] c: HEAD my $t = Date.today; hyper for "/usr/share/dict/words".IO.lines.hyper(:512batch) -> $w { if $t.later(|(Pair.new($w, 5))) !eqv $t { say "$w works!" } } [12:46] oh, huh. [12:46] m: my $t = Date.today; say $t eqv $t; say $t eqv $t.later(:0day) [12:46] rakudo-moar 85320f466: OUTPUT: «True␤True␤» [12:47] m: my $t = Date.today; say $t eqv $t; say $t eqv $t.later(|Pair.new("day", 0)) [12:47] rakudo-moar 85320f466: OUTPUT: «True␤True␤» [12:47] m: my $t = Date.today; say $t eqv $t; say $t eqv $t.later(|Pair.new("day", 1)) [12:47] rakudo-moar 85320f466: OUTPUT: «True␤False␤» [12:47] m: my $t = Date.today; say $t !eqv $t; say $t !eqv $t.later(|Pair.new("day", 1)) [12:47] rakudo-moar 85320f466: OUTPUT: «False␤True␤» [12:47] m: my $t = Date.today; say $t !eqv $t; say $t !eqv $t.later(|Pair.new("blorple", 1)) [12:47] rakudo-moar 85320f466: OUTPUT: «False␤True␤» [12:48] m: my $t = Date.today; say $t !eqv $t; say $t eqv $t.later(|Pair.new("blorple", 1)); say $t !eqv $t.later(|Pair.new("blorple", 1)); [12:48] rakudo-moar 85320f466: OUTPUT: «False␤False␤True␤» [12:48] do i need caffeine or something? [12:50] m: my $t = Date.today; say $t; say $t.later(|Pair.new("blorep", 1)) [12:50] rakudo-moar 85320f466: OUTPUT: «2020-07-16␤2021-07-16␤» [12:50] m: my $t = Date.today; say $t; say (my $other = $t.later(|Pair.new("blorep", 1))); say $t eqv $other [12:50] rakudo-moar 85320f466: OUTPUT: «2020-07-16␤2021-07-16␤False␤» [12:50] so that's what, Date isn't value-type-y? [12:50] m: my $t = Date.today; say $t; say (my $other = $t.later(|Pair.new("blorep", 1))); say $t.WHICH, " ", $other.WHICH [12:50] rakudo-moar 85320f466: OUTPUT: «2020-07-16␤2021-07-16␤Date|59046 Date|59411␤» [12:51] is it the formatter that you can change? [12:52] So I'm trying to convert the variables at the top of my script to constants, but am having an issue with it. https://gist.github.com/rypervenche/3c338a210745a8aabf595875a2358c72 [12:54] rypervenche, use `X~` instead of `X=~` [12:54] oops, `X~=` [12:54] Oh... derp. [12:54] Thanks so much :D [12:54] Because it is assigning and it tries to assign stuff to @backup-paths with cross operator, and re-assign is prohibited. [12:54] yw [12:55] That's what I get for trying to do this stuff late a night. :P [12:55] *** aluaces left [13:12] *** Altai-man_ joined [13:14] *** sena_kun left [13:18] timotimo, https://gist.github.com/74e72381e3f346df99793f3c0c11f7a8 [13:19] c: HEAD my $t = Date.today; hyper for "/usr/share/dict/words".IO.lines.hyper(:512batch) -> $w { if $t.later(|(Pair.new($w, 5))) !eq $t { say "$w works!" } } [13:22] *** wamba left [13:23] should have stringified $t ahead of time once there [13:28] *** aluaces joined [13:29] *** aluaces is now known as alberto [13:30] *** alberto is now known as Guest44329 [13:30] *** dolmen left [13:35] *** KnightLautrec[m] joined [13:42] timotimo, https://gist.github.com/3a2abac160868cbf86a3885ec056e750 [13:43] huh. why? [13:44] c: HEAD my $t = Date.today; hyper for "/usr/share/dict/words".IO.lines.head(1024) -> $w { say $t.later(|(Pair.new($w, 5))).Str, " - ", $t.Str; } [13:44] timotimo, https://gist.github.com/4bd27d469941843a4a37fc9a7dace17b [13:44] oh ok now that i look more closely i *finally* get what the bug was [13:58] timotimo, https://gist.github.com/58838e03c13222220e3fa9673d6bb29e [14:17] *** ensamvarg3 joined [14:40] *** AloisJanicek joined [14:49] *** Noisytoot joined [14:54] *** dolmen joined [14:55] *** JJMerelo joined [14:55] *** rbt left [14:55] *** cpan-raku left [14:55] *** rindolf left [14:55] *** dakkar left [14:55] *** fling left [14:55] *** cpage left [14:55] *** mniip left [14:55] *** raydiak left [14:55] *** satori__ left [14:55] *** Geth_ left [14:55] *** maggotbrain777 left [14:55] *** nebuchadnezzar left [14:55] *** timlegge left [14:55] *** [ptc] left [14:55] *** Bucciarati left [14:55] *** KotH left [14:57] *** rbt joined [14:57] *** cpan-raku joined [14:57] *** rindolf joined [14:57] *** dakkar joined [14:57] *** fling joined [14:57] *** cpage joined [14:57] *** mniip joined [14:57] *** raydiak joined [14:57] *** satori__ joined [14:57] *** Geth_ joined [14:57] *** maggotbrain777 joined [14:57] *** nebuchadnezzar joined [14:57] *** timlegge joined [14:57] *** [ptc] joined [14:57] *** Bucciarati joined [14:57] *** KotH joined [14:57] *** cpan-raku left [14:59] *** AloisJanicek left [15:05] *** cpan-raku joined [15:05] *** cpan-raku left [15:05] *** cpan-raku joined [15:11] *** Sgeo joined [15:13] *** sena_kun joined [15:14] *** Altai-man_ left [15:21] *** hungrydonkey left [15:22] *** hungrydonkey joined [15:29] *** skids joined [15:33] *** hungrydonkey left [15:34] *** hungrydonkey joined [15:48] *** OpenZen joined [15:50] ¦ doc/master: 6 commits pushed by (JJ Merelo)++ [15:50] ¦ doc/master: 535d960072 | Add upstream role, even if it's not documented. [15:50] ¦ doc/master: 4766f1c0d3 | Adjust definition [15:50] ¦ doc/master: 42e99d7170 | More definition adaptation. [15:50] ¦ doc/master: a71aa3eaba | Minor fixes [15:50] ¦ doc/master: 60c98ec421 | Adds method Seq to Supply, refs #2632 [15:50] ¦ doc/master: f7b7a6734f | Revision of .zip and .zip-latest refs #2632 [15:50] ¦ doc/master: review: https://github.com/Raku/doc/compare/9cac6c359b6b...f7b7a6734f12 [15:55] How do I `use` a module defined in the same file? I would've thought I could write a CLI like this: [15:55] le Foo { sub foo() is export { say "FOO" } } [15:55] use Foo; [15:55] sub MAIN() { foo } [15:56] codesections you don't need to use, it's already in the namespace [15:56] s/le/ module/ [15:57] m: module Foo { sub foo() is export { say "FOO" } }; say foo [15:57] rakudo-moar 85320f466: OUTPUT: «5===SORRY!5=== Error while compiling ␤Undeclared routine:␤ foo used at line 1␤␤» [15:57] but, keeping that code and cutting the `use Foo;` line gets me an "Undeclared routine foo` [15:57] m: module Foo { sub foo() is export { say "FOO" } }; say Foo::foo [15:57] rakudo-moar 85320f466: OUTPUT: «Could not find symbol '&foo' in 'Foo'␤ in block at line 1␤␤» [15:57] yeah, like that :) [15:57] Hum [15:57] *** wamba joined [15:57] m: module Foo { sub foo() is export { say "FOO" } }; need Foo; say Foo::foo [15:57] rakudo-moar 85320f466: OUTPUT: «5===SORRY!5=== Error while compiling ␤Could not find Foo in:␤ inst#/home/camelia/.raku␤ inst#/home/camelia/rakudo-m-inst-1/share/perl6/site␤ inst#/home/camelia/rakudo-m-inst-1/share/perl6/vendor␤ inst#/home/camelia/rakud…» [15:58] m: package Foo { sub foo() is export { say "FOO" } }; say Foo::foo [15:58] rakudo-moar 85320f466: OUTPUT: «Could not find symbol '&foo' in 'Foo'␤ in block at line 1␤␤» [15:58] m: package Foo { sub foo() is export { say "FOO" } }; say foo [15:58] rakudo-moar 85320f466: OUTPUT: «5===SORRY!5=== Error while compiling ␤Undeclared routine:␤ foo used at line 1␤␤» [15:58] My thoughts exactly :) At least I know I'm not crazy – those are the same sort of things I tried [15:59] m: package Foo { sub foo() is export { say "FOO" } }; require Foo; say foo [15:59] rakudo-moar 85320f466: OUTPUT: «5===SORRY!5=== Error while compiling ␤Undeclared routine:␤ foo used at line 1␤␤» [15:59] I also tried `use lib '.';` (which is how I'd do it from a different file in the same development directory [15:59] ) [16:00] m: our package Foo { sub foo() is export { say "FOO" } }; say foo [16:00] rakudo-moar 85320f466: OUTPUT: «5===SORRY!5=== Error while compiling ␤Undeclared routine:␤ foo used at line 1␤␤» [16:00] m: our module Foo { sub foo() is export { say "FOO" } }; say foo [16:00] rakudo-moar 85320f466: OUTPUT: «5===SORRY!5=== Error while compiling ␤Undeclared routine:␤ foo used at line 1␤␤» [16:01] m: our class Foo { sub foo() is export { say "FOO" } }; say foo [16:01] rakudo-moar 85320f466: OUTPUT: «5===SORRY!5=== Error while compiling ␤Undeclared routine:␤ foo used at line 1␤␤» [16:01] m: our class Foo { sub foo() is export { say "FOO" } }; say Foo::foo [16:01] rakudo-moar 85320f466: OUTPUT: «Could not find symbol '&foo' in 'Foo'␤ in block at line 1␤␤» [16:01] <[Coke]> OMG [16:01] <[Coke]> :) [16:01] m: our module Foo is export { sub foo() is export { say "FOO" } }; foo [16:01] rakudo-moar 85320f466: OUTPUT: «5===SORRY!5=== Error while compiling ␤Undeclared routine:␤ foo used at line 1␤␤» [16:02] *** [Coke] left [16:02] m: sub Foo::foo() is export { say "FOO" } }; Foo::foo [16:02] rakudo-moar 85320f466: OUTPUT: «5===SORRY!5=== Error while compiling ␤Unexpected closing bracket␤at :1␤------> 3sub Foo::foo() is export { say "FOO" } 7⏏5}; Foo::foo␤» [16:02] m: sub Foo::foo() { say "FOO" }; Foo::foo [16:02] rakudo-moar 85320f466: OUTPUT: «Could not find symbol '&foo' in 'Foo'␤ in block at line 1␤␤» [16:03] *** [Coke] joined [16:03] m: sub Foo::foo() { say "FOO" }; Foo:: [16:03] rakudo-moar 85320f466: OUTPUT: «5===SORRY!5=== Error while compiling ␤Undeclared name:␤ Foo used at line 1␤␤» [16:03] Well... [16:04] m: sub Foo::foo() { say "FOO" }; Foo::<&foo> [16:04] rakudo-moar 85320f466: OUTPUT: «5===SORRY!5=== Error while compiling ␤Undeclared name:␤ Foo used at line 1␤␤» [16:05] m: sub Foo::foo() { say "FOO" }; say Foo.^lookup('foo') [16:05] rakudo-moar 85320f466: OUTPUT: «5===SORRY!5=== Error while compiling ␤Undeclared name:␤ Foo used at line 1␤␤» [16:05] Thanks for the attempt :) (It's also possible that the correct syntax won't work with camelia, though I'm not sure) [16:06] It's not a big deal to split the script into two files; I just feel like I must be missing something easy [16:06] m: our module Foo is export { sub foo() is export { say "FOO" } }; say OUR::("Foo") [16:06] rakudo-moar 85320f466: OUTPUT: «(Foo)␤» [16:06] m: our module Foo is export { sub foo() is export { say "FOO" } }; say OUR::("Foo").keys [16:06] rakudo-moar 85320f466: OUTPUT: «()␤» [16:07] *** sftp left [16:07] m: our module Foo is export { sub foo() is export { say "FOO" } }; import Foo; foo; [16:07] rakudo-moar 85320f466: OUTPUT: «FOO␤» [16:07] I mean, really [16:07] just import [16:08] *** sftp joined [16:08] Probably not the best documented thing https://docs.raku.org/language/module-packages#index-entry-import codesections [16:08] <[Coke]> codesections: splitting the package into a separate file also allows for precomp. [16:09] :JJMerelo Thanks! [16:09] Also this issue https://github.com/Raku/doc/issues/2364 [16:09] Yeah, true. Like I said, this was just for a simple CLI. Eventually, it'll get big enough to split [16:09] *** rbt left [16:10] *** rbt joined [16:10] m: sub Foo::foo() { say "FOO" }; import Foo; foo; [16:10] rakudo-moar 85320f466: OUTPUT: «5===SORRY!5=== Error while compiling ␤Could not find module Foo to import symbols from␤at :1␤------> 3sub Foo::foo() { say "FOO" }; import Foo7⏏5; foo;␤» [16:11] m: our sub Foo::foo() { say "FOO" }; foo; [16:11] rakudo-moar 85320f466: OUTPUT: «5===SORRY!5=== Error while compiling ␤Undeclared routine:␤ foo used at line 1␤␤» [16:11] m: our sub Foo::foo() { say "FOO" }; Foo::foo; [16:11] rakudo-moar 85320f466: OUTPUT: «Could not find symbol '&foo' in 'Foo'␤ in block at line 1␤␤» [16:11] m: our sub Foo::foo() { say "FOO" }; import Foo; Foo::foo; [16:11] rakudo-moar 85320f466: OUTPUT: «5===SORRY!5=== Error while compiling ␤Could not find module Foo to import symbols from␤at :1␤------> 3ub Foo::foo() { say "FOO" }; import Foo7⏏5; Foo::foo;␤» [16:11] No, that won't work... [16:12] m: module Foo { sub foo is export { say "FOO" } }; import Foo; foo; [16:12] rakudo-moar 85320f466: OUTPUT: «FOO␤» [16:14] ¦ doc: 9ff3b27ab9 | (JJ Merelo)++ | doc/Type/Supply.pod6 [16:14] ¦ doc: Skip test for success of compilation, closes #3515 [16:14] ¦ doc: review: https://github.com/Raku/doc/commit/9ff3b27ab9 [16:14] Link: https://docs.raku.org/type/Supply [16:14] DOC#3515 [closed]: https://github.com/Raku/doc/issues/3515 [docs] xt/examples-compilation.t doc/Type/Supply.pod6 fails [16:26] *** Petr37 joined [16:28] your favourite OS (for daily use or development)? [16:29] some variant of Linux [16:31] *** Guest44329 is now known as aluaces [16:32] tadzik, debian like? [16:33] *** JJMerelo left [16:34] i have a fedora [16:34] at some point i want to try silverblue [16:34] Petr37: currently, yes, but I don't much care tbh :) [16:34] I have Ubuntu on a laptop, Pop_Os on the desktop, debian-something on the server [16:35] well, fedora has "First" as part of their motto, so you can be sure to get the latest and best linux stuff [16:36] i use ubuntu at work at fedora at home and the diffs are tiny, to me. [16:37] *** dakkar left [16:38] *** aluaces left [16:40] I use Gentoo for my laptop, work machine, and servers. [16:44] thanks 😊 [16:45] now i use win 10, but thinking about nix like [16:45] Why? [16:45] what's about bsd? [16:46] Anyone here on a Windows machine? [16:46] oddp_, more flexible,less system requirements [16:46] * guifa2 . o O ( since we're talking about OSs and I'm currently writing a UserTimezone module haha) [16:47] *** xinming_ left [16:47] guifa2, i use Windows 10 now [16:47] *** xinming_ joined [16:48] Petr37: do you happen to know a way to grab the current timezone via the (non-Power) shell? O:-) [16:49] <[Coke]> tzutil /g ? [16:49] <[Coke]> shows "Eastern Standard Time" here. [16:49] *** patrickb joined [16:50] <[Coke]> you can parse the output of tzutil /l to see the definition [16:50] ah nice. Any option/flag that could would output America/New_York for you? [16:50] guifa2, @echo off setlocal for /f "tokens=*" %%f in ('tzutil /g') do ( echo %%f ) endlocal [16:51] <[Coke]> not that I see [16:51] * guifa2 is away from home so no Windows machine to boot onto to test [16:51] <[Coke]> there's /g (get) /s (set) and /l (list) - don't see any other options [16:51] guifa2, from stackoverflow [16:52] * guifa2 sighs [16:52] Why does Windows always have to do things so differently lol [16:54] oh [16:54] sweet [16:54] CLDR actually already recognized this and through their hands up and have a literal entire separate file for Windows timezones mapping them to the standard ones lololol [16:57] guifa2, https://superuser.com/questions/1460526/get-timezone-from-windows-command-line [16:58] maybe anyone know use bsd? [17:01] i use ubuntu(about 3 ears),but it crashes sometimes [17:11] *** elgalloitaliano joined [17:12] where i can find info about Rakudo.js? [17:12] *** Altai-man_ joined [17:14] *** xinming_ left [17:15] *** xinming_ joined [17:15] *** sena_kun left [17:16] *** ufobat joined [17:17] "maybe anyone know use bsd?" I've used freebsd on my laptop for a while. It's a bit more involved to maintain than the usual linux distros (lot of manual reading). Switched back because the graphics driver story wasn't pretty. Was a solid workstation experience otherwise. [17:20] *** aluaces joined [17:22] <[Coke]> https://www.npmjs.com/package/rakudo [17:26] *** sena_kun joined [17:27] [Coke], thanks )) [17:29] oddp_, ok) very useful info! [17:32] *** kensanata left [17:36] *** Petr37 left [17:38] *** orinthe left [17:39] *** orinthe joined [17:55] *** patrickb left [17:56] *** rindolf left [18:03] *** hungrydonkey left [18:23] *** lainon joined [18:30] *** __jrjsmrtn__ left [18:30] *** __jrjsmrtn__ joined [18:36] *** Petr37_ joined [18:39] *** Sauvin left [18:51] *** bocaneri joined [18:51] *** kensanata joined [18:52] *** patrickb joined [18:56] *** ensamvarg3 left [18:58] *** sena_kun left [18:59] *** AlexDaniel joined [18:59] *** wamba left [18:59] *** AlexDaniel left [18:59] *** AlexDaniel joined [18:59] *** ufobat left [19:00] *** rindolf joined [19:02] *** Petr37_ left [19:12] *** molaf joined [19:12] *** sena_kun joined [19:14] *** Altai-man_ left [19:17] <[Coke]> timotimo: question on rakudo.org - when you got the keys to the kingdom, is there a document somewhere that shows how things are setup? [19:17] <[Coke]> wondering if you can answer https://github.com/perl6/rakudo.org/issues/41 [19:21] *** xinming_ left [19:21] *** xinming_ joined [19:27] that's not a small question i could just quickly answer :D [19:27] <[Coke]> well, if there was already a document, there would be. :) [19:27] *** mowcat joined [19:27] <[Coke]> I guess for now I can just remove the reference. [19:37] *** sivoais_ joined [19:37] *** sivoais left [19:37] *** japhb left [19:37] *** japhb joined [19:44] *** molaf left [19:52] *** _jrjsmrtn joined [19:53] * guifa2 repeats his question about Windows needing to be special and using numerical ids for geographical identities that are just plain whacky [19:53] Oh wow, I just learned about Uzu. It's so much like Hugo, but written in Raku :D And uses Template6 and Mustache. [19:53] *** __jrjsmrtn__ left [19:57] *** rindolf left [19:58] *** xinming_ left [19:58] *** xinming_ joined [20:12] *** rbt left [20:13] *** rbt joined [20:33] *** Petr37_ joined [20:41] *** xinming_ left [20:41] *** xinming_ joined [21:01] *** molaf joined [21:12] *** Altai-man_ joined [21:14] *** sena_kun left [21:34] * [Coke] fixes https://github.com/perl6/rakudo.org/issues/36 [21:37] [Coke], thank you! [21:39] *** lainon left [21:41] *** markoong left [21:42] *** markoong joined [21:53] <[Coke]> sure. Doing all the easy stuff now that the site regen is happening [21:53] <[Coke]> .tell lizmat I added a link to #rakulang on twitter on the rakudo.org footer [21:53] [Coke], I'll pass your message to lizmat [21:54] [Coke]++ [21:54] <[Coke]> oh, you're still here. :) [21:54] <[Coke]> ~~ [21:54] <[Coke]> give it 5 minutes to show up on the live site. :) [21:54] yeah, not hacking anymore, just trying to get Rakudo to build :-( [21:55] I made the mistake of nuking the "gen" dir [21:55] apparently, the gen dir is not generated [21:56] <[Coke]> there it is. [21:56] <[Coke]> oops [21:57] * lizmat haz a rakudo again [22:00] *** xinming_ left [22:02] *** xinming_ joined [22:05] *** skids left [22:29] *** patrickb left [22:31] i'm on win10 for the moment to game with the gf better, but i vastly prefer a debian-based (usually ubuntu tbh) linux for my daily driver. [22:33] *** kensanata left [22:34] *** leont left [22:34] *** leont joined [22:35] *** Black_Ribbon joined [22:41] *** Petr37_ left [22:42] *** usermac joined [22:43] Hello all. New to Raku. How do I type "「 」" on macOS? [22:43] and what are they???? [22:43] *** Petr37_ joined [22:44] usermac: I don't use a Mac, but can you try alt+shift+8 (and again with 9)? [22:45] Thank you but no-go on mac [22:45] Oh, but that's the double quote version. Hmm. Doesn't seem possible without using some sort of layout that allows you to do it. [22:46] usermac: They're special quotation. But you don't have to use them, "foo" and 'bar' is just as fine. [22:46] What are you trying to do? [22:46] So they're not part of Raku? I am learning and the examples show it all the time in code [22:47] *** xinming_ left [22:47] # OUTPUT: 「I ♥ Raku」 love => 「♥」 lang => 「Raku」 [22:47] above is an example from roku.org home screen [22:49] *** xinming_ joined [22:49] No idea how to type them on Mac, but yes, they are a Raku quoting constructing, and used in the regex match output. They were chosen because they're very unlikely to be encountered otherwise, and so allow the output to be displayed without escaping. [22:49] Ah, thank you. [22:52] *** kktt007 left [22:55] usermac: as a newcomer myself, I found https://raku.guide/ quite helpful. It's a nice overview. And more in-depth stuff is in the offical docs. [22:58] *** melezhik joined [22:59] Hi! Here is the draft of RakuOps, issue number 2 - https://sparrowdo.wordpress.com/2020/07/16/rakuops-issue-2/ [22:59] please share you comments, any typos found (there should be some) before it gets public, thank you! [23:03] *** xi left [23:04] *** dolmen left [23:04] *** xi joined [23:04] *** usermac left [23:05] *** sno left [23:11] *** rbt left [23:11] *** rbt joined [23:12] *** sena_kun joined [23:15] *** Altai-man_ left [23:15] jnthn: did you happen to see my Q about augment? [23:16] *** mowcat left [23:16] *** orinthe left [23:16] *** fling left [23:16] *** cpage left [23:16] *** mniip left [23:16] *** raydiak left [23:16] *** satori__ left [23:16] *** Geth_ left [23:16] *** maggotbrain777 left [23:16] *** nebuchadnezzar left [23:16] *** timlegge left [23:16] *** [ptc] left [23:16] *** Bucciarati left [23:16] *** KotH left [23:16] *** sno joined [23:16] *** hungrydonkey joined [23:18] *** Petr37_ left [23:19] *** pecastro left [23:23] *** mowcat joined [23:23] *** orinthe joined [23:23] *** fling joined [23:23] *** cpage joined [23:23] *** mniip joined [23:23] *** raydiak joined [23:23] *** satori__ joined [23:23] *** Geth_ joined [23:23] *** maggotbrain777 joined [23:23] *** nebuchadnezzar joined [23:23] *** timlegge joined [23:23] *** [ptc] joined [23:23] *** Bucciarati joined [23:23] *** KotH joined [23:40] *** sena_kun left [23:47] guifa2: No, also heading to sleep now, but feel free to point me at it tomorrow :) [23:47] alright will do :-) [23:47] 'night o/ [23:47] *** melezhik left [23:57] *** markoong left