»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_log/perl6 | UTF-8 is our friend! 🦋 Set by Zoffix on 25 July 2018. |
|||
00:00
kensanata left
00:05
w_richard_w joined
00:06
p6bannerbot sets mode: +v w_richard_w
00:24
zacts joined,
p6bannerbot sets mode: +v zacts
00:32
w_richard_w left
00:36
rindolf left
00:43
Manifest0 left
00:46
Manifest0 joined
00:47
p6bannerbot sets mode: +v Manifest0
00:48
zacts left
01:14
regreg joined
01:15
regreg left,
regreg joined
01:16
p6bannerbot sets mode: +v regreg
01:21
w_richard_w joined,
p6bannerbot sets mode: +v w_richard_w
01:43
MasterDuke joined,
p6bannerbot sets mode: +v MasterDuke,
MasterDuke left,
MasterDuke joined,
herbert.freenode.net sets mode: +v MasterDuke,
p6bannerbot sets mode: +v MasterDuke
01:46
w_richard_w left
01:48
ryn1x left
01:51
ryn1x joined
01:52
p6bannerbot sets mode: +v ryn1x
01:54
zacts joined,
p6bannerbot sets mode: +v zacts
01:56
MasterDuke left
02:07
jme` joined,
kurahaupo_ is now known as kurahaupo,
p6bannerbot sets mode: +v jme`
|
|||
Geth | doc: b1c30a8aac | Coke++ | README.md whitespace |
02:20 | |
doc: fdb6bdbf30 | Coke++ | doc/Language/experimental.pod6 prefer runtime |
|||
synopsebot | Link: doc.perl6.org/language/experimental | ||
03:07
evalable6 left
03:11
evalable6 joined,
ChanServ sets mode: +v evalable6
03:12
p6bannerbot sets mode: +v evalable6
03:15
lizmat left
03:27
kurahaupo is now known as BowlOfPetunias,
BowlOfPetunias is now known as kurahaupo
03:32
zacts left
03:33
kurahaupo is now known as Pterodaxyl
03:43
ryn1x left
03:45
Pterodaxyl is now known as kurahaupo,
zacts joined,
p6bannerbot sets mode: +v zacts
03:54
zacts left
04:40
i1nfusion joined
04:41
p6bannerbot sets mode: +v i1nfusion
04:45
ryn1x joined
04:46
p6bannerbot sets mode: +v ryn1x
04:47
sauvin joined,
p6bannerbot sets mode: +v sauvin
04:49
i1nfusion left
04:50
ferreira left
04:51
i1nfusion joined,
p6bannerbot sets mode: +v i1nfusion
04:57
Cabanoss- joined,
p6bannerbot sets mode: +v Cabanoss-
04:58
Cabanossi left
05:27
regreg left
|
|||
Geth | ecosystem: ca7333e8e5 | (Richard Hainsworth)++ (committed using GitHub Web editor) | META.list Add PodCache::Module, provides PodCache::Render See github.com/finanalyst/pod-render For rendering Pod to another markup, default HTML, using templates. All templates can be over-ridden. Pod processing has no embedded HTML. As Pod is processed, data is collected for ToC & index (all headers and X< > items). |
05:50 | |
05:57
mowcat left
06:11
Xliff joined,
p6bannerbot sets mode: +v Xliff
06:31
aindilis` joined
06:32
p6bannerbot sets mode: +v aindilis`,
aindilis` left
|
|||
Xliff | \o #perl6 | 06:46 | |
Hope everyone is enjoying a Happy Holiday Season. | |||
holyghost | Xliff : would you know where to put the docs in Bayes/Learn.pm6 ? | 06:55 | |
Xliff : happy holidays :-) | 06:58 | ||
Xliff | holyghost: :) | 07:05 | |
holyghost: Confused. What docs? | |||
If it's committed, I'll take a look in a minute. | |||
(and pushed) | |||
holyghost | Xliff : I need to write docs for Bayes::Learn, jmerelo told me I had to put in a Learn.pm6 file for docs | 07:06 | |
(and pushed) ? | 07:07 | ||
anyway, I'll ask JJ later on today | 07:09 | ||
.tell jmerelo Could you explain how to put docs with Learn.pm6 in Bayes::Learn ? | 07:13 | ||
yoleaux | holyghost: I'll pass your message to jmerelo. | ||
Xliff | holyghost: Do you have the docs written? If so, you can add POD comments and those can become your docs. | 07:16 | |
holyghost | ok, I'll write a pod6 later on then, thx Xliff | 07:19 | |
I'm too drunk now :-) I'll probably best wait until next week | 07:20 | ||
thx | |||
07:32
evalable6 left
07:36
evalable6 joined,
ChanServ sets mode: +v evalable6,
p6bannerbot sets mode: +v evalable6
08:04
jmerelo joined
08:05
p6bannerbot sets mode: +v jmerelo
08:18
Hotkeys left
08:19
nadim joined
08:20
p6bannerbot sets mode: +v nadim
|
|||
jmerelo | I have been unable to discover where the official perl6 documentation container was hosted. There's a perl6 organization in Docker Hub, but I have no idea how to work with it or if I have access to it | 08:30 | |
yoleaux | 07:13Z <holyghost> jmerelo: Could you explain how to put docs with Learn.pm6 in Bayes::Learn ? | ||
jmerelo | .tell holyghost you can check out my Perl6 advent calendar entry perl6advent.wordpress.com/2018/12/02/ | ||
yoleaux | jmerelo: I'll pass your message to holyghost. | ||
jmerelo | Anyway, I have created it with my tag, hopefully nobody minds, and of course I don't mind if somebody manages to put it under the perl6/ namespace in docker. | 08:32 | |
It's going to be built automatically every time we push to master, and you'll be able to use it with docker pull jjmerelo/perl6-doc | |||
08:40
dogbert11 joined
08:41
p6bannerbot sets mode: +v dogbert11
08:43
dogbert17 left
08:46
nadim left
08:54
nadim joined
08:55
p6bannerbot sets mode: +v nadim
|
|||
jmerelo | (Unfortunately, it does not seem to work right now. I've created an issue) | 09:04 | |
09:06
rindolf joined
09:07
p6bannerbot sets mode: +v rindolf
09:20
powerbit joined
09:21
p6bannerbot sets mode: +v powerbit
09:28
lizmat joined,
p6bannerbot sets mode: +v lizmat
|
|||
El_Che | lo | 09:44 | |
sjn | o/ | 09:46 | |
El_Che: had just a chat with a friend about the perl6 docker container :) | 09:47 | ||
Xliff | .tell AlexDaniel New graph! This time with captions for the avg-lines, although you may need to download and look at them in Chrome or chromium-browser. Good news though: latest perl6 times are better than before! | ||
yoleaux | Xliff: I'll pass your message to AlexDaniel. | ||
AlexDaniel | . | ||
yoleaux | 09:47Z <Xliff> AlexDaniel: New graph! This time with captions for the avg-lines, although you may need to download and look at them in Chrome or chromium-browser. Good news though: latest perl6 times are better than before! | ||
sjn | El_Che: he asked if that image was available on OpenShift, I answered "I don't know, maybe El_Che knows?" | ||
AlexDaniel | Xliff: where? | 09:48 | |
Xliff | LOL! | 09:59 | |
A link would help, yes? | |||
github.com/Xliff/p6-GtkPlus/blob/5...7-0341.svg | |||
Sorry. Was busy reading jmerelo's Advent post from 12/02 | 10:00 | ||
Now I think I need to add a background color. :/ | 10:01 | ||
.oO( Wonder how long that will take me... ) |
|||
10:03
kurahaupo left
|
|||
Xliff | Answer... not that long. :) | 10:05 | |
El_Che | sjn: if Openshift can pull Docker images, sure. | 10:06 | |
but I must say, with containers and orchestrators I completely fail to see the point of openshift :) | 10:07 | ||
sjn | El_Che: it's good for visibility | 10:08 | |
it's heavily used, and by being in that index, we show those users that Perl 6 is "available" | 10:09 | ||
"exists" | |||
El_Che | yeah, my point is that openshift shifted (ho-ho-ho) to containers and kubernetes, so I expect it uses upstream Docker registry | 10:10 | |
but I can be wrong | 10:11 | ||
I been a while since I looked at OpenShift and asked "why" | |||
Ok, posing the question in a full room Red Hat paid event made it somewhat awkward and funny, but still :) | |||
Xliff | AlexDaniel: Better version with background color. I will brighten the text in a sec. | 10:17 | |
jmerelo | Xliff: did you like it? | 10:20 | |
sjn: there are quite few Perl 6 docker containers, official and otherwise... | |||
And El_Che is right about OpenShift. It was a very nice PaaS, but now it's got OpenShift.io, which I can't figure out, and OpenShift 3 "online", which kicked me out after I didn't create a project in 90 days. | 10:21 | ||
Xliff | jmerelo: I learned something, therefore it is good! | 10:27 | |
AlexDaniel: github.com/Xliff/p6-GtkPlus/blob/m...7-0341.svg <-- Better version | |||
Note that 12/21 results are WAY higher than 12/27. And for a laugh, see if you can find the ones from Christmas. | 10:28 | ||
jmerelo | Xliff: thanks! | ||
Xliff: those are benchmarks? | |||
Xliff | jmerelo: Compile times from my current obsession. | ||
More like parse times, but that's the lion's share of --stagestats | |||
jmerelo | m: say "Are you Camelia?" | 10:48 | |
camelia | Are you Camelia? | ||
11:00
kurahaupo joined
11:01
ssm joined,
p6bannerbot sets mode: +v kurahaupo,
lizmat left,
p6bannerbot sets mode: +v ssm
11:22
rafaelschp joined,
p6bannerbot sets mode: +v rafaelschp
11:25
lizmat joined,
p6bannerbot sets mode: +v lizmat
11:29
rindolf left
11:35
ryn1x left,
Sgeo_ left
11:36
Sgeo_ joined,
p6bannerbot sets mode: +v Sgeo_
11:51
rindolf joined
11:52
p6bannerbot sets mode: +v rindolf
11:56
andrzejku_ left,
andrzejku joined
11:57
p6bannerbot sets mode: +v andrzejku
12:04
llfourn left
13:00
mowcat joined
13:01
p6bannerbot sets mode: +v mowcat
13:02
kurahaupo left
13:03
kurahaupo joined,
p6bannerbot sets mode: +v kurahaupo
13:04
jmerelo left
13:22
kurahaupo left
13:35
rurban joined
13:36
p6bannerbot sets mode: +v rurban
13:42
rurban_ joined,
p6bannerbot sets mode: +v rurban_
13:43
rurban_ left
13:56
rurban left
14:12
mowcat left
14:21
Sgeo_ left
14:23
nadim left
14:33
nadim joined
14:34
p6bannerbot sets mode: +v nadim
14:58
committable6 left
14:59
committable6 joined,
benchable6 left,
benchable6 joined,
nativecallable6 left,
p6bannerbot sets mode: +v committable6
15:00
p6bannerbot sets mode: +v benchable6
15:03
nadim left
15:06
jast left
15:18
jme` left
15:19
jast joined,
p6bannerbot sets mode: +v jast
15:24
jast left
15:28
jast joined,
kurahaupo joined,
p6bannerbot sets mode: +v jast,
p6bannerbot sets mode: +v kurahaupo
15:36
jast left
15:37
jast joined,
p6bannerbot sets mode: +v jast
15:41
jast left
15:44
zacts joined,
p6bannerbot sets mode: +v zacts
15:57
nativecallable6 joined
15:58
p6bannerbot sets mode: +v nativecallable6
16:00
rafaelschp left
16:13
jast joined
16:14
p6bannerbot sets mode: +v jast
16:18
Manifest0 left,
Manifest0 joined
16:19
jast left,
p6bannerbot sets mode: +v Manifest0
16:23
jast joined
16:24
jmerelo joined,
p6bannerbot sets mode: +v jast
16:25
p6bannerbot sets mode: +v jmerelo,
Ven`` joined
16:26
p6bannerbot sets mode: +v Ven``
|
|||
SmokeMachine | jmerelo: what do you think of RabidGravy’s idea for Red... I think it was much better than my original one to create a scheme class... | 16:31 | |
Ven`` | day 20 has many pretty APL symbols.. | 16:32 | |
jmerelo | SmokeMachine: the one you've mentioned in Twitter? | ||
SmokeMachine: I liked the original one, anyway. Let me check. | |||
Ven`` | I understood absolutely none of it however | ||
16:33
melezhik joined,
p6bannerbot sets mode: +v melezhik
|
|||
melezhik | Hi! How to make subroutines arguments mutable ? | 16:33 | |
sub profile-install ($dir,$profile,%args?) { $profile ~~ s/^ (\S+?) '@' // }; | 16:34 | ||
jmerelo | SmokeMachine: it looks amazing... | ||
SmokeMachine: plus a good amount of work... | |||
melezhik | Cannot assign to a readonly variable or a value | ||
jmerelo | melezhik: add "is copy" to the name, as in "$dir is copy" | ||
Ven`` | you mean "is rw"? | 16:35 | |
jmerelo | m: sub foo ($bar is copy, $baz) { $bar++; return [$bar, $baz} }; say foo(3,4) | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Unable to parse expression in array composer; couldn't find final ']' (corresponding starter was at line 1) at <tmp>:1 ------> 3copy, $baz) { $bar++; return [$bar, $baz7⏏5} }; say foo(3,4) … |
||
jmerelo | m: sub foo ($bar is copy, $baz) { $bar++; return [$bar, $baz] }; say foo(3,4) | ||
camelia | [4 4] | ||
Ven`` | I s'pose it depends if you want locally mutable or not | ||
16:38
jast left
|
|||
SmokeMachine | jmerelo: :) now bought work :) | 16:38 | |
jmerelo | SmokeMachine: it was also your 1000th tweet :-) | 16:39 | |
melezhik | jmerelo: is copy works for me. thank you | 16:40 | |
jmerelo | melezhik: sure :-) | ||
Ven`` | oh, Red seems pretty nifty | 16:45 | |
a bit Linq-like | |||
SmokeMachine | jmerelo: I diânt know that! | ||
didn't | |||
16:47
lighttrr joined
16:48
p6bannerbot sets mode: +v lighttrr
|
|||
Geth | doc/master: 4 commits pushed by (JJ Merelo)++ | 16:50 | |
16:59
Ven`` left
17:00
Ven`` joined
|
|||
melezhik | perl6 -e 'my %a = %( foo => ("a", "b", "c")); say sort(), grep { $_ eq "b" }, %a<foo>' | 17:01 | |
()() | |||
17:01
p6bannerbot sets mode: +v Ven``
|
|||
melezhik | what I am doing wrong? | 17:01 | |
I expect not empty result | |||
m: my %a = %( foo => ("a", "b", "c")); say sort(), grep { $_ eq "b" }, %a<foo>' | 17:02 | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Two terms in a row at <tmp>:1 ------> 3 say sort(), grep { $_ eq "b" }, %a<foo>7⏏5' expecting any of: infix infix stopper postfix statement end … |
||
jmerelo | melezhik: sort is not sorting anything... | ||
melezhik | ? | ||
jmerelo | melezhik: grep is not grepping anything either | ||
m: my %a = %( foo => ("a", "b", "c")); say sort(): grep { $_ eq "b" }: %a<foo>' | |||
camelia | 5===SORRY!5=== Error while compiling <tmp> Two terms in a row at <tmp>:1 ------> 3 say sort(): grep { $_ eq "b" }: %a<foo>7⏏5' expecting any of: infix infix stopper postfix statement end … |
||
melezhik | perl6 -e 'my %a = %( foo => ("a", "b", "c")); say grep { $_ eq "b" }, %a<foo>' - the same result | ||
without sort | 17:03 | ||
what it does not grep? | |||
why | |||
17:03
ferreira joined
|
|||
jmerelo | melezhik: grep takes two arguments, no parentheses. When you include another comma, it gets crazy | 17:03 | |
m: my %a = %( foo => ("a", "b", "c")); say sort grep { $_ eq "b" }, %a<foo>' | 17:04 | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Two terms in a row at <tmp>:1 ------> 3)); say sort grep { $_ eq "b" }, %a<foo>7⏏5' expecting any of: infix infix stopper postfix statement end … |
||
jmerelo | m: my %a = %( foo => ("a", "b", "c")); say sort( grep ( { $_ eq "b" }, %a<foo>) ) | ||
camelia | () | ||
17:04
p6bannerbot sets mode: +v ferreira
|
|||
melezhik | still null ... | 17:04 | |
jmerelo | melezhik: is that closer to what you are looking for? Let's break it down | ||
m: my %a = %( foo => ("a", "b", "c")); say grep ( { $_ eq "b" }, %a<foo>) | 17:05 | ||
camelia | () | ||
jmerelo | m: my %a = %( foo => ("a", "b", "c")); say %a<foo> | ||
camelia | (a b c) | ||
melezhik | it is ... but I expect that it returns "b" | ||
while it does not | |||
17:05
regreg joined
|
|||
jmerelo | m: my %a = %( foo => ("a", "b", "c")); say %a<foo>.grep: * eq 'b' | 17:06 | |
camelia | (b) | ||
melezhik | ok that means * not $_ | ||
jmerelo | m: my %a = %( foo => ("a", "b", "c")); say grep ( * eq "b", %a<foo>) | ||
camelia | () | ||
jmerelo | m: my %a = %( foo => ("a", "b", "c")); say grep ( { $^þ eq "b"}, %a<foo>) | ||
camelia | () | ||
17:06
p6bannerbot sets mode: +v regreg
|
|||
jmerelo | m: my %a = %( foo => ("a", "b", "c")); say grep ( /b/, %a<foo>) | 17:06 | |
camelia | () | ||
jmerelo | m: my %a = %( foo => ("a", "b", "c")); say grep( /b/, %a<foo>) | 17:07 | |
camelia | ((a b c)) | ||
melezhik | it is confusing, is not it? ((: | ||
jmerelo | m: my %a = %( foo => ("a", "b", "c")); say grep( /b/, $(%a<foo>)) | ||
camelia | ((a b c)) | ||
jmerelo | m: my %a = %( foo => ("a", "b", "c")); say grep( /b/, %a<foo><> ) | ||
camelia | (b) | ||
jmerelo | Well | ||
Weveral things | |||
%a<foo> returns a single element, which is a list. You need to de-containerize it (via <> to convert it in a list) | 17:08 | ||
That's why you have couple of parentheses above. | |||
Putting grep behind listifies, which has the same effect. | |||
melezhik | m: my %a = %( foo => ("a", "b", "c")); say grep{ $_ eq "b" } %a<foo><> | 17:10 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Undeclared routine: a used at line 1 |
||
melezhik | ? | ||
m: my %a = %( foo => ("a", "b", "c")); say grep{( $_ eq "b" )} %a<foo><> | 17:11 | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Undeclared routine: a used at line 1 |
||
melezhik | m: my %a = %( foo => ("a", "b", "c")); say grep({ $_ eq "b" }) %a<foo><> | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Undeclared routine: a used at line 1 |
||
melezhik | I get stuck ): | ||
I wish perl6 grep would be more friendly ... to be honest ... | |||
17:12
CoderPuppy joined
|
|||
lizmat | what's unfriendly about grep in Perl 6 ? | 17:12 | |
17:12
cpup left
|
|||
lizmat | as opposed to Perl 5 I assume, melezhik? | 17:12 | |
melezhik | it is complicated ... how can I make my code working? | ||
yes | |||
jmerelo | m: my %a = %( foo => ("a", "b", "c")); say grep{ $_ eq "b" }, %a<foo><> | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Calling grep() will never work with signature of the proto (Mu, |) at <tmp>:1 ------> 3my %a = %( foo => ("a", "b", "c")); say 7⏏5grep{ $_ eq "b" }, %a<foo><> |
||
17:12
p6bannerbot sets mode: +v CoderPuppy
|
|||
jmerelo | m: my %a = %( foo => ("a", "b", "c")); say grep { $_ eq "b" }, %a<foo><> | 17:12 | |
camelia | (b) | ||
jmerelo | melezhik: ^^^ | 17:13 | |
m: my %a = %( foo => ("a", "b", "c")); say grep { $_ eq "b" }, %a<foo>.list | |||
camelia | (b) | ||
melezhik | yeah ... | ||
jmerelo | melezhik: you gotta be careful with spaces and commas... | ||
melezhik | thanks ... jmerelo: | ||
jmerelo | melezhik: eventually you'll do fine, don't worry :-) | ||
melezhik | yes ... this is kinda a level of friendliness ... it's not complain ... just my personal feeling ... I need to get used to that ... thanks guys | 17:14 | |
lizmat | m: my %a; %a<foo> := ("a", "b", "c"); say grep { $_ eq "b" }, %a<foo> # alternate solution | ||
camelia | (b) | ||
lizmat | melezhik: depending on how you initialize the hash | 17:15 | |
jmerelo | melezhik: good luck, and you where to find us :-) Happy season greetings, too. | ||
melezhik | ah, oh ,, thanks for that lizmat: | ||
sure ... the perl6 community is friendly of course ((-; | 17:16 | ||
lizmat | m: my %a is Map = %( foo => ("a", "b", "c")); say grep { $_ eq "b" }, %a<foo> # yet another alternative | 17:18 | |
camelia | (b) | ||
lizmat | in a map, the values are never containerized | ||
so the grep doesn't need to decontainerize them | |||
melezhik ^^^ | |||
melezhik | yeah ... I have straight forward %f = () ... so need to add .list here not for Map? ... I see ... thanks lizmat: | 17:20 | |
lizmat | not for my %h is Map :-) | ||
melezhik | yeah :-) | ||
lizmat | it actually saves on memory as well | ||
melezhik | yeah ... worth to add some examples to perl6 doc on grep/map? | 17:21 | |
lizmat | basically, for all Hashes that you initialize and not change, the "is Map" makes sense | ||
melezhik | good thing ... | ||
my case | |||
17:22
nadim joined,
p6bannerbot sets mode: +v nadim
|
|||
melezhik | m: my %a = %( foo => ("a", "b", "c")); say sort { .a cmp .b }, grep { $_ eq "b" }, %a<foo>.list | 17:29 | |
camelia | (b) | ||
melezhik | homework . ha-ha (: | ||
m: my %a is Map = ( foo => ("a", "b", "c")); say sort { .a cmp .b }, grep { $_ eq "b" }, %a<foo> | 17:30 | ||
camelia | (b) | ||
lizmat | m: my %a = %( foo => ("a", "b", "c")); say sort &cmp, grep { $_ eq "b" }, %a<foo>.list | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Undeclared routine: cmp used at line 1 |
||
lizmat | m: my %a = %( foo => ("a", "b", "c")); say sort [cmp], grep { $_ eq "b" }, %a<foo>.list | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Cannot reduce with cmp because structural infix operators are diffy and not chaining at <tmp>:1 ------> 3= %( foo => ("a", "b", "c")); say sort [7⏏5cmp], grep { $_ eq "b" }, %a<foo>.list … |
||
lizmat | m: my %a = %( foo => ("a", "b", "c")); say sort &[cmp], grep { $_ eq "b" }, %a<foo>.list | ||
camelia | (b) | ||
lizmat | that's the one :-) | ||
17:30
cafphtgfeomt joined
17:31
zacts left,
p6bannerbot sets mode: +v cafphtgfeomt,
Sigyn left
|
|||
melezhik | yeah ... lizmat: good job (-; | 17:33 | |
17:40
kybr joined
17:41
p6bannerbot sets mode: +v kybr
17:51
ryn1x joined
17:52
p6bannerbot sets mode: +v ryn1x
|
|||
SmokeMachine | Ven``: thanks! | 17:54 | |
jmerelo | I've forked the Rakudo start docker container and started to build rakudo-nostar containers here github.com/jj/rakudo-nostar | 18:03 | |
18:03
zacts joined,
p6bannerbot sets mode: +v zacts
|
|||
jmerelo | I had already created the alpine-based containers, but these containers will be plug-in compatible with the rakudo-start ones, but will have many more versions. | 18:03 | |
Still getting built in docker hub, but I expect to have them ready this evening. And then, a Perl 6 documentation container (which is the thing that started the yak shaving) | 18:04 | ||
buggable | New CPAN upload: Tomtit-0.0.12.tar.gz by MELEZHIK modules.perl6.org/dist/Tomtit:cpan:MELEZHIK | 18:05 | |
18:26
sauvin left
18:36
zacts left
18:37
melezhik left
19:04
Manifest0 left
|
|||
buggable | New CPAN upload: Tomtit-0.0.13.tar.gz by MELEZHIK modules.perl6.org/dist/Tomtit:cpan:MELEZHIK | 19:05 | |
19:07
Manifest0 joined
19:08
p6bannerbot sets mode: +v Manifest0
19:12
ryn1x left,
lighttrr left
19:13
lucasb joined,
p6bannerbot sets mode: +v lucasb
19:30
ryn1x joined
19:31
p6bannerbot sets mode: +v ryn1x
20:07
ryn1x left
|
|||
Voldenet | is there any shorter way of writing `given $x { when "[" { 1 }; when "]" { 2 }; default { 0 }}`? | 20:12 | |
jmerelo | Voldenet: you can pre-initialize a hash and just use the hash. | 20:14 | |
Juerd | { "[" => 1, "]" => 2 }{ $x } // 0 | ||
Geth | doc: fb97e96b95 | (JJ Merelo)++ | Dockerfile Fixes Dockerfile Although it has needed a whole new Docker container to go with it. In this case, it closes #2525 |
20:15 | |
20:16
jmerelo left,
melezhik joined,
p6bannerbot sets mode: +v melezhik
|
|||
Juerd | Or if you're really going for short, not caring about readablity: %(<[ 1 ] 2>){$x}//0 | 20:16 | |
Voldenet | Thanks, that's way shorter | 20:18 | |
melezhik | lizmat: jmerelo: based on my today experience on learning perl6/grep/sort. - kinda interactive console Perl6 tutorial for those who need "get things done" - asciinema.org/a/218669 (github.com/melezhik/p6-GTDT), any thoughts? it's just an idea ... | ||
b2gills | melezhik: I generally prefer the method form of grep/sort/map `@a.grep({CODE})` | 20:21 | |
m: my %a = %( foo => ("a", "b", "c")); say %a<foo>.grep({ $_ eq "b" }).sort({.a cmp .b}) | |||
camelia | (b) | ||
melezhik | b2gills: worth to add to p6-gtdt? (-; | 20:22 | |
20:32
llfourn joined,
p6bannerbot sets mode: +v llfourn
|
|||
melezhik | have added method form for grep/sort cases | 20:47 | |
20:50
CoderPuppy left,
cpup joined
20:51
p6bannerbot sets mode: +v cpup
20:52
mowcat joined
20:53
p6bannerbot sets mode: +v mowcat
|
|||
melezhik | I changed logic a bit , now all cases for a topic run in endless loop and unnecessary details are removed from console - asciinema.org/a/2tu5sbHInFm9N7Vtwbdi8Jo5N | 20:57 | |
21:01
cpup left
21:02
cpup joined,
p6bannerbot sets mode: +v cpup
21:17
vrurg left
21:18
vrurg joined,
p6bannerbot sets mode: +v vrurg
21:51
tejr left
22:04
molaf joined
22:05
p6bannerbot sets mode: +v molaf
22:07
llfourn left
22:30
Manifest0 left
22:31
Manifest0 joined
22:32
p6bannerbot sets mode: +v Manifest0
|
|||
Xliff | Wow! You can sing the theme song to Pinky and the Brain to Singing in the Rain. Ah! Animaniacs | 22:33 | |
22:33
i1nfusion left
22:41
khisanth_ left
22:47
kurahaupo left,
kurahaupo joined
22:48
p6bannerbot sets mode: +v kurahaupo
22:55
Cabanoss- left
22:56
Cabanossi joined
22:57
p6bannerbot sets mode: +v Cabanossi
22:58
khisanth_ joined
22:59
p6bannerbot sets mode: +v khisanth_
23:00
TreyHarris left
23:02
Ven`` left
23:05
Ven`` joined
23:06
p6bannerbot sets mode: +v Ven``
23:11
ryn1x joined
23:12
p6bannerbot sets mode: +v ryn1x
23:33
Manifest0 left,
Manifest0 joined
23:34
p6bannerbot sets mode: +v Manifest0
23:36
melezhik left
23:43
lucasb left
23:47
Sgeo joined,
|oLa| joined
23:48
p6bannerbot sets mode: +v Sgeo,
p6bannerbot sets mode: +v |oLa|
23:50
kurahaupo left
23:53
kurahaupo joined
23:54
p6bannerbot sets mode: +v kurahaupo
|