»ö« 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:02 kurahaupo left, kurahaupo joined 00:03 p6bannerbot sets mode: +v kurahaupo 00:21 rindolf left 00:41 cog left 00:55 Michael_S joined, p6bannerbot sets mode: +v Michael_S
Michael_S I'm confused by this difference: 01:02
p6: sub x1() { [1, 2, 3] }; my @a = x1(); say @a;
camelia [1 2 3]
01:03 rbt_ joined
Michael_S sub x2($k, %h) { if (%h{$k}) { %h{$k} } else { %h{$k} = [1, 2, 3]; %h{$k} } }; my %h; my @a2 = x2("k", %h); say @a2; 01:03
evalable6 [[1 2 3]]
01:03 p6bannerbot sets mode: +v rbt_
timotimo is it because you get an extra scalar container around the [1, 2, 3] from getting it back out of the hash? 01:04
m: sub x3() { $[1, 2, 3] }; my @a = x3(); say @a; 01:05
camelia [[1 2 3]]
Michael_S How do I bypass that scalar container? I want the array, not an array with the actual array that I want in the first element.
timotimo you can get it out of the hash with an extra <> at the end
%h{$k}<> 01:06
that will strip the scalar container on the way out
Michael_S sub x2($k, %h) { if (%h{$k}) { %h{$k}<> } else { %h{$k} = [1, 2, 3]; %h{$k}<> } }; my %h; my @a2 = x2("k", %h); say @a2;
evalable6 [1 2 3]
geekosaur or:
sub x2($k, %h) { if (%h{$k}) { %h{$k} } else { %h{$k} = [1, 2, 3]; |%h{$k} } }; my %h; my @a2 = x2("k", %h); say @a2;
evalable6 [1 2 3]
timotimo m: my %h; %h{"with"} = [1, 2, 3]; %h{"without"} := [1, 2, 3]; dd %h; dd %h{"with"}; dd %h{"without"}
camelia Hash %h = {:with($[1, 2, 3]), :without([1, 2, 3])}
Array %h = $[1, 2, 3]
Array element = [1, 2, 3]
timotimo another way to not have the scalar container 01:07
Michael_S The switch from %h{key} = value to %h{key} := value does it? The ':='? Thanks. Thank you to timotimo and geekosaur for the fast responses, I appreciate it. (And thanks to good old camelia and evalable6 :D ) 01:08
timotimo that's right
= assigns into something, := binds "over the existing container"
geekosaur there's more than one way to do it, but each has its own particular behaviors 01:09
the := isn't appropriate if you need to assign to that hash element later, for example
timotimo true 01:10
Michael_S I will keep that in mind too. 01:11
Geth doc: 912fdf79bb | (JJ Merelo)++ | doc/Type/IO.pod6
Fixes link refs #2385
01:25
synopsebot Link: doc.perl6.org/type/IO
01:26 Kraaz joined 01:27 p6bannerbot sets mode: +v Kraaz
Geth doc: d4b482b516 | (JJ Merelo)++ | 2 files
Adds dependence to avoid test error

Also adds links and some explanations. This closes #2383 closes #2385
01:39
01:47 Kraaz left 01:48 ZzZombo left 01:51 fake_space_whale left 01:52 Zoffix joined, p6bannerbot sets mode: +v Zoffix
Zoffix Michael_S: there's an extensive article on containers if you have any interest: perl6advent.wordpress.com/2017/12/02/ 01:52
And this one, targeted for those with Perl 5 backround: opensource.com/article/18/8/containers-perl-6 01:53
01:57 ryn1x joined 01:58 p6bannerbot sets mode: +v ryn1x 02:02 kurahaupo left, kurahaupo joined, regreg__ joined 02:03 p6bannerbot sets mode: +v kurahaupo, p6bannerbot sets mode: +v regreg__, fake_space_whale joined 02:04 p6bannerbot sets mode: +v fake_space_whale 02:07 hamhu3_ joined, kurahaupo left, kurahaupo joined 02:08 p6bannerbot sets mode: +v hamhu3_, p6bannerbot sets mode: +v kurahaupo 02:10 hamhu3 left 02:20 ufobat_ joined 02:21 p6bannerbot sets mode: +v ufobat_ 02:24 ufobat left, kurahaupo left 02:25 kurahaupo joined, p6bannerbot sets mode: +v kurahaupo 02:31 kurahaupo left, kurahaupo joined 02:32 p6bannerbot sets mode: +v kurahaupo 02:46 ZzZombo joined, p6bannerbot sets mode: +v ZzZombo 02:50 lizmat left 02:57 aindilis left, aindilis` joined 02:58 p6bannerbot sets mode: +v aindilis`, aindilis` left
k-man i don't understand the difference between Q and q for quoting strings 03:24
Q is literal and q is escaped strings? but I don't understand what that difference is 03:25
geekosaur m: say Q'x\yz 03:26
camelia 5===SORRY!5=== Error while compiling <tmp>
Confused
at <tmp>:1
------> 3say Q'x\7⏏5yz
expecting any of:
postfix
geekosaur er
m: say Q'x\yz'
camelia 5===SORRY!5=== Error while compiling <tmp>
Confused
at <tmp>:1
------> 3say Q'x\7⏏5yz'
expecting any of:
postfix
k-man oh, is it that you can include \ to escape in escaped strings?
geekosaur duh
right
k-man ok, i get it now thanks geekosaur
geekosaur \is literal in Q, allows escapingin q"
k-man thank you geekosaur 03:27
geekosaur and I still type too fast for this damned keyboard :/
03:37 cog joined 03:38 p6bannerbot sets mode: +v cog 04:01 cog left
ryn1x :m say Q 'fails to escape \' quote' 04:03
m: say Q 'fails to escape \' quote'
camelia 5===SORRY!5=== Error while compiling <tmp>
Two terms in a row
at <tmp>:1
------> 3say Q 'fails to escape \'7⏏5 quote'
expecting any of:
infix
infix stopper
postfix
statement end
s…
ryn1x m: say Q :q 'escape \' quote' 04:04
camelia escape ' quote
ryn1x ^ k-man 04:06
04:11 ryn1x left 04:12 ryn1x joined, p6bannerbot sets mode: +v ryn1x
ryn1x :m Q 'x\\yz' 04:30
m: Q 'x\\yz'
camelia WARNINGS for <tmp>:
Useless use of constant string "x\\\\yz" in sink context (line 1)
ryn1x m: say Q 'x\\yz' 04:31
camelia x\\yz
ryn1x m: say Q:q 'x\\yz'
camelia x\yz
04:38 ryn1x left
buggable New CPAN upload: Perl6-Bayes-Learn-0.1.1.tar.gz by HOLYGHOST cpan.metacpan.org/authors/id/H/HO/...1.1.tar.gz 04:53
holyghost ^-- There's now an Action class for such loss functions and a minimax method for a Strategy class. Everything is based on Populations of probabilities and Distributions of them 04:55
yoleaux 15 Oct 2018 16:59Z <Zoffix> holyghost: you have a problem with your modules: colabti.org/irclogger/irclogger_log...10-15#l556
04:57 curan joined, p6bannerbot sets mode: +v curan
holyghost .tell Zoffix I'll fixify later on, I have to read up 05:01
yoleaux holyghost: I'll pass your message to Zoffix.
holyghost .m "Vampires do exist" 05:05
an example hypothesis for an RPG with Bayesian inference 05:06
Think classes :-) 05:07
05:27 domidumont joined 05:28 p6bannerbot sets mode: +v domidumont 05:35 mingdao left 05:36 mingdao joined, p6bannerbot sets mode: +v mingdao 05:49 kurahaupo left 05:50 kurahaupo joined 05:51 p6bannerbot sets mode: +v kurahaupo 05:55 domidumont left 05:57 HaraldJoerg joined 05:58 p6bannerbot sets mode: +v HaraldJoerg
Geth doc: f76a5f1896 | (Richard Hainsworth)++ (committed using GitHub Web editor) | doc/Language/syntax.pod6
Update syntax.pod6

It seemed at first that C<unit> added something, when in fact unit is just telling the compiler that the rest of the file is the body of the package.
06:08
synopsebot Link: doc.perl6.org/language/syntax
06:10 domidumont joined 06:11 p6bannerbot sets mode: +v domidumont 06:20 HaraldJoerg1 joined
Geth Pod-To-HTML: 77f0af09a7 | (Richard Hainsworth)++ (committed using GitHub Web editor) | t/010-basic.t
Update 010-basic.t

Eliminated sub twrap at end of this file. It is not called. The tests all run when this code is eliminated.
06:20
06:21 p6bannerbot sets mode: +v HaraldJoerg1 06:22 HaraldJoerg left 06:26 finanalyst joined, p6bannerbot sets mode: +v finanalyst 06:27 robertle joined 06:28 troys left, p6bannerbot sets mode: +v robertle 06:29 ExtraCrispy_ left
finanalyst I'm working on an issue in Pod::To::HTML and now I'm trying to run the tests using prove -I lib -e ... But Pod::To::HTML is already installed, so the test files seem to be taking use ... from the installed version, not the new one I am debugging. What should be my work flow? 06:31
06:32 ExtraCrispy_ joined, p6bannerbot sets mode: +v ExtraCrispy_ 06:34 regreg__ left
holyghost .tell Zoffix I have blurb.meta in my CPAN package directory so Mathx::Stat and Bayes::Leanr should be indexed. I am not sure the source-urls are correct. 06:51
yoleaux holyghost: I'll pass your message to Zoffix.
buggable New CPAN upload: Perl6-Mathx-Stat-0.1.2.tar.gz by HOLYGHOST cpan.metacpan.org/authors/id/H/HO/...1.2.tar.gz 06:53
New CPAN upload: Perl6-Bayes-Learn-0.1.2.tar.gz by HOLYGHOST cpan.metacpan.org/authors/id/H/HO/...1.2.tar.gz
06:54 HaraldJoerg joined, p6bannerbot sets mode: +v HaraldJoerg 06:56 HaraldJoerg1 left 06:57 cog joined 06:58 p6bannerbot sets mode: +v cog 06:59 regreg__ joined, p6bannerbot sets mode: +v regreg__ 07:03 kurahaupo left 07:04 kurahaupo joined, p6bannerbot sets mode: +v kurahaupo 07:07 ribasushi left, cog left, cog joined 07:08 p6bannerbot sets mode: +v cog 07:11 HaraldJoerg left 07:12 HaraldJoerg joined, p6bannerbot sets mode: +v HaraldJoerg 07:17 ribasushi joined 07:18 p6bannerbot sets mode: +v ribasushi 07:21 cog left 07:35 ribasushi left 07:38 fake_space_whale left 07:39 aindilis joined 07:40 p6bannerbot sets mode: +v aindilis 07:41 dakkar joined, p6bannerbot sets mode: +v dakkar 07:44 casdr left 07:50 ribasushi joined 07:51 p6bannerbot sets mode: +v ribasushi 07:53 lizmat joined, p6bannerbot sets mode: +v lizmat 07:58 Ven` joined 07:59 p6bannerbot sets mode: +v Ven` 08:03 rindolf joined, p6bannerbot sets mode: +v rindolf 08:05 benjikun joined 08:06 p6bannerbot sets mode: +v benjikun 08:10 zakharyas joined 08:11 p6bannerbot sets mode: +v zakharyas, zakharyas left 08:12 zakharyas joined 08:13 p6bannerbot sets mode: +v zakharyas 08:32 sv joined, p6bannerbot sets mode: +v sv 08:34 rindolf left 08:36 kurahaupo left, rindolf joined 08:37 kurahaupo joined, finanalyst left, p6bannerbot sets mode: +v rindolf 08:38 p6bannerbot sets mode: +v kurahaupo 08:40 sv left 08:45 ZzZombo left 08:49 kurahaupo left 08:50 kurahaupo joined 08:51 p6bannerbot sets mode: +v kurahaupo 09:00 pmurias joined, p6bannerbot sets mode: +v pmurias 09:02 ZzZombo joined, p6bannerbot sets mode: +v ZzZombo, pmurias left 09:05 pmurias joined, p6bannerbot sets mode: +v pmurias 09:07 hamhu3 joined 09:08 pmurias left, p6bannerbot sets mode: +v hamhu3 09:11 hamhu3_ left
lizmat clickbaits p6weekly.wordpress.com/2018/10/15/...tom-for-6/ 09:18
robertle is there a way to distribute and look up files that are not perl modules in some consistent fashion? I want to e.g. bundle a .csv file with data with my application and of course access it at runtime. I can of course just put it in a path somewhere but then I can't distribute with zef anymore, and I guess it would make it non-portable to windows or such 09:35
jnthn robertle: Look up %?RESOURCES 09:37
lizmat that's what docs.perl6.org/language/variables#...FRESOURCES was invented for
although that could well need some extra documentation :-(
09:38 jbotz joined
holyghost thx, I would probably need %?RESOURCES for graphics 09:39
I didn't know that
09:39 p6bannerbot sets mode: +v jbotz 09:41 kurahaupo left, kurahaupo joined 09:42 p6bannerbot sets mode: +v kurahaupo 09:47 ZzZombo left 09:49 kurahaupo left, kurahaupo joined 09:50 kurahaupo left, kurahaupo joined 09:51 p6bannerbot sets mode: +v kurahaupo 09:58 nwellnhof joined, p6bannerbot sets mode: +v nwellnhof
nwellnhof p6: $_ = ^4; say .[^2], .[*-2..*]; say .[^2] ~~ .[*-2..*]; 09:59
camelia (0 1)(2 3)
True
nwellnhof p6: $_ = ^4; say .[^2], .[*-2..*]; say .[^2] ~~ .[*-2..3]; 10:00
camelia (0 1)(2 3)
False
nwellnhof p6: $_ = ^4; say .[^2], .[*-2..*]; say .[^2] ~~ .[2..*];
camelia (0 1)(2 3)
False
nwellnhof The result of the first smartmatch looks like a bug. 10:01
tyil can I use a LEAVE block to close DBIish's database handle, but only if the handle was succesfully created? 10:06
also, is LEAVE the best phaser to use for these kinds of tricks to begin with? 10:07
jnthn tyil: Maybe with `LEAVE $dbh.?disconnect`?
nwellnhof p6: $_ = (1, 1); say .[0] == .[1]; say .[0] ~~ .[1]; 10:08
camelia True
False
jnthn tyil: I tend to factor this out into something like a with-db method, so I can say like `self!with-db: -> $dbh { $dbh.do(...) }` and so forth
tyil jnthn: I think `with` should work here too, but I'm not completely sure
.disconnect with $dbh
jnthn tyil: Yeah, that's probably better
tyil I'm not working from within a class in this context, so self! is not available 10:09
nwellnhof p6: my $a = (1, 1); say $a[0] ~~ $a[1]; 10:10
camelia True
tyil I just have a sub, and I thought the code would be nicer if I could just end the sub with $sth.allrows.map(), and make that the implicit return value as well
instead of having to assign that to a var, close/disconnect and then return the var
nwellnhof p6: $_ = (1, 2); say .head ~~ .tail; 10:15
camelia True
nwellnhof my $a = (1, 2); say $a.head ~~ $a.tail;
evalable6 False
nwellnhof p6: my $a = (1, 2); say $a.head ~~ $a.tail;
camelia False
nwellnhof There's something weird going on with smartmatch and the topic variable. 10:16
10:17 domidumont left, cog joined 10:18 p6bannerbot sets mode: +v cog
jnthn Yes, ~~ sets $_ to the result of evaluating the LHS while it evaluates the RHS 10:19
That's why one can do things like $file ~~ .e
tyil: Yeah, sure, can do it as a sub too :) 10:20
nwellnhof I see, thanks for the explanation.
10:23 nwellnhof left, cog left, cog joined 10:24 p6bannerbot sets mode: +v cog 10:29 lizmat left 10:31 lizmat joined, p6bannerbot sets mode: +v lizmat
Zoffix .tell holyghost for source URL just set the URL of your GitHub repo. PAUSE rewrites it to proper CPAN URL and IIRC modules.perl6.org uses the original's GitHub URL to figure out the repo URL 10:34
yoleaux 05:01Z <holyghost> Zoffix: I'll fixify later on, I have to read up
Zoffix: I'll pass your message to holyghost.
06:51Z <holyghost> Zoffix: I have blurb.meta in my CPAN package directory so Mathx::Stat and Bayes::Leanr should be indexed. I am not sure the source-urls are correct.
Zoffix .tell holyghost Your `provides` section is still broken. Looks like you listed all keys as "Mathx::Stat::" without the last portions of the names. Also your modules are still not indexed, possibly because you named your archives with "Perl6-" at the start. Check out App::Mi6 module. It has CPAN uploading functionality and it will build the proper archive for you 10:37
yoleaux Zoffix: I'll pass your message to holyghost.
Zoffix .tell finanalyst give -Ilib to the executable prove runs instead of prove itself: prove -e "perl6 -Ilib" -vr t/ 10:39
yoleaux Zoffix: I'll pass your message to finanalyst.
10:41 Zoffix left, cog left, HaraldJoerg left 10:44 scimon joined 10:45 p6bannerbot sets mode: +v scimon 10:47 HaraldJoerg joined, p6bannerbot sets mode: +v HaraldJoerg 10:48 kurahaupo left, kurahaupo joined 10:49 p6bannerbot sets mode: +v kurahaupo 10:56 araraloren joined
tyil how to denote a sub's return type as being a Positional where each element will be a Str 10:56
10:56 p6bannerbot sets mode: +v araraloren
moritz have you tried --> Postional[Str] 10:59
?
tyil no
moritz m: sub f(--> Positional[Str]) { Array[Str].new('b', 'b' }; f()
camelia 5===SORRY!5=== Error while compiling <tmp>
Unable to parse expression in argument list; couldn't find final ')' (corresponding starter was at line 1)
at <tmp>:1
------> 3itional[Str]) { Array[Str].new('b', 'b' 7⏏5}; f()
moritz m: sub f(--> Positional[Str]) { Array[Str].new('b', 'b') }; f()
camelia ( no output )
moritz m: sub f(--> Positional[Str]) { Array.new('b', 'b') }; f()
camelia Type check failed for return value; expected Positional[Str] but got Array ($["b", "b"])
in sub f at <tmp> line 1
in block <unit> at <tmp> line 1
moritz might or might not be what you want 11:00
tyil hmm
I'm getting that last error in the context that I want to use it 11:01
holyghost .tell Zoffix I don't have access to App:Mi6 because of botcherous SSL, check again if the source-url is correct
yoleaux 10:34Z <Zoffix> holyghost: for source URL just set the URL of your GitHub repo. PAUSE rewrites it to proper CPAN URL and IIRC modules.perl6.org uses the original's GitHub URL to figure out the repo URL
holyghost: I'll pass your message to Zoffix.
10:37Z <Zoffix> holyghost: Your `provides` section is still broken. Looks like you listed all keys as "Mathx::Stat::" without the last portions of the names. Also your modules are still not indexed, possibly because you named your archives with "Perl6-" at the start. Check out App::Mi6 module. It has CPAN uploading functionality and it will build the proper archive for you
holyghost .tell Zoffix I don't need a github repo, because it's broken sometimes to login, so I want clean CPAN usage, it's more perlwise 11:02
yoleaux holyghost: I'll pass your message to Zoffix.
buggable New CPAN upload: Bayes-Learn-0.1.3.tar.gz by HOLYGHOST cpan.metacpan.org/authors/id/H/HO/...1.3.tar.gz 11:03
New CPAN upload: Mathx-Stat-0.1.3.tar.gz by HOLYGHOST cpan.metacpan.org/authors/id/H/HO/...1.3.tar.gz
holyghost .tell Zoffix check again if you please 11:05
yoleaux holyghost: I'll pass your message to Zoffix.
11:07 leont joined 11:08 p6bannerbot sets mode: +v leont 11:09 ZzZombo joined, p6bannerbot sets mode: +v ZzZombo
jkramer gist.github.com/throwaway-30964/39...4b1d873d15 11:15
I'm getting "Cannot assign to an immutable value" for the assignment in line 13, shouldn't that work?
11:17 cog joined 11:18 p6bannerbot sets mode: +v cog 11:20 cog left, cog joined 11:21 abraxxa left
holyghost .tell Zoffix I would really like to update the perl6 CPAN package parser, if you would pass me his URL/email I'd be glad to help, I'd gunzip and parse instead of otherwise 11:21
yoleaux holyghost: I'll pass your message to Zoffix.
11:21 p6bannerbot sets mode: +v cog 11:22 abraxxa joined, p6bannerbot sets mode: +v abraxxa 11:23 zakharyas left 11:26 abraxxa left 11:31 Ven` left 11:32 kensanata joined, p6bannerbot sets mode: +v kensanata
scimon There's no plans to remove the Git Based module system from zef are there? I just think it is a great basis for local modules. Whilst I'm a fan of open source code having company specific modules is a useful thing. If we can have an easy to setup and use DarkPan I'd be happy. 11:37
(Especially if it didn't actually require running a local CPAN. 11:38
11:40 Actualeyes left
buggable New CPAN upload: Bayes-Learn-0.1.4.tar.gz by HOLYGHOST cpan.metacpan.org/authors/id/H/HO/...1.4.tar.gz 11:43
New CPAN upload: Mathx-Stat-0.1.4.tar.gz by HOLYGHOST cpan.metacpan.org/authors/id/H/HO/...1.4.tar.gz
11:46 Ven` joined 11:47 p6bannerbot sets mode: +v Ven` 11:52 kurahaupo left 11:53 kurahaupo joined 11:54 p6bannerbot sets mode: +v kurahaupo 11:56 abraxxa joined 11:57 p6bannerbot sets mode: +v abraxxa, domidumont joined 11:58 p6bannerbot sets mode: +v domidumont
leont Filed yesterday's issue 12:04
12:05 Zoffix joined, p6bannerbot sets mode: +v Zoffix
Zoffix scimon: no, no plans to remove. 12:06
yoleaux 11:01Z <holyghost> Zoffix: I don't have access to App:Mi6 because of botcherous SSL, check again if the source-url is correct
11:02Z <holyghost> Zoffix: I don't need a github repo, because it's broken sometimes to login, so I want clean CPAN usage, it's more perlwise
12:06 regreg__ left
yoleaux 11:05Z <holyghost> Zoffix: check again if you please 12:06
11:21Z <holyghost> Zoffix: I would really like to update the perl6 CPAN package parser, if you would pass me his URL/email I'd be glad to help, I'd gunzip and parse instead of otherwise
Zoffix holyghost: most modern perl packages include a URL to a repo with the source. Makes it easier to report problems
CIAvash jkramer: $_ is bound to an integer(by `for ^10`). so you are assigning something to 0. 12:07
Zoffix holyghost: I don't have contacts for the CPAN package parser, but mst likely knows how to reach them. lizmat might know too
holyghost Zoffix: I'm sorry about the .tell usage you're online now
I used the tarball in both my packages
I am going to write some package source compilers probably, the thing's too stupid 12:08
If only I find the time with my statistics packages
Zoffix holyghost: yeah, I know. So there's a tarball on CPAN and a repo with code somehwere too, usually. So you put repo as source URL and when you upload to CPAN the PAUSE parser changes the source-url to CPAN URL in the meta file it generates. So there are two separate meta files and modules.perl6.org can use the original one to figure out the repo 12:09
holyghost I understand
Zoffix Like here: modules.perl6.org/dist/Bailador:cpan:UFOBAT it's a CPAN package, but there's a "Dist's repo" button that leads to github 12:10
holyghost I only need a doc for modules.perl6.org, I don;t like test as it's open source
s/test/tests
ok 12:11
Zoffix holyghost: oh you mean modules.perl6.org's CPAN handler?
holyghost of docs yes 12:12
Zoffix "of docs"?
Zoffix doesn't understand
12:12 cog left
Zoffix The CPAN handling on mp6.org is here github.com/perl6/modules.perl6.org...#L128-L190 and here github.com/perl6/modules.perl6.org...ce/CPAN.pm 12:13
holyghost There's a html page written to modules.perl6.org for some doc files ?
Zoffix doc files of what?
holyghost I don;t remember
pod maybe
Something said there was HTML output in docs.perl6.org/language/modules#Pr...the_module 12:14
jkramer Is there a nicer way to do for ^10 without assigning the number to $_, other than for ^10 -> $ { ... ? 12:15
Zoffix "The README.md file is a markdown-formatted text file, which will later be automatically rendered as HTML by GitHub."
jkramer: no, but you could use $OUTER::_ inside the loop to reference the outer $_ instead of the one used by the loop
holyghost that's what I was talking about 12:16
Zoffix m: $_ = 'meows'; $OUTER::_.say for ^3
camelia meows
meows
meows
jkramer Hmm that doesn't make it nicer though, I wanted to use $_ for convinience :)
holyghost Zoffix: For general usage we should use a README.txt
nor only github but Windows too 12:17
Zoffix holyghost: right, but that's for p6c GitHub-hosted ecosystem. But if you have README.md in your tarball, the modules.perl6.org will render it too like here: modules.perl6.org/dist/Bailador:cpan:UFOBAT
use markdown and save it in README.md
12:17 lizmat_ joined, p6bannerbot sets mode: +v lizmat_
jkramer do { ... } xx 10 seems to work but not sure if that's better or worse than for ^10 -> $ :) 12:18
holyghost README.html, from README.txt
that's also why I want to hack the parser
README.md can still be in use 12:19
Zoffix Doesn't make sense for me to make README.html from README.txt...
holyghost Zoffix: on the docs server 12:20
12:20 lizmat left
Zoffix .txt signifies it's plain text, not HTML 12:20
m: $_ = 'meows'; .say xx 10
camelia meows
meows
meows
meows
meows
meows
meows
meows
meows
meows
holyghost It's a div probably in HTML
Zoffix jkramer: ^ do {} is often optional
12:20 Zoffix left
holyghost IF anything gets lost we can retain it from an htmldump to text 12:21
Geth doc: 38de31936d | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Language/modules.pod6
Document mp6o renders for CPAN
synopsebot Link: doc.perl6.org/language/modules
CIAvash jkramer: what about something like `while %ng{$last} -> $_` 12:23
12:35 zakharyas joined 12:36 p6bannerbot sets mode: +v zakharyas 12:42 zakharyas left, zakharyas joined
jkramer CIAvash: I don't think that works for inline-while 12:43
12:43 p6bannerbot sets mode: +v zakharyas
CIAvash jkramer: what do you mean by inline? 12:44
jkramer m: .say while (^2).pick -> $_ 12:45
camelia 5===SORRY!5=== Error while compiling <tmp>
Unexpected block in infix position (missing statement control word before the expression?)
at <tmp>:1
------> 3.say while (^2).pick7⏏5 -> $_
expecting any of:
infix
i…
12:49 regreg__ joined 12:50 p6bannerbot sets mode: +v regreg__ 12:52 x[LGWs4x4i]uG2N0 left
tyil trying to use DBIish, I'm getting the following error: DBIish: DBDish::Pg needs 'pq', not found 12:53
zef search pq doesnt yield anything
searching my distro repos doesnt return a match either (substring match that doesnt seem to be related)
moritz tyil: it's probably a system library 12:55
not a perl module
tyil but nothing seems to provide it on my system 12:56
so what is it exactly looking for? the error is very LTA (especially since I would expect it to be a perl module by default)
12:58 sno left
araraloren tyil what is Pg ? 12:59
q
tyil if I knew I wouldn't have to ask, araraloren
araraloren Your system should already have PostgreSQL server installed and running. 13:01
that's what I found
Maybe a command tools of PgSQL 13:02
13:02 sena_kun joined 13:03 p6bannerbot sets mode: +v sena_kun 13:04 ZzZombo_ joined, p6bannerbot sets mode: +v ZzZombo_ 13:05 zakharyas left, zakharyas joined 13:06 p6bannerbot sets mode: +v zakharyas 13:07 ZzZombo left, ZzZombo_ is now known as ZzZombo
CIAvash jkramer: then try `while $_ := %ng{$last}` 13:08
jkramer CIAvash: That works, thanks! 13:10
13:11 sno joined, p6bannerbot sets mode: +v sno 13:13 Ven` left
AlexDaniel holyghost: perl6-compiler is a wrong mailing list :) 13:13
perl6.org/archive/lists/ 13:14
maybe perl6-users is a better choice? Not sure 13:15
13:16 Ven` joined
holyghost I cannot get onto perl6-users because of majrodomo 13:16
s/majrodomo/majordomo
13:17 p6bannerbot sets mode: +v Ven`
holyghost Larry told me to put it on perl6-compiler 13:17
13:19 Merfont joined, p6bannerbot sets mode: +v Merfont 13:20 Kaypie left, sno left
holyghost He told me that perl-users is less for packages but for perl6 blurb usage 13:20
13:21 sno joined
holyghost I hope that's ok 13:21
13:21 p6bannerbot sets mode: +v sno
masak I know I don't blog so often these days :/ 13:24
but I just found this, that I wrote a while ago: github.com/masak/007/issues/345
I would say if it weren't an issue on github, it could've been a blog post :)
13:30 vrurg joined 13:31 p6bannerbot sets mode: +v vrurg
tyil araraloren: but I dont want to run a server just so I can run a client, that'd be silly 13:43
13:46 sno left 13:50 buggable left, buggable joined, ChanServ sets mode: +v buggable 13:55 cog joined 13:56 p6bannerbot sets mode: +v cog 14:05 zakharyas left, zakharyas joined 14:06 p6bannerbot sets mode: +v zakharyas
holyghost My only concern is that you could use Bayesian Inference for conditional compilatin in MoarVM 14:13
So you could generate several parsing techniques
I might write a C file for it and post it 14:14
It'd be an option for the perl6 command line
-opt:bayes
It's more difficult than it sounds. My Bayesian Inference C file should become refactored for such things 14:17
inference == pulsing
14:18 sno joined, p6bannerbot sets mode: +v sno 14:24 cog left
buggable New CPAN upload: Sparrowdo-Cordova-OSx-Build-0.0.7.tar.gz by MELEZHIK modules.perl6.org/dist/Sparrowdo::C...n:MELEZHIK 14:30
14:43 xinming_ left 14:50 fake_space_whale joined 14:51 p6bannerbot sets mode: +v fake_space_whale 14:52 curan left 14:54 curan joined, p6bannerbot sets mode: +v curan, curan left 15:01 domidumont left, AlexDaniel left 15:02 AlexDaniel joined 15:03 p6bannerbot sets mode: +v AlexDaniel 15:05 zakharyas left
scimon Zoffix: Good to know. I may get round to writing an article on managing a Perl6 DrakPAN. (In a couple of weeks, after the wedding). 15:05
15:06 zakharyas joined 15:07 p6bannerbot sets mode: +v zakharyas 15:17 abraxxa left 15:19 AlexDaniel left 15:21 AlexDaniel joined 15:22 p6bannerbot sets mode: +v AlexDaniel 15:25 xinming joined 15:26 p6bannerbot sets mode: +v xinming 15:35 pmurias joined, p6bannerbot sets mode: +v pmurias 15:36 abraxxa joined 15:37 p6bannerbot sets mode: +v abraxxa 15:44 kensanata left, troys joined 15:45 p6bannerbot sets mode: +v troys 15:46 x[LGWs4x4i]uG2N0 joined 15:47 p6bannerbot sets mode: +v x[LGWs4x4i]uG2N0 16:05 zakharyas left 16:06 fake_space_whale left 16:07 Merfont left 16:08 Kaiepi joined 16:09 cog joined, p6bannerbot sets mode: +v Kaiepi, p6bannerbot sets mode: +v cog, Kaiepi left 16:10 Kaiepi joined 16:11 p6bannerbot sets mode: +v Kaiepi 16:13 Kaiepi left 16:14 Kaiepi joined
El_Che scimon: will it work for github modules? 16:14
16:15 p6bannerbot sets mode: +v Kaiepi, araraloren left 16:18 Ven` left
scimon El_Che: Should do. My plan is to document what you need to do to run your own local github/gitlab based set of packages. 16:32
16:32 scimon left 16:33 robertle left 16:35 uzl joined 16:36 p6bannerbot sets mode: +v uzl 16:37 dakkar left
uzl Hello, #perl6! 16:38
yoleaux 11 Oct 2018 06:33Z <jmerelo> uzl: received, thanks!
16:38 zakharyas joined 16:39 p6bannerbot sets mode: +v zakharyas
uzl p6weekly mentioned a new intro page for perl6.org but it seems it's back to normal. anybody knows what happened? 16:40
16:43 ryn1x joined
AlexDaniel uzl: github.com/perl6/doc/commit/13739c...77948fc77f 16:43
16:44 p6bannerbot sets mode: +v ryn1x
AlexDaniel .tell jmerelo is there a ticket for rerevert of the commit that was reverted in D#2374 ? 16:44
yoleaux AlexDaniel: I'll pass your message to jmerelo.
synopsebot D#2374 [closed]: github.com/perl6/doc/issues/2374 [bug][site] Most search results point to pages that do not exist
uzl AlexDaniel: Oh, I see. Thanks!
16:45 kurahaupo left
AlexDaniel .tell I got to know about it in colabti.org/irclogger/irclogger_log...10-16#l581 and was somewhat surprised 16:45
yoleaux AlexDaniel: I'll pass your message to I.
16:46 lizmat_ left, kurahaupo joined 16:47 p6bannerbot sets mode: +v kurahaupo, cog left, lizmat joined, p6bannerbot sets mode: +v lizmat, domidumont joined 16:48 cog joined
ryn1x Does rakudo with the JVM backend output class files? 16:48
16:48 p6bannerbot sets mode: +v domidumont, p6bannerbot sets mode: +v cog 16:52 lizmat left 16:53 domidumont left 16:54 zakharyas left 16:57 ryn1x left, ryn1x_ joined 16:58 p6bannerbot sets mode: +v ryn1x_
AlexDaniel ooooooooh 17:05
17:05 ryn1x_ left
AlexDaniel (#perl6-dev) 17:08
17:18 lizmat joined, p6bannerbot sets mode: +v lizmat 17:21 domidumont joined 17:22 p6bannerbot sets mode: +v domidumont 17:25 zxcvz joined, pecastro joined 17:26 p6bannerbot sets mode: +v zxcvz, p6bannerbot sets mode: +v pecastro 17:30 AlexDaniel is now known as I`, I` is now known as AlexDaniel
AlexDaniel .tell jmerelo I got to know about it in colabti.org/irclogger/irclogger_log...10-16#l581 and was somewhat surprised 17:30
yoleaux AlexDaniel: I'll pass your message to jmerelo.
17:38 AlexDaniel left, AlexDaniel joined 17:39 p6bannerbot sets mode: +v AlexDaniel 17:40 AlexDaniel left, AlexDaniel joined 17:41 AlexDaniel left, AlexDaniel joined 17:42 p6bannerbot sets mode: +v AlexDaniel 17:44 noganex_ left, noganex joined 17:45 p6bannerbot sets mode: +v noganex 17:47 lizmat_ joined, p6bannerbot sets mode: +v lizmat_ 17:50 lizmat left 18:01 random_yanek left 18:02 cog left
Geth doc: e276c76e2b | (JJ Merelo)++ | META6.json
Eliminates tabs
18:06
18:09 random_yanek joined 18:10 p6bannerbot sets mode: +v random_yanek
Geth doc: 28ffef7fda | (JJ Merelo)++ | util/travis-build.sh
Forces installation of IO::Socket::SSL
18:12
18:16 ryn1x_ joined 18:17 p6bannerbot sets mode: +v ryn1x_, Kaiepi left
leont wonders why that «--/tap-harness» is necessary, that suggests dealing with invalid TAP 18:17
18:17 diakopter left 18:19 Kaiepi joined, p6bannerbot sets mode: +v Kaiepi 18:30 domidumont left 18:31 noganex_ joined 18:32 p6bannerbot sets mode: +v noganex_ 18:35 noganex left 18:36 uzl left, uzl joined
Geth doc: bce2cc8798 | (JJ Merelo)++ | doc/Language/glossary.pod6
Eliminates outdated list of bots

And points to a single source of truth in the community page. Closes #2380.
18:37
synopsebot Link: doc.perl6.org/language/glossary
18:37 ryn1x_ left, p6bannerbot sets mode: +v uzl, ryn1x_ joined 18:38 ryn1x_ is now known as ryn1x, p6bannerbot sets mode: +v ryn1x
Xliff m: say 1024 * 12 18:53
camelia 12288
18:56 ryn1x left 19:04 patrickb joined 19:05 p6bannerbot sets mode: +v patrickb 19:12 isBEKaml joined, p6bannerbot sets mode: +v isBEKaml
isBEKaml voice? Is everyone voiced now? 19:13
Ohhai!
leont Anti-spambot measure 19:16
isBEKaml 11,99leont99,99: Ah, okay 19:17
19:17 isBEKaml left 19:18 isBEKaml joined, p6bannerbot sets mode: +v isBEKaml 19:24 cognominal-p6 joined 19:25 p6bannerbot sets mode: +v cognominal-p6 19:32 cognominal-p6 left, cognominal-p6 joined 19:33 p6bannerbot sets mode: +v cognominal-p6 19:34 lizmat_ is now known as lizmat 19:35 yqt joined 19:36 p6bannerbot sets mode: +v yqt 19:51 uzl left 19:56 sauvin left 19:57 sauvin joined, p6bannerbot sets mode: +v sauvin 20:10 sauvin left 20:14 sauvin joined, p6bannerbot sets mode: +v sauvin 20:25 patrickb left 20:31 zxcvz left 20:32 mattp_ left 20:33 rhizon8r_ left 20:34 rhizon8r joined
Xliff jnthn? 20:34
20:34 p6bannerbot sets mode: +v rhizon8r 20:35 mattp_ joined, p6bannerbot sets mode: +v mattp_ 20:38 dct joined, p6bannerbot sets mode: +v dct
jnthn Xliff: o/ 20:40
20:40 mattp_ left 20:42 isBEKaml left
Geth doc: MorayJ++ created pull request #2386:
Concurrency
20:45
20:51 isBEKaml joined, p6bannerbot sets mode: +v isBEKaml, alpha joined 20:52 p6bannerbot sets mode: +v alpha, mattp_ joined 20:53 p6bannerbot sets mode: +v mattp_
Xliff .tell jnthn I did manage to get signals straightened out in a generic way. Use of Supplies has been preserved, but it's still kinda hackish. See: github.com/Xliff/p6-GtkPlus/commit...e7db5c0b45 20:56
yoleaux Xliff: I'll pass your message to jnthn.
Xliff Doh!
That took me a long time to write.
jnthn: \o 20:57
20:59 mattp_ left
jnthn Xliff: Left a couple of thoughts on the commit 21:03
yoleaux 20:56Z <Xliff> jnthn: I did manage to get signals straightened out in a generic way. Use of Supplies has been preserved, but it's still kinda hackish. See: github.com/Xliff/p6-GtkPlus/commit...e7db5c0b45
Xliff jnthn: Thanks!
21:11 sena_kun left
Xliff jnthn: One issue I've been wondering about is how to make it so I don't have to have separate signal hashes for each object type. 21:11
I thought it would work well enough to have a %!signals, and have every descendant use that, however if an attribute is not defined in a role, it isn't useable, even by descendants. 21:12
Is there a way to accomplish that in Perl6?
IE - Have an attribute in one role be used by another (or at least the equivalent behavior). 21:13
jnthn Xliff: Can probably workaround it by writing a private method to get hold of the attribute 21:16
21:18 pmurias left 21:20 isBEKaml left 21:22 dct left
Xliff m: role A { has $!a; }; role B does A { method b { say $!a; }; }; my $b = 1 but B; say $b.b 21:26
camelia 5===SORRY!5=== Error while compiling <tmp>
Attribute $!a not declared in role B
at <tmp>:1
------> 3role B does A { method b { say $!a; }; }7⏏5; my $b = 1 but B; say $b.b
expecting any of:
horizontal whitespace
Xliff m: role A { has $!a; method a { $!a }; }; role B does A { method b { say self.a; }; }; my $b = 1 but B; say $b.b 21:27
camelia (Any)
True
Xliff m: role A { has $!a = 2; method a { $!a }; }; role B does A { method b { say self.a; }; }; my $b = 1 but B; say $b.b
camelia 2
True
Xliff m: role A { has $.a is rw = 2; method a { $!a }; }; role B does A { method b { say self.a; }; }; my $b = 1 but B; say $b.b 21:28
camelia 2
True
Xliff m: role A { has $.a is rw = 2; method a { $!a }; }; role B does A { method b { say self.a; }; }; my $b = 1 but B; say $b.b; $b.a = 3; $b.a.say
camelia 2
Cannot modify an immutable Int (2)
in block <unit> at <tmp> line 1

True
Xliff m: role A { has $.a is rw = 2; method a is rw { $!a }; }; role B does A { method b { say self.a; }; }; my $b = 1 but B; say $b.b; $b.a = 3; $b.a.say
camelia 2
True
3
21:29
Xliff Yeah. I should have thought of that.
Geth doc/master: 10 commits pushed by MorayJ++, timo++
review: github.com/perl6/doc/compare/bce2c...b93ca9c1ab
21:48
21:58 yqt left 21:59 hamhu3 left 22:00 isBEKaml joined, p6bannerbot sets mode: +v isBEKaml 22:08 pecastro left 22:15 HaraldJoerg left 22:16 fake_space_whale joined 22:17 p6bannerbot sets mode: +v fake_space_whale 22:32 ExtraCrispy_ left 22:45 mempko left
buggable New CPAN upload: Cro-H-0.0.1.tar.gz by GARLANDG cpan.metacpan.org/authors/id/G/GA/...0.1.tar.gz 22:50
23:13 isBEKaml left 23:15 yqt joined 23:16 p6bannerbot sets mode: +v yqt 23:30 yqt left 23:38 MasterDuke joined, p6bannerbot sets mode: +v MasterDuke 23:39 MasterDuke left, MasterDuke joined, herbert.freenode.net sets mode: +v MasterDuke, p6bannerbot sets mode: +v MasterDuke 23:41 atweiden-air joined, p6bannerbot sets mode: +v atweiden-air 23:46 leont left
buggable New CPAN upload: Cro-H-0.0.2.tar.gz by GARLANDG modules.perl6.org/dist/Cro::H:cpan:GARLANDG 23:50