[00:06] ¦ doc: d8c38a702a | Coke++ | xt/search-categories.t [00:06] ¦ doc: Use category list from documentation [00:06] ¦ doc: [00:06] ¦ doc: * Avoid having two copies of the same data [00:06] ¦ doc: * minor whitespace fix in test description [00:06] ¦ doc: review: https://github.com/Raku/doc/commit/d8c38a702a [00:06] ¦ doc: b79374095d | Coke++ | doc/Language/operators.pod6 [00:06] ¦ doc: Use category from approved list [00:06] Link: https://docs.raku.org/language/operators [00:06] ¦ doc: review: https://github.com/Raku/doc/commit/b79374095d [00:06] ¦ doc: 8273088eeb | Coke++ | xt/search-categories.t [00:06] ¦ doc: Verify each category is actually used [00:06] ¦ doc: review: https://github.com/Raku/doc/commit/8273088eeb [00:08] *** reportable6 left [00:10] *** reportable6 joined [00:12] ¦ doc: coke assigned to Altai-man Issue "Routines" category is unused https://github.com/Raku/doc/issues/4064 [00:13] ¦ doc: coke assigned to JJ Issue Category case inconsistency https://github.com/Raku/doc/issues/4063 [00:13] ¦ doc: coke assigned to Altai-man Issue Category case inconsistency https://github.com/Raku/doc/issues/4063 [00:15] *** Geth left [00:15] *** Geth joined [00:20] *** Geth left [00:20] *** Geth joined [00:20] *** dwarring left [00:27] *** [Coke]_ joined [00:29] *** [Coke] left [00:30] *** [Coke]_ is now known as [Coke] [00:46] *** euandreh joined [00:52] *** GreaseMonkey left [00:53] *** greaser|q joined [01:53] *** coverable6 left [01:53] *** greppable6 left [01:53] *** sourceable6 left [01:53] *** bloatable6 left [01:53] *** notable6 left [01:53] *** benchable6 left [01:53] *** quotable6 left [01:53] *** committable6 left [01:53] *** shareable6 left [01:53] *** releasable6 left [01:53] *** statisfiable6 left [01:53] *** unicodable6 left [01:53] *** bisectable6 left [01:53] *** tellable6 left [01:53] *** nativecallable6 left [01:53] *** evalable6 left [01:53] *** reportable6 left [01:53] *** linkable6 left [01:54] *** coverable6 left [01:54] *** greppable6 left [01:54] *** sourceable6 left [01:54] *** bloatable6 left [01:54] *** notable6 left [01:54] *** benchable6 left [01:54] *** quotable6 left [01:54] *** committable6 left [01:54] *** shareable6 left [01:54] *** releasable6 left [01:54] *** statisfiable6 left [01:54] *** unicodable6 left [01:54] *** bisectable6 left [01:54] *** tellable6 left [01:54] *** nativecallable6 left [01:54] *** evalable6 left [01:54] *** reportable6 left [01:54] *** linkable6 left [01:54] *** quotable6 joined [01:54] *** evalable6 joined [01:54] *** nativecallable6 joined [01:54] *** linkable6 joined [01:54] *** releasable6 joined [01:54] *** bisectable6 joined [01:54] *** unicodable6 joined [01:54] *** statisfiable6 joined [01:54] *** committable6 joined [01:55] *** notable6 joined [01:55] *** greppable6 joined [01:55] *** bloatable6 joined [01:56] *** tellable6 joined [01:56] *** benchable6 joined [01:56] *** shareable6 joined [01:56] *** reportable6 joined [01:56] *** coverable6 joined [01:56] *** sourceable6 joined [02:48] *** hythm joined [02:48] m: class C is repr('CStruct') { has int $.x; method increment () { $!x += 1 } }; my $obj = C.new(:1x); my @a = $obj; say @a; $obj.increment; say @a [02:48] rakudo-moar 530e17848: OUTPUT: «[C.new(x => 1)]␤[C.new(x => 2)]␤» [02:50] ^ is this correct? I was expecting `x => 1` for both cases, or this is how it's supposed to work for `CStruct` classes? [02:51] CStruct is a pointer to the struct, not the actual struct [02:51] it's more useful in most contexts [02:51] so is there is a way to pass a copy of it? I tried .clone, but its NYI [02:58] if you need any solution that works, I suppose that just creating `clone` method will work [02:58] m: class C is repr('CStruct') { has int $.x; method clone { self.new(:$!x) }; method increment () { $!x += 1 } }; my $obj = C.new(:1x); my @a = $obj.clone; say @a; $obj.increment; say @a [02:58] rakudo-moar 530e17848: OUTPUT: «[C.new(x => 1)]␤[C.new(x => 1)]␤» [03:02] hythm: note you also cannot use c interfaces that expect a by-value struct [03:03] this is a flaw in dyncall [03:09] Thanks everyone.  went with clone method [03:15] *** Guest35 left [03:16] *** coleman left [03:32] *** frost joined [04:30] *** hythm left [04:48] *** xinming left [04:50] *** xinming joined [05:08] weekly: https://www.ciavash.name/blog/2022/04/25/flymake-rakudo-another-syntax-checker-for-raku-on-emacs/ [05:08] CIAvash, Noted! (weekly) [05:20] *** zacts joined [05:21] ¦ doc: JJ self-unassigned Category case inconsistency https://github.com/Raku/doc/issues/4063 [05:37] *** jjido joined [05:38] *** jjido joined [05:42] *** Guest20 joined [05:50] hi! I've got some 2d data in a 2d array. but when I use the map function it flattens the result into 1d. are arrays bad for mapping 2d data or am I doing something else wrong? [05:53] *** zacts left [05:53] post some example, because it works like one would expect [05:53] m: say (1, 2; 3, 4).map(*.map(* * 2)) [05:53] rakudo-moar 530e17848: OUTPUT: «((2 4) (6 8))␤» [05:53] m: say (1, 2; 3, 4).deepmap(* * 2) [05:53] rakudo-moar 530e17848: OUTPUT: «((2 4) (6 8))␤» [05:54] m: say [[1, 2], [3, 4]].deepmap(* * 2) [05:54] rakudo-moar 530e17848: OUTPUT: «[[2 4] [6 8]]␤» [05:56] I get these outputs from the repl: [05:56] > my @array[2; 2] = [[1, 2], [3, 4]] [05:56] [[1 2] [05:56]  [3 4]] [05:56] > @array.map(* * 2) [05:56] (2 4 6 8) [05:57] that's a 8 ) rather than a smily [06:00] Ah, that's a shaped array, I don't use them much [06:01] they come with odd limitations [06:01] m: my @array[2; 2] = [[1, 2], [3, 4]]; say @array[1] [06:01] rakudo-moar 530e17848: OUTPUT: «Partially dimensioned views of shaped arrays not yet implemented. Sorry.␤ in block at line 1␤␤» [06:01] m: my @array = [[1, 2], [3, 4]]; say @array[1] [06:01] rakudo-moar 530e17848: OUTPUT: «[3 4]␤» [06:01] should I use the nested lists instead? they look like they work okay [06:06] tbh. I prefer to always use simple arrays instead [06:07] lists are supposed to not be mutable [06:07] *** reportable6 left [06:07] m: my $x = 42; my @l = (1, 2; 3, $x); @l[1][1] = 5; say @l; say $x [06:07] rakudo-moar 530e17848: OUTPUT: «[(1 2) (3 5)]␤5␤» [06:07] m: my $x = 42; my @l = (1, 2; 3, $x); @l[1][0] = 5; say @l; say $x [06:07] rakudo-moar 530e17848: OUTPUT: «Cannot modify an immutable List ((3 42))␤ in block at line 1␤␤» [06:07] m: my $x = 42; my @l = [[1, 2], [3, $x]]; @l[1][1] = 5; say @l; say $x [06:07] rakudo-moar 530e17848: OUTPUT: «[[1 2] [3 5]]␤42␤» [06:08] *** reportable6 joined [06:09] this piece of docs may be enormously useful to pick the right structures to use: https://docs.raku.org/language/list [06:09] thank you for the help [06:18] *** lichtkind joined [06:31] *** Guest20 left [06:31] *** mexen joined [06:50] *** jjido left [07:29] *** Sgeo left [07:41] *** linkable6 left [07:44] *** linkable6 joined [07:46] *** linkable6 left [07:47] *** linkable6 joined [07:56] *** jjido joined [08:04] *** dakkar joined [08:41] *** jjido left [08:45] japhb: oops [09:41] *** evalable6 left [09:41] *** linkable6 left [09:41] *** linkable6 joined [09:43] *** evalable6 joined [09:48] ¦ problem-solving/JJ-patch-1: 84e555ee96 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | .github/CODEOWNERS [09:48] ¦ problem-solving/JJ-patch-1: Remove self as owner of that section [09:48] ¦ problem-solving/JJ-patch-1: [09:48] ¦ problem-solving/JJ-patch-1: I can no longer claim responsibility for the documentation repo *de facto*. It's only sensible to remove myself from here too. [09:48] ¦ problem-solving/JJ-patch-1: review: https://github.com/Raku/problem-solving/commit/84e555ee96 [09:48] ¦ problem-solving: JJ++ created pull request #322: Remove self as owner of that section [09:48] ¦ problem-solving: review: https://github.com/Raku/problem-solving/pull/322 [09:52] hi, any idea why qq{{' ' x $n}} does not interpolate? [09:52] is this intended? [09:52] if I use different parens for qq, it does [09:56] *** jjido joined [09:59] your delimiter is {{ [10:03] well you wish that was the problem but it wasn't; the same happens if the brackets aren't next to each other [10:04] > > qq{ByteFeld_ausgeben("{' ' x $n}", } [10:04] > ByteFeld_ausgeben("{' ' x 4}", [10:04] > > qq/ByteFeld_ausgeben("{' ' x $n}", / [10:04] > ByteFeld_ausgeben(" ", [10:07] *** discord-raku-bot left [10:07] *** discord-raku-bot joined [10:11] or better said, the question does arise, the first example was wrong [10:22] *** zacts joined [10:49] *** zacts left [10:52] *** Guest20 joined [11:20] *** londoed_ left [11:20] *** londoed_ joined [11:37] *** Guest20 left [11:42] *** jaguart joined [11:43] ¦ doc/old-docs: 4 commits pushed by (JJ Merelo)++, Coke++ [11:43] ¦ doc/old-docs: 09c6e33b80 | Minor doc changes #3871 [11:43] ¦ doc/old-docs: c84d4645fd | Prints the error to make it a bit more informative #3871 [11:43] ¦ doc/old-docs: 21f811f452 | Adds new rule to exclude some lines [11:43] ¦ doc/old-docs: 8a212102c7 | Remove reference to obsolete file [11:43] ¦ doc/old-docs: review: https://github.com/Raku/doc/compare/09c6e33b8035^...8a212102c70c [11:54] *** londoed_ left [11:54] *** londoed_ joined [12:04] *** abraxxa joined [12:08] *** reportable6 left [12:09] *** abraxxa left [12:10] and yet another Rakudo Weekly News hits the Net: https://rakudoweekly.blog/2022/04/25/2022-16-7-complainrelease/ [12:10] *** abraxxa joined [12:10] *** reportable6 joined [12:37] a bit confused by ``race``... expecting threading [12:38] m: race for { $*THREAD.say } [12:38] rakudo-moar 530e17848: OUTPUT: «Thread #4 (GeneralWorker)␤Thread #4 (GeneralWorker)␤Thread #4 (GeneralWorker)␤» [12:38] m: await( .map({ start { $*THREAD.say }}) ) [12:38] rakudo-moar 530e17848: OUTPUT: «Thread #4 (GeneralWorker)␤Thread #4 (GeneralWorker)␤Thread #4 (GeneralWorker)␤» [12:39] On my linux host, race all has the same thread number (effectively serialised), while awaiting promises does thread [12:58] *** frost left [13:10] *** frost joined [13:17] *** jjido left [13:20] *** Altai-man joined [13:24] *** Guest35 joined [13:32] ¦ doc: Altai-man self-assigned "Foreign" is repeatedly used when other categories should probably fit better https://github.com/Raku/doc/issues/4062 [13:46] m: .race(:batch(1)).map: { $*THREAD.say }; [13:46] rakudo-moar 530e17848: OUTPUT: «Thread #4 (GeneralWorker)␤Thread #4 (GeneralWorker)␤Thread #4 (GeneralWorker)␤» [13:47] jaguart: race-statement doesn't have a small enough batch-size to show what goes on in your example and the host of camelia may not have enough cores to do any threading. [13:48] *** Sgeo joined [13:53] gfldex: thank you - :batch(1) tadah! :) [14:09] *** Altai-man left [14:09] *** Altai-man joined [14:09] *** japhb left [14:13] *** dogbert11 joined [14:15] *** dogbert17 left [14:18] *** DarthGandalf left [14:18] *** frost left [14:22] *** DarthGandalf joined [14:38] *** japhb joined [14:52] *** sivoais left [15:03] *** sivoais joined [15:05] *** coleman joined [15:32] *** lichtkind left [15:35] *** jjido joined [15:37] I like that the .04 release has faster startup than .03 [15:38] ~30 ms off. Not there yet but a good improvement either way [15:45] *** [Coke] left [15:45] strace shows quite some time (approx. 20 ms) is spent reading /proc/stat and /proc/cpuinfo. What are those needed for?! [15:47] Apparently that's a libuv thing [15:47] *** [Coke] joined [16:12] *** synthmeat left [16:12] *** synthmeat joined [16:12] *** synthmeat left [16:15] *** abraxxa left [16:19] *** jjido left [16:21] *** synthmeat joined [16:35] *** dakkar left [16:50] *** mexen left [16:57] *** Gruber left [17:00] *** jaguart left [17:03] *** jjido joined [17:09] *** m_athias left [17:10] *** camelia left [17:10] *** nine left [17:11] *** m_athias joined [17:12] *** nine joined [17:12] *** Sankalp joined [17:16] *** camelia joined [17:16] *** nine left [17:16] *** m_athias_ joined [17:16] *** m_athias left [17:17] *** nine joined [17:17] *** jaguart joined [17:21] *** m_athias_ is now known as m_athias [17:21] *** jjido left [17:23] *** guifa joined [17:25] *** morte_ joined [17:44] *** Altai-man left [17:50] *** lichtkind joined [18:08] *** reportable6 left [18:09] *** reportable6 joined [18:16] *** ajr joined [18:34] *** jjido joined [19:08] <[Coke]> do we have docs on how the current docs site is published? I got the impression it was being done by hand recently. [19:10] *** guifa left [19:15] [Coke], the best bet is maybe migration ASAP [19:17] <[Coke]> That's a possibility but I know there's several outstanding questions. [19:18] yes, that's why fixing them is a must to move forward IMO [19:18] but otherwise you can ask rba for access to the server where the docs host, then you can generate a static set of pages using Documentable and just rsync it, I think [19:30] *** morte_ left [19:35] *** Sankalp left [19:43] *** ajr left [19:54] *** ajr joined [19:54] *** Sankalp joined [20:01] *** ajr left [20:16] *** coleman left [20:21] *** ajr joined [20:38] could someone point me to the state of the art for Java interoperability? importing a Java library and calling a function? [20:38] 2021-05-09T22:02:00Z #raku .tell kybr checkout my 2021 advent post about santa claus and raku: a christmas tree forming a raku script [20:53] *** coleman joined [21:11] *** coleman left [21:12] <[Coke]> kybr: https://stackoverflow.com/questions/27156329/how-do-i-invoke-a-java-method-from-perl6 [21:12] <[Coke]> (yes that's old. not sure if we have something more recent) [21:36] *** greaser|q left [21:36] *** greaser|q joined [21:37] *** greaser|q is now known as GreaseMonkey [21:50] camelia, say 42; [21:50] m: say 42; [21:50] rakudo-moar 530e17848: OUTPUT: «42␤» [21:50] camelia, help [21:50] sena_kun: Usage: <(nqp-moarvm|debug-cat|prof-m|nqp-js|p5-to-p6|nqp-jvm|rakudo-jvm|star-m|rakudo-moar|m|nqp-q|j|star|nqp-m|perl6|r|sm|r-m|rakudo|nqp-mvm|p6|r-j|r-jvm|rm|master|nqp|p56|rj)(?^::\s(?!OUTPUT)) $perl6_program> [21:50] camelia, info [21:50] does camelia have external API or can it have one? [22:03] *** jjido left [22:17] *** coleman joined [22:53] <[Coke]> p5-to-p6: $|=1 [22:53] p5-to-p6 : OUTPUT: «# Do not edit this file - Generated by Perlito5 9.028␤␤{␤ sub JS::inline (*@_);␤ sub Java::inline (*@_);␤ ${'|'} = 0;␤ $warnings::VERSION = 1.42␤}␤class main {␤ ${'|'} = 1␤}␤» [22:54] *** MasterDuke left [23:06] *** jaguart left [23:10] *** melezhik joined [23:10] .tell patrickb I've added support for any git urls, not just GH - http://sparrowhub.io:2222/report/232 [23:10] melezhik, I'll pass your message to patrickb [23:10] for example for source hut and gitlab [23:11] one just need to make checkbox - "not a GitHub URL" when adding git repo [23:12] melezhik: Why not autodetect that? [23:12] (Or at least autodefault) [23:12] because it will take oath2 integration with gitlab/sourcehut [23:13] right now it's only auto detect for GH repos [23:13] melezhik: Right, but GH urls only come in a few fixed formats. You could set the default by just prefix match on the URLs [23:13] because GH is the only oauth supported [23:14] Oh, I see, I think I had missed that detail. [23:14] anyway, right now ANY git repos are supported as long as they publicly accessed via `git clone $url` [23:14] however to enable login one need to have a GH account [23:20] *** melezhik left [23:28] *** coleman left [23:31] *** ajr left [23:33] *** lichtkind left [23:43] *** ajr joined