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