[00:11] *** mowcat left [00:16] *** pecastro left [00:21] *** aborazmeh joined [00:21] *** aborazmeh left [00:21] *** aborazmeh joined [00:35] *** aborazmeh left [00:53] *** aborazmeh joined [00:53] *** aborazmeh left [00:53] *** aborazmeh joined [01:00] *** Doc_Holliwould left [01:28] *** defaultxr left [01:32] *** defaultxr joined [02:07] *** molaf left [02:14] *** aborazmeh left [02:20] *** molaf joined [02:25] New module released to CPAN! Terminal::ANSI (0.0.1) by 03BDUGGAN [02:26] *** ape666 joined [02:32] *** ape666 left [02:40] *** yuplushi left [02:47] *** cpan-raku left [02:48] *** cpan-raku joined [02:48] *** cpan-raku left [02:48] *** cpan-raku joined [02:56] *** perlbot left [02:56] *** rindolf joined [02:56] *** rindolf left [02:56] *** Doc_Holliwould joined [02:57] *** perlbot joined [03:04] *** yuplushi joined [03:04] *** Manifest0 left [03:06] *** Manifest0 joined [03:48] *** yuplushi left [04:15] New module released to CPAN! Async::Workers (0.2) by 03VRURG [04:16] *** Doc_Holliwould left [04:19] *** yuplushi joined [04:31] New module released to CPAN! Async::Workers (0.2.1) by 03VRURG [04:45] *** yuplushi left [05:31] *** yuplushi joined [05:59] *** frost-lab joined [06:24] *** bocaneri joined [06:42] *** Altai-man joined [06:56] *** parabolize left [07:01] *** wamba joined [07:04] *** Manifest0 left [07:05] *** Manifest0 joined [07:20] *** Black_Ribbon joined [07:26] *** skids joined [07:50] *** Doc_Holliwould joined [08:10] *** sena_kun joined [08:12] *** Altai-man left [08:17] *** sjm_uk joined [08:22] *** natrys joined [08:26] *** wamba left [08:39] Is there any syntax for destructuring a hash based on the left side? Ie. something like my ($a,$b) = %hash; extracting the a and b keys (I know this doesn't work) [08:50] m: my %h = :42a, :80b; my (:$a, :$b) := %h; say $a; say $b [08:50] rakudo-moar 85847d2f1: OUTPUT: «42␤80␤» [08:51] Zero_Dogg: you have to use the binding := operator, then you can destructure just like in signatures [08:51] tobs: aha, I tried that with = not :=. Thanks! [08:55] *** kylese joined [09:02] *** skids left [09:14] *** wamba joined [09:32] *** Doc_Holliwould left [09:48] *** sjm_uk left [09:58] SmokeMachine: is there a roadmap to fix https://github.com/FCO/Red/issues/128 ? :-) [10:29] *** Sgeo left [10:45] *** wamba left [11:07] module A { class B { }; class B::C { } }; B.raku.say; # <-- Sorry to repeat the question. in this example, The namespace B is created globally, Is this a bug or a feature? [11:07] xinming_, rakudo-moar 2fe6420e8: OUTPUT: «A::B␤» [11:08] I thought that when we are in module A { }; everything should be restricted to namespace, A, even the class declarations. [11:11] *** Doc_Holliwould joined [11:12] *** wamba joined [11:23] *** pecastro joined [11:26] *** sftp left [11:26] *** sftp joined [11:36] New module released to CPAN! Terminal::Table (0.0.9) by 03ALOREN [11:36] New module released to CPAN! pack6 (0.3) by 03ALOREN [11:36] New module released to CPAN! Terminal::Table (0.0.8) by 03ALOREN [12:09] *** Altai-man joined [12:12] *** sena_kun left [12:58] *** jmcgnh left [13:01] *** MasterDuke joined [13:03] *** Black_Ribbon left [13:06] *** jmcgnh joined [13:16] *** frost-lab left [13:16] *** sjm_uk joined [13:39] *** Doc_Holliwould left [13:46] *** domidumont joined [13:57] New module released to CPAN! Terminal::ANSI (0.0.2) by 03BDUGGAN [14:00] *** xheimlich joined [14:01] *** Manifest0 left [14:01] is there a function that takes a function (roughly like collatz-step in the paste) and repeatedly iterates it until some condition like collatz-iter like in https://pastebin.com/7FWvCvYj ? [14:02] *** Manifest0 joined [14:02] minus say $n. actually maybe append to a list. [14:03] xheimlich: yes, the sequence operator can do this sort of thing. Just a second [14:05] the irclog web interface is brilliant. how many times I forget or get disconnected from a lower-traffic, freenode channel. [14:07] *** hal99999 joined [14:07] m: sub collatz-step ($n) { $n %% 2 ?? $n/2 !! 3*$n+1 }; my seq = 17, &collatz-step ... * == 1; say seq # 17 is the initial value [14:07] rakudo-moar 85847d2f1: OUTPUT: «5===SORRY!5=== Error while compiling ␤Malformed my (did you mean to declare a sigilless \seq or $seq?)␤at :1␤------> 3n) { $n %% 2 ?? $n/2 !! 3*$n+1 }; my seq7⏏5 = 17, &collatz-step ... * == 1; say seq␤» [14:07] m: sub collatz-step ($n) { $n %% 2 ?? $n/2 !! 3*$n+1 }; my \seq = 17, &collatz-step ... * == 1; say seq # 17 is the initial value [14:07] rakudo-moar 85847d2f1: OUTPUT: «(17 52 26 13 40 20 10 5 16 8 4 2 1)␤» [14:08] the construct `17, &f ... $condition` makes a sequence that starts with 17, f(17), f(f(17)), etc. until $condition is satisfied [14:09] (the arity of &f can be greater than one as well, in which case you need enough initial values) [14:10] what's the backslash in "my \seq"? [14:11] just how you create a non-sigiled variable [14:11] it's a sigil-less variable. The sequence operator returns a Seq object and I want to avoid any containers in the way of me iterating that sequence. [14:13] I guess you could have used @seq as well, but I'm not sure if that would have iterated the Seq during assignment (dangerous if the Collatz conjecture is false) or if it would have become a lazy array. The sigil-less seq is definitely lazy. [14:14] oh. thanks a lot! [14:27] *** ingy left [14:27] *** ingy joined [14:42] I can't think of the idiomatic equivalent of junctions in any other language. [14:43] New module released to CPAN! Algorithm::LBFGS (0.0.6) by 03TITSUKI [14:45] I've got professional experience in Matlab then Python. I know how to use generators and yield from etc. But this? https://pastebin.com/tfWWFirx [14:45] *** hi_guis joined [14:49] *** hi_guis is now known as m6locks [14:57] *** mowcat joined [14:57] ¦ doc: Altai-man self-assigned Add navigation sidebar to docs website https://github.com/Raku/doc/issues/2509 [14:57] ¦ doc: Altai-man self-assigned Suggest appearance improvements for the site https://github.com/Raku/doc/issues/2429 [14:57] ¦ doc: Altai-man self-assigned docs.perl6.org design https://github.com/Raku/doc/issues/1090 [15:00] ¦ doc: Altai-man self-assigned Mobile usability problems https://github.com/Raku/doc/issues/3470 [15:00] ¦ doc: Altai-man self-assigned Deploy docs regularly https://github.com/Raku/doc/issues/3428 [15:00] ¦ doc: Altai-man self-assigned docs.perl6.org looks bad in dark-themed browsers https://github.com/Raku/doc/issues/3055 [15:01] ¦ doc: Altai-man self-assigned DevTools failed to parse SourceMap https://github.com/Raku/doc/issues/2988 [15:01] ¦ doc: Altai-man self-assigned Migrate from Mojolicious to Cro https://github.com/Raku/doc/issues/2910 [15:02] ¦ doc: Altai-man self-assigned Is there a good reason why we're not using jQuery CDNs? https://github.com/Raku/doc/issues/2906 [15:02] ¦ doc: Altai-man self-assigned Create a web deployment script https://github.com/Raku/doc/issues/2909 [15:03] ¦ doc: Altai-man self-assigned Rewriting pointers to web fragments has stopped working https://github.com/Raku/doc/issues/2833 [15:03] ¦ doc: Altai-man self-assigned Create site-specific Mustache templates https://github.com/Raku/doc/issues/2508 [15:04] ¦ doc: Altai-man self-assigned Drop different renderings (italics vs. upright) of class and role descriptions in type table https://github.com/Raku/doc/issues/2477 [15:04] ¦ doc: Altai-man self-assigned Fix left sidebar in the "Language" page https://github.com/Raku/doc/issues/2138 [15:04] ¦ doc: Altai-man self-assigned Collect repo traffic stats https://github.com/Raku/doc/issues/2045 [15:04] ¦ doc: Altai-man self-assigned execute code on glot.io https://github.com/Raku/doc/issues/1866 [15:05] ¦ doc: Altai-man self-assigned Only highlight perl 6 snippets as perl 6 https://github.com/Raku/doc/issues/1430 [15:06] ¦ doc: Altai-man self-assigned Search Index anchors point a line too low https://github.com/Raku/doc/issues/1303 [15:08] ¦ doc: Altai-man self-assigned Typing a search term and hitting return always gives first result from menu of indexed items https://github.com/Raku/doc/issues/1108 [15:08] ¦ doc: Altai-man self-assigned Add new top level search page https://github.com/Raku/doc/issues/1099 [15:08] ¦ doc: Altai-man self-assigned convert 'make run' to use Perl 6 https://github.com/Raku/doc/issues/1057 [15:08] ¦ doc: Altai-man self-assigned Lots of broken links, invalid HTML and so on (checklink) https://github.com/Raku/doc/issues/561 [15:08] ¦ doc: Altai-man self-assigned Need a way to mark which version something is part of. https://github.com/Raku/doc/issues/302 [15:11] *** Doc_Holliwould joined [15:24] *** parabolize joined [15:35] ¦ doc: Altai-man unassigned from antoniogamiz Issue Standardize search categories https://github.com/Raku/doc/issues/1410 [15:35] ¦ doc: Altai-man self-assigned Standardize search categories https://github.com/Raku/doc/issues/1410 [15:36] ¦ doc: Altai-man self-assigned Search methods through class hierarchy https://github.com/Raku/doc/issues/1087 [15:36] ¦ doc: Altai-man self-assigned Extra info in search criteria https://github.com/Raku/doc/issues/1086 [15:37] ¦ doc: Altai-man self-assigned Page search function conflicts with browser search https://github.com/Raku/doc/issues/3025 [15:38] ¦ doc: Altai-man self-assigned //= Not easy to find in docs https://github.com/Raku/doc/issues/2861 [15:40] ¦ doc: Altai-man self-assigned searching for slurp isn't great https://github.com/Raku/doc/issues/2491 [15:52] *** xheimlich left [15:54] *** _jrjsmrtn joined [15:57] *** __jrjsmrtn__ left [16:02] *** MilkmanDan left [16:03] *** MasterDuke left [16:07] *** MilkmanDan joined [16:10] *** sena_kun joined [16:12] *** Altai-man left [16:23] *** MilkmanDan left [16:27] *** sjm_uk left [16:29] *** MasterDuke joined [16:46] *** MilkmanDan joined [16:51] *** MilkmanDan left [17:05] New module released to CPAN! PDF::Class (0.4.7) by 03WARRINGD [17:22] *** jmerelo joined [17:33] *** imcsk8 joined [17:36] *** MasterDuke left [17:56] xinming_: I'm working on it... but it's taking longer than I'd like it to take... https://github.com/FCO/Red/compare/inheritance [17:56] SmokeMachine: the multi-column unique example in docs/tutorials/cookbook.md doesn't work, Is that known bug? [17:57] *** domidumont left [17:57] lol, I was typing the question, and you replied. ;-) [17:58] *** ufobat joined [18:00] xinming_: odd... it was working when I've created that [18:01] something definitely broke it, Did you try it just now? [18:01] just did... and yes, it's broken [18:01] that's the same error as before I've fixed that... [18:03] xinming_: sorry, I wasn't with the last master on this machine... it seems to be working here to me...\ [18:03] xinming_: https://www.irccloud.com/pastebin/FP0bGeiT/ [18:03] Ok, take your time fixing it. ;-) [18:04] xinming_: are you using from git repo? from the last master? [18:05] Yea [18:05] that worked here to me... [18:05] could you show me the complete error you are getting, please? [18:09] SmokeMachine: http://paste.debian.net/1170360/ [18:10] xinming_: that's the same error I was getting before pulling master... [18:11] xinming_: https://www.irccloud.com/pastebin/wjAHJAOo/ [18:11] SmokeMachine: Ok, Thanks, After I pull the master, seems working [18:11] I'll try more [18:12] (I should deploy that...) [18:13] I think I'll do that now! [18:13] https://www.irccloud.com/pastebin/FP0bGeiT/ <--- This example output is not perfect, There are 2 unique constraints for a2 [18:14] *** MilkmanDan joined [18:14] yes... I'll fix that [18:14] BTW, what does :unique mean? [18:15] no, that's right... that's exactly what I've asked for, isn't it? [18:15] are a b c placeholder? [18:15] it mean I want to add that column on the unique constraint a b and c [18:16] I'm "giving names" to the unique constraints and setting on what constraint the column should apear [18:17] SmokeMachine: is it possible to do something like, ::?CLASS.add-unique-constraint('name' => {.col1, .col2, .col3}); ?? [18:17] without name [18:17] ::?CLASS.add-unique-constraint({.col1, .col2, .col3}); [18:18] SmokeMachine: Thanks, I think I understand that `a b c` means anonymous constriant placeholder. [18:18] but the idea is accept name in the future [18:18] we need the name in pg [18:18] *** Sgeo joined [18:19] the names aren't being used to anything besides grouping them... but that will be the name of the constraint in the future... [18:19] yes, it will be used there [18:20] Thanks. just now, I grep the lib/, and found .^add-unique-constraint [18:20] Sleep time, thanks, Night. [18:20] have a good night [18:20] quite sleepy, it's 2:20 AM here [18:22] oh... thanks for all your effort playing with Red [18:38] New module released to CPAN! Red (0.1.28) by 03FCO [18:39] *** grumble is now known as \x2D [18:44] *** MasterDuke joined [18:58] *** mowcat left [19:20] *** ufobat left [19:22] *** gordonfish left [19:23] *** gordonfish joined [19:38] *** domidumont joined [19:49] *** domidumont left [20:00] *** MilkmanDan left [20:01] *** MilkmanDan joined [20:04] *** jmerelo left [20:08] *** aborazmeh joined [20:08] *** aborazmeh left [20:08] *** aborazmeh joined [20:09] *** Altai-man joined [20:11] *** sena_kun left [20:13] *** xheimlich joined [20:13] New module released to CPAN! MongoDB (0.43.15) by 03MARTIMM [20:20] *** sena_kun joined [20:21] *** Altai-man left [20:24] raku -e "say 2" works, but raku -e "longer contrived oneliner" gives a bash error. This isn't about raku, but I'm not sure how to incorporate raku one-liners in bash scripts [20:25] yeah, usually trouble with quoting [20:26] raku allows using a rather extensive selection of quoting constructs that wouldn't conflict with bash [20:32] *** xheimlich left [20:41] *** xheimlich joined [20:43] *** skids joined [20:52] *** xheimlich left [20:53] *** hal99999 left [21:00] *** xheimlich joined [21:08] *** hal99999 joined [21:09] xheimlich: write the whole script in raku, then you can have one-liners to your heart's content :) [21:23] *** Grrrr left [21:24] *** xheimlich left [21:32] *** natrys left [21:36] *** kylese left [21:46] *** MasterDuke left [21:50] *** aborazmeh left [22:12] *** MilkmanDan left [22:12] *** MilkmanDan joined [22:15] *** Grrrr joined [22:31] *** pochi joined [22:39] *** pochi left [22:40] *** Grauwolf left [22:45] *** kylese joined [22:45] *** kylese left [22:46] *** Grauwolf joined [22:52] *** Black_Ribbon joined [22:55] *** sena_kun left [23:00] *** hal99999 left [23:32] *** cpan-raku left [23:33] *** cpan-raku joined [23:33] *** cpan-raku left [23:33] *** cpan-raku joined