»ö« 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.
Geth ecosystem: 4ca1381fc7 | (Jack Kuan)++ (committed using GitHub Web editor) | META.list
Update META6.json

  - [X] I **agree** to the usage of the META file as listed [here](github.com/perl6/ecosystem#legal).
  - [X] I have a license field listed in my META file that is one of spdx.org/licenses
   - [ ] My license is not one of those found on spdx.org but I **do** have a license field.
   In this case make sure you have a license URL listed under support. [See this example](github.com/samcv/URL-Find/blob/mas...TA6.json).
   - [ ] I **don't** have a license field. Yes, I understand this is **not recommended**.
06:09
ecosystem: 1cfd144fba | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | META.list
Merge pull request #463 from kjkuan/patch-1

Update META6.json It's all good now. Thanks!
jmerelo releasable6: status 06:29
releasable6 jmerelo, Next release will happen when it's ready. R6 is down. At least 1 blocker. 345 out of 667 commits logged 06:29
jmerelo, Details: gist.github.com/ab4b28c08b5ad09e3e...1ea3450286
jmerelo squashable6: status 06:31
squashable6 jmerelo, ⚠🍕 Next SQUASHathon in 1 day and ≈21 hours (2019-07-06 UTC-14⌁UTC+20). See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
jmerelo So close!
El_Che www.theregister.co.uk/2019/07/02/i...ing_error/ 06:49
This major internet routing blunder took A WEEK to fix. Why so long? It was IPv6 – and no one really noticed
it looks like everything with "6" is doomed
El_Che ducks
:)
Geth doc: fd229dcef0 | (JJ Merelo)++ | doc/Type/Any.pod6
Any.first edited, with some explanations added. Closes #2877
06:56
synopsebot Link: doc.perl6.org/type/Any
antoniog1miz what this file does? => github.com/perl6/doc/blob/master/h...robots.txt 07:32
what does this file do? omg my english sometimes xd 07:33
El_Che antoniog1miz: it tells search crowlers what not to index 07:34
moritz not relevant anymore 07:35
we used to store build logs for docs.perl6.org on that site itself, but that isn't the case right now
antoniog1miz so it could be deleted?
moritz yes 07:36
jmerelo antoniog1miz: please open an issue and link this as context when you do. 07:38
Geth doc: 7d938ee9c1 | Antonio++ (committed using GitHub Web editor) | html/robots.txt
Delete robots.txt, fix #2880
07:39
antoniog1miz jmerelo: I know from past times :)
I'll link the context
Geth ¦ perl6.org: rba self-assigned design.perl6.org and links to it are broken github.com/perl6/perl6.org/issues/131 08:19
¦ perl6.org: rba assigned to maettu Issue design.perl6.org and links to it are broken github.com/perl6/perl6.org/issues/131
antoniog2miz mmm why this line => my $type-selected = slurp "./t/html/type-selected-header.html"; 08:57
gives the following error => ===SORRY!===
No such method 'slurp' for invocant of type 'Slip'
oh sorry, ignore it 08:58
kawaii Is there some reason why this method seems to be returning a Seq instead of an array? 09:34
www.irccloud.com/pastebin/Zu4qv4xt/ 09:35
www.irccloud.com/pastebin/oQyRiByj/
jnthn What does the fetch-messages Promise resolve to? 09:46
Maybe you wanted .append instead of .push? 09:47
kawaii ooo let me try that
jmerelo antoniog2miz: I can't see why. Why? 09:48
kawaii jnthn: hey I think you're on to something, the output is now (seq) (seq) (message) 🤔 09:49
antoniog2miz I left a wild line around, dont worry
jmerelo ah, OK
kawaii (seq) (message) (message), sorry 09:49
Geth doc: bbe8626feb | (JJ Merelo)++ | doc/Type/Any.pod6
Wraps refs #2877
10:20
synopsebot Link: doc.perl6.org/type/Any
jmerelo .tell AlexDaniel did you get ready the Math::Sequences repo for the hackathon? 10:38
yoleaux jmerelo: I'll pass your message to AlexDaniel.
jmerelo I have merged data for the two surveys extracting the common columns and adding a column with the year (although that can be extracted from the Timestamp, actually) github.com/perl6/p6survey/blob/mas...8-2019.csv 11:42
I tried in Perl 6, but Text::CSV refused to install. I tried Perl, but it was all a nuisance attempting to keep a map of column positions and all that. Eventually, it was like 10 lines of R 11:43
kawaii blasphemy :) 11:45
jmerelo kawaii: riiight. But I at least filed a bug report: github.com/Tux/CSV/issues 11:48
sena_kun just installed Text::CSV fine 11:49
jmerelo kawaii: with Perl 5, it's likely that I forgot everything.
sena_kun: I don't know. These might be flappers: github.com/Tux/CSV/issues/16 11:50
kawaii was also just able to install Text::CSV 🤔 11:51
sena_kun jmerelo, it seems like they are comparing hashes not by values, but by structure too, and it was broken with hash randomization
so might be broken tests, but not a broken code
jmerelo sena_kun: but I seem to remember that was fixed. Maybe there was no new release after fixing it.
sena_kun dunno
jmerelo sena_kun: I'm trying to install now from source... 11:53
kawaii iirc perl 6 has some new cool syntax you can use for checking if a number lies within a range
but `if @messages.elems == 2 < @messages.elems < 100 { say "yes"; }`
maybe that is not right
tadzik just `if 2 < @messages.elems < 100 {` should be enough
kawaii ugh, yes that's it! 11:54
tadzik++
timotimo or @messages.elems ~~ 2^..^100
kawaii oh no now I have options!
jmerelo sena_kun: right, source works. But it's not been released.
jmerelo sena_kun: done a PR bumping up version github.com/Tux/CSV/pull/17 11:56
sena_kun it is odd that with the same code `zef install` worked for me and didn't for you. :/ 11:58
jmerelo sena_kun: zef install . worked. zef install Text::CSV didn't 12:02
sena_kun well, I did `zef install Text::CSV`, which is that I see odd
jmerelo sena_kun: now that's odd
sena_kun and as far as I know, version bump helps zef to know there is a newer version, but for the first time it installs from latest git commit 12:03
jmerelo sena_kun: only if it's in the ecosystem. This one is in CPAN
sena_kun: oh, no, it's not. It's in both places. Now that's odd... 12:04
sena_kun I'd still bet that tests are broken, but can't investigate into it now
jmerelo sena_kun: tests in CPAN are broken. Tests in p6c are not. You got the latter, I got the former. 12:05
sena_kun: apparently the problem is that if the module is in both places it does not return the same version for everyone. 12:06
sena_kun yes, then this is the problem
timotimo jmerelo: tux is asking for you over in #perl6-dev
jmerelo timotimo: got it, thanks! 12:18
xinming_ is | op infront of a list build a Slip? 12:25
m: sub t (*@a, *%h) { [@a, %h].perl.say;}; t((:x).Slip, :c); t(|(:x), :c) 12:26
camelia [[:x], {:c}]
[[], {:c, :x}]
xinming_ If so, Why do they behave differently?
Now, I'm trying to udnerstand more about Capture thing
timotimo putting | in front of a thing in passing parameters is syntax for actually slipping the parameters into either positionals or named slots or both 12:28
antoniog1miz I really like the way named arguments and MAIN works :,) 12:57
antoniog1miz If I declare a variable with 'my' in a module. that variable is available for the exported functions? 13:51
should I use instead? 13:52
should I use 'our' instead?
ugexe m: my $bar is export; 13:53
camelia 5===SORRY!5=== Error while compiling <tmp>
Can't apply trait 'is export' on a my scoped variable. Only our scoped variables are supported.
at <tmp>:1
------> 3my $bar is export7⏏5;
expecting any of:
constraint
ugexe there is your answer 13:54
antoniog1miz but with our I have the same problem, for instance: I declare our $var = slurp "something"
and if I use the module from another file $var is not initialized 13:55
ugexe m: our $bar is export = 42;
camelia ( no output )
ugexe m: package Foo { our $foo is export = 42; }; import Foo; say $foo 13:56
camelia 42
antoniog1miz so should I use package? 13:57
ugexe no, i was using package { } for the same of a 1 liner 13:57
s/same/sake/
antoniog1miz though I dont really want to export the variable, what I want is to initialize a variable that will be used by the functions of the module 13:58
ugexe then `my $foo = ...` should be fine
antoniog1miz ant the problem is that if I execute the module that var is initialized, but not if I use the module from other file
mmm then something weird is happening with my module x,D
ugexe i think you are just failing to describe your problem in enough detail. i doubt anything weird is happening. 13:59
can you perhaps make a small example?
antoniog1miz i'm on it 14:02
gist.github.com/antoniogamiz/5e3a9...4506853f3f 14:03
if I execute perl6 example.pm6, I get => "template/head.html
moritz you might want to try to initialize it with an INIT phaser
antoniog1miz if I execute another-file.p6 I get => () 14:04
moritz: mmmm
moritz though I'm not too familiar with how %?RESOURCES are set up
antoniog1miz resources is set up by zef 14:05
ugexe %?RESOURCES is just empty for your module 14:07
ugexe but its still truethy 14:07
moritz m: my %h; say ?%h 14:08
camelia False
antoniog2miz ugexe: oh
moritz is that (htat it's still truthy) particular to %?RESOURCES?
ugexe well, %?RESOURCES isn't actually a hash
its an object
moritz ah, sure
antoniog2miz mmm
then how should I initialize that variables? 14:09
ugexe I dont see why you need the conditional
antoniog2miz s/variables/variable
If I use || or // does not work neither
moritz %?RESOURCES<template/head.html> // 'template/head.html'
ugexe ^
antoniog2miz that returns an empty list 14:10
ugexe although you *probably* want `"template/head.html".IO.e ?? "template/head.html" !! %?RESOURCES<template/head.html>`
ugexe which allows your user to override the default in %?RESOURCES 14:10
antoniog2miz uoh, that works 14:11
ugexe: thanks a lot
moritz: and thanks to you too! :D
ugexe github.com/ugexe/zef/blob/master/l...m6#L21-L32 -- this is how zef does it 14:12
AlexDaniel .tell jmerelo what's up with the squashathon, btw? Any guide or how-to-start document? 14:40
yoleaux AlexDaniel: I'll pass your message to jmerelo.
10:38Z <jmerelo> AlexDaniel: did you get ready the Math::Sequences repo for the hackathon?
AlexDaniel hmmmmmmmmmmmmmm 14:40
I thought someone else will do it!!
:D
domidumont AlexDaniel: At Debian, we don't use github.com/perl6/os-build. Files for Debian package are hosted on Debian's gitlab instance (See salsa.debian.org/perl6-team ) 14:59
El_Che releasable6: status 15:04
releasable6 El_Che, Next release will happen when it's ready. R6 is down. At least 1 blocker. 345 out of 667 commits logged
AlexDaniel domidumont: ok, good, thanks
releasable6 El_Che, Details: gist.github.com/05c499a912a8fe5311...6cddd2cf70
AlexDaniel El_Che: there's a release branch in nqp and rakudo 15:05
El_Che: the release will be called 2019.07 I guess, cuz that's less confusing
El_Che: but as soon as moarvm 2019.07 is out and some minor details are figured out (like where to upload the damn thing) it'll be out, I'm hoping in like a day or two 15:06
El_Che AlexDaniel: thx for the info. So the way forward is checking out the 3 repos with the respective tag? 15:19
AlexDaniel El_Che: I'll upload a .tar.gz somewhere here I think: github.com/rakudo/rakudo/tags
we'll see how it goes 15:20
AlexDaniel El_Che: so it will be github.com/rakudo/rakudo/releases/....07.tar.gz and github.com/rakudo/rakudo/releases/...019.07.asc 15:21
I think
sorry github.com/rakudo/rakudo/releases/...tar.gz.asc
El_Che (as not knowing where to uplod stuff suggest the tar.gz way is doomed) 15:22
AlexDaniel haha, well
jmerelo Hey
yoleaux 14:40Z <AlexDaniel> jmerelo: what's up with the squashathon, btw? Any guide or how-to-start document?
AlexDaniel El_Che: alternatively just `git checkout` the appropriate tag, yeah, and check that the tag is signed by…
by… me? I guess?
jmerelo AlexDaniel: There was the blog entry by the distribution author. I don't think we need much more that that. It's linked form the squashathon page. 15:23
AlexDaniel I don't know
:)
jmerelo: a-ha, I see
jmerelo: that's pretty good actually 15:25
El_Che AlexDaniel: are github tags signed? 15:40
haven't seen it yet 15:41
AlexDaniel El_Che: both commits and tags should be signed 15:43
El_Che: git show --show-signature 2019.03.1
I think?
AlexDaniel El_Che: I'm a bit confused though. There's a signature for the commit and for the tag, and they can be different, right? 15:45
depends on whether it's a lightweight tag or not
we do use annotated tags though
jmerelo AlexDaniel: they're different objects in git, so they can be different. 15:47
jmerelo squashable6: status 17:50
squashable6 jmerelo, ⚠🍕 Next SQUASHathon in 1 day and ≈10 hours (2019-07-06 UTC-14⌁UTC+20). See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
jmerelo Squashathon is coming!
lembark Q: Why do state variables behave differently in sub's & multis? 17:53
trying to save state of a first-pass variable as "state %first = %sample;" works fine in a sub; fails with the only change being a multi. 17:54
Kaiepi m: proto sub foo { state $foo = 1; {*} }; multi sub foo { say $foo }; foo 17:57
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable '$foo' is not declared. Did you mean '&foo'?
at <tmp>:1
------> 3te $foo = 1; {*} }; multi sub foo { say 7⏏5$foo }; foo
tobs m: multi f (%sample) { say state %first = %sample } ; f %(a => 10); f %(a => 11); f %(a => 12)
Kaiepi damn
camelia {a => 10}
{a => 10}
{a => 10}
tobs lembark: it seems to work in this tiny scenario
ugexe Kaiepi: i'd be way more worried if that *did* work 17:59
m: proto sub foo { my $*foo = 1; {*} }; multi sub foo { say $*foo }; foo # this is how to do what you were doing
camelia 1
Kaiepi oh right 18:00
ugexe m: proto sub foo { state $*foo = $*foo + 1; {*} }; multi sub foo { say $*foo }; foo; foo 18:01
camelia Use of uninitialized value of type Any in numeric context
1
1
in sub foo at <tmp> line 1
lembark Q: Why do state variables behave differently in sub's & multis? Checking multi sub doc it doesn't mention state vars.
ugexe because they dont
you need to show an example as requested earlier
lembark Uploaded file: uploads.kiwiirc.com/files/57bd236f...pasted.txt 18:02
Uploaded file: uploads.kiwiirc.com/files/01f89cee...pasted.txt
Uploaded file: uploads.kiwiirc.com/files/8115c4cf...pasted.txt 18:03
ugexe those dont compile
lembark Uploaded file: uploads.kiwiirc.com/files/6c307ce1...pasted.txt
Replacing the 'sub' with a 'multi' leads to different output. 18:04
ugexe the code you posted cannot be run by anyone here
lembark Q: Is this somthing obvious in the syntax that I'm missing (as illustrated by the code as shown)? 18:05
If not then I have to write and test a working example that is shorter than the module I'm working on.
ugexe if i had to guess off just what I can see (since it cannot be run) i'd guess the `samewith extract-stats(), |%args` creates a new closure clone. state only holds its state per closure clone. 18:06
but if you make a shorter example you'll learn how state works along the way
lembark Please note that the section having samewith is commented out in the example. 18:07
ugexe well, this is a good reason to include a working example. i dont know what the hell im supposed to be considering
s/working/compilable/
lembark Q: Where are the closure clones described w/ state?
docs.perl6.org/syntax/state was where I started. 18:09
ugexe docs.perl6.org/language/traps#Usin...once_block
once { } is essentially state $
Kaiepi is "an once block" grammatically correct? 18:10
tadzik I'd go for "a once block" 18:11
timotimo once a block, always a block
tadzik :>
ugexe Kaiepi: no 18:12
someone misapplied the old "always use 'an' before word starting with vowel"
antoniog2miz everyone: what do you think of this => github.com/perl6/doc/issues/2499 18:13
someone is using disambiguation functionality?
moritz does 18:13
antoniog2miz moritz: I know you do haha
antoniog2miz but it takes a big time to complete and if you are the only one who uses it... 18:14
lembark Wonderful thing about English: There are no complete rules for it :-)
moritz antoniog2miz: am I the only one? Or just the only vocal one?
ugexe lol, it was changed from a to an with the justification "Grammar correction" 18:15
Geth doc: b7b942290b | (Ben Davies)++ | doc/Language/traps.pod6
Using an once block -> Using a once block
synopsebot Link: doc.perl6.org/language/traps
ugexe This is why its always good to get peer review on things 18:16
antoniog2miz moritz: Idk, should we leave it then? or make a kind of "votation"? 18:17
ugexe I wouldnt mind if we required at least 1 peer reviewer to sign off on any change
moritz antoniog2miz: I wouldn't mind if we had some kind of alternative, where I could link to something a search, for example
antoniog2miz mmm can you go a little further in the explanation of the alternative? 18:18
moritz my use case is "give me all meanings of the +", and I want to able to give other people a link to that 18:19
with google, I can link to google.com/?q=mysearchterm 18:20
I can't with perl6.org, to the best of my knowledge
hence the disambiguation files are the next best thing
antoniog2miz mmm I see 18:21
moritz telling people "go to docs.perl6.org/, enter "+" in the search box, and see a list of possible matches in a tiny part of your browser window" simply doesn't cut it, if you ask me 18:21
lembark Q: Where is the difference in context between a multi sub & regular sub described (e.g., what is it about declaring the multi that changes the scope of state variables to be in a deeper lexical scope)? 18:22
ugexe change the landing page to just be a search bar
antoniog2miz moritz: yep, I think so too
antoniog2miz mmm I will link this conversation to the issue to close or see what jmerelo thinks 18:23
ugexe lembark: again, there is no difference. if you are using callwith/samewith/whatever then that is your problem 18:25
m: multi sub foo(|c) { callwith(|c) }; multi sub foo { state $x; $x += 1; $x }; say foo(); say foo()
camelia 1
2
lembark I'm not using samewith. 18:26
Sorry, bad paste.
ugexe i think you'll need to come up with a better example then
m: multi sub foo { state $x; $x += 1; $x }; say foo(); say foo() 18:27
camelia 1
2
lembark failing code replaces one 'sub' with a single 'multi with a state var at the outermost level in the block: 18:28
Uploaded file: uploads.kiwiirc.com/files/4b87efa0...pasted.txt
Calling it via: 18:29
Uploaded file: uploads.kiwiirc.com/files/e497df3f...pasted.txt
yields:
Uploaded file: uploads.kiwiirc.com/files/f2b9ad4c...pasted.txt
Replacing 'sub' wit 'multi' leaves me with:
lembark Uploaded file: uploads.kiwiirc.com/files/67abcd03...pasted.txt 18:30
ugexe that cant be right. the return type constraint will fail because its returning a pair
not a hash
lembark Why would that affect storage of the state var?
If you prefer: 18:31
Uploaded file: uploads.kiwiirc.com/files/baf22fb0...pasted.txt
ugexe when someone gives me a piece of example code im going to assume all the errors it spews are relevant. if they are not then they should not be in the example
lembark The question is why would sub foo() { state $bar = 1 ; } behave differently for $bar than multi foo() { state $bar = 1 }; 18:32
If the issue is closure conext fine, where can I look to find out how the closure context is defined and how it affects the state vars? 18:33
ugexe well, "Calling it via:" code calls a function that doesn't exist in the example 18:33
bbl
rfold I'm trying to build nqp 2019.03 but I get an error: "New type QAST::Var+{QAST::SpecialArg} for QAST::Var is not a mixin type" anyone seen this before? 20:35
timotimo that's odd; is your moarvm version also 2019.03 or maybe newer? 20:37
rfold MoarVM 2019.05.
Should I try MoarVM 2019.03? 20:38
timotimo yes, please give that a try
there was a change that only things that were specifically marked were allowed to be mixed into things, i assume that change happened after 2019.03 20:39
so nqp 2019.03 doesn't do it, but moarvm 2019.05 requires it to be done
rfold Alright, building 2019.03.
rfold Thanks, it compiles now. :) 20:43
rfold I really like that I can use „Dutch quotation marks” for string literals. 21:10
It looks really nice especially with a proportional font. 21:12
lizmat weekly: blogs.perl.org/users/damian_conway/...mpler.html 21:38
notable6 lizmat, Noted!
Geth ecosystem: 61d64a43ea | Altai-man++ (committed using GitHub Web editor) | META.list
Remove now unnecessary ASN::META plugin

It was refactored out to be redundant. The module was a part of a very early, experimental stage of ASN::META module, so those who had it installed likely knew what they were doing at that time.
22:44