»ö« 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.
Kaiepi releasable6, status 00:06
releasable6 Kaiepi, Next release in ≈12 days and ≈18 hours. 1 blocker. 140 out of 576 commits logged (⚠ 2 warnings)
Kaiepi, Details: gist.github.com/c2ec86ca9abab0491b...2bff7c41e4
Xliff m: say (1, 2, 3) eqv (4, 5, 6) 07:22
camelia False
Xliff m: say (1, 2, 3) eqv (1, 2, 3)
camelia True
cpan-p6 New module released to CPAN! Gnome::Gtk3 (0.14.0) by 03MARTIMM 08:37
New module released to CPAN! Gnome::Gdk3 (0.14.0) by 03MARTIMM
Geth doc: 69ea20eca8 | (JJ Merelo)++ | doc/Type/Backtrace.pod6
Rephrasing and reflow
09:05
synopsebot Link: doc.perl6.org/type/Backtrace
Geth doc: e24ef2bc45 | (JJ Merelo)++ | 2 files
Fixes #1773 and adds clarification
09:20
lizmat weekly: medium.com/@jcoterhals/perl-6-smal...3a69faabda 09:24
notable6 lizmat, Noted!
Geth doc: c076657900 | (JJ Merelo)++ | doc/Type/Exception.pod6
Adds clarification fixes #1770
09:31
synopsebot Link: doc.perl6.org/type/Exception
jmerelo Notable: weekly twitter.com/jjmerelo/status/1137294388571398144 09:45
releasable: status 09:46
releasable6 jmerelo, Next release in ≈12 days and ≈9 hours. 1 blocker. 140 out of 576 commits logged (⚠ 2 warnings)
jmerelo, Details: gist.github.com/0eb1401f653df77cdc...df640793ae
jmerelo Notable: weekly twitter.com/jjmerelo/status/1137294388571398144
notable6: weekly twitter.com/jjmerelo/status/1137294388571398144
notable6 jmerelo, Noted!
jmerelo I don't know who's around, but for the past week no one else has worked on the documentation repo. And not a whole lot of people in the last month. 09:47
Documentation is essential for newcomers to the language and seasoned programmers alike. We need to keep it current, fresh and accurate.
Camelia would really be grateful if you devoted even a minute amount of your time, 30 minutes a week, to address and help solve an issue 09:48
I would be kinda grateful too.
Altreus hmm looks like you can't put a newline inside the {} of .. is referencing{ ... } 09:55
but also I learned you can \ escape newlines in perl6
Kaiepi .tell jmerelo, since i made a bunch of issues on undocumented supply and lock::async methods i could look into what they actually do and see if i can write up some docs for them 09:58
yoleaux Kaiepi: What kind of a name is "jmerelo,"?!
Kaiepi .tell jmerelo since i made a bunch of issues on undocumented supply and lock::async methods i could look into what they actually do and see if i can write up some docs for them
yoleaux Kaiepi: I'll pass your message to jmerelo.
El_Che releasable6: status 10:03
releasable6 El_Che, Next release in ≈12 days and ≈8 hours. 1 blocker. 140 out of 576 commits logged (⚠ 2 warnings)
El_Che, Details: gist.github.com/cc82cb17652aa8f1bd...134e31165b
antoniogamiz mmm zef has given me this error while installing Perl6::TypeGraph 10:40
Invocant of method 'match' must be a type object of type 'Any', not an object instance of type 'Pair'. Did you forget a 'multi'?
do you think it's a problem with the module or with zef?
sena_kun with the module 10:41
antoniogamiz oh right I've just seen build is failing :(
sena_kun you call somewhere `match` on Pair, which won't work 10:42
antoniogamiz yep but I think the problem is Perl6::Load module 10:45
If I use extract-pod it does not happen, I will talk to jmerelo to see what's happening
ty sena_kun :) 10:46
sena_kun hmmm...
antoniogamiz, `zef test .` in this repo gives me Testing [OK].
travis is happy too
antoniogamiz yep, that's the weird thing 10:47
sena_kun travis-ci.org/antoniogamiz/Perl6-TypeGraph
antoniogamiz but this errror appears if I use pod::load
travis-ci.org/antoniogamiz/Perl6-D.../543102809
now I have changed to extract-pod again
I'm not using pod::load in Typegraph 10:48
agh I sent another link sorry
uoh, ok, I have messed up a little. Sorry for the confusion 10:49
sena_kun no problem 10:50
antoniogamiz problem is Perl6::Typegraph passes all tests but zef gives an error
sena_kun antoniogamiz, what "zef"? `zef install`? 10:51
antoniogamiz yep
sena_kun antoniogamiz, with your changes on what is on master right now?
s/changes/local changes/
antoniogamiz master 10:52
sena_kun ooh, I see it
ran it with `perl6 --ll-exception /home/koto/.perl6/bin/zef install .` and seeing a full exception trace 10:54
`in code at /home/koto/.perl6/sources/41DA11BE079F2990A0E18D318378B5EBD357C8EF (Zef::Client) line 514`
it seems to try to report `"Filtering [FAIL] for {$candi.dist.?identity // $candi.as}: {$*error}"` but can't 10:56
sena_kun why am I even looking into it instead of Cro::WebSocket bug... Ah, right, I can't fix it. :/ 10:58
antoniogamiz mmm uoh 10:58
:/
good luck with that bug :D 10:59
sena_kun hmm, UNDO block just gives a warning, but the actual error is somewhere else... 11:05
aaaaah 11:07
antoniogamiz, I see the issue
github.com/antoniogamiz/Perl6-Type...on#L18-L22 <- this is either incorrect or not yet implemented format. it has to be just "resources": ["data/type-graph.txt"] 11:08
let's see if I can get us a better error message... 11:09
`data => [type-graph.txt]` this is a Pair... 11:11
m: say from-json('{"data": ["a"]}')
camelia {data => [a]}
Saw 1 occurrence of deprecated code.
================================================================================
Sub from-json (from GLOBAL) seen at:
<tmp>, line 1
Please use JSON::Fast, JSON::Tiny or JSON::Pretty from h…
sena_kun m: use JSON::Fast; say from-json('{"data": ["a"]}')
camelia ===SORRY!===
Could not find JSON::Fast at line 1 in:
inst#/home/camelia/.perl6
inst#/home/camelia/rakudo-m-inst-1/share/perl6/site
inst#/home/camelia/rakudo-m-inst-1/share/perl6/vendor
inst#/home/camelia/rakudo-m-inst-1/share…
sena_kun sigh
well, never mind
>A list of file names, each of them corresponding to a file in the "resources" directory in the distribution 11:14
antoniogamiz :oooo
I'm going to change it 11:15
antoniogamiz meta test doesnt give an error mm 11:17
sena_kun antoniogamiz, that's a miss of meta test. ;) pull requests are welcome, I think 11:18
I wrote a patch for zef
to print `Every item in 'resources' Hash of META6.json must be a string, got $type instead` instead of this cryptic error
preparing it...
antoniogamiz :D 11:19
sena_kun antoniogamiz, github.com/ugexe/zef/pull/305 <- here is the PR 11:27
using stacktrace from using --ll-exception flag, I obtained this file/line, saw it is related to processing 'resources' field, checked your META6.json, saw it isn't a list of strings. then an `unless` and `die` improved the issue. 11:30
tested it out with `perl6 -I../zef/lib ../zef/bin/zef install .` when playing with zef sources in sibling directory 11:32
hope that helps
so it was an error in the META6.json... but zef's error message was LTA too. :) 11:33
antoniogamiz thanks a lot sena_kun :) 11:34
are you altai_man too?
sena_kun yup
antoniogamiz ah :D
ups now it gives a different error :( 11:35
sena_kun there is certain confusion because I tend to use different nicknames on different services. :/
antoniogamiz, a log?
antoniogamiz gist.github.com/antoniogamiz/1bd0c...2ce3439050
ah permission denied.. 11:36
sena_kun antoniogamiz, and it is not related to `Perl6::TypeGraph`, I suspect. I was able to install typegraph distribution just fine after 'resources' field fix.
antoniogamiz yep it's my fault sorry, I had to execute it with sudo 11:37
everythings working now! ty sena! 11:40
sena_kun you are welcome 11:41
antoniogamiz o/ 11:43
SmokeMachine Altreus: what’s the error? 12:39
Geth doc/note-start-special-vars: 8aac66a826 | Altai-man++ | doc/Language/control.pod6
Add a little explanation
12:54
doc/master: 4 commits pushed by Altai-man++
cpan-p6 New module released to CPAN! Getopt::Long (0.1.2) by 03LEONT 13:42
Geth doc/note-prove6: 050108c0c0 | Altai-man++ | doc/Language/testing.pod6
Suggest prove6 over prove
13:46
doc: Altai-man++ created pull request #2841:
Suggest prove6 over prove
13:48
Geth doc: 050108c0c0 | Altai-man++ | doc/Language/testing.pod6
Suggest prove6 over prove
14:11
doc: b394e9da34 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | doc/Language/testing.pod6
Merge pull request #2841 from perl6/note-prove6

Suggest prove6 over prove Thanks a lot!
synopsebot Link: doc.perl6.org/language/testing
Altreus SmokeMachine: woops, right, so it turns out I have to \ escape the newline in the «is referencing» block 14:12
leont Altai-man++
Altreus I dunno whether that's a Perl6 thing or a Red thing but in either case it seems astonishing and not the sort of thing the programmer should have to think about :S 14:13
SmokeMachine: now I've fixed that, it says No such symbol 'Reward', from Claim.^create-table 14:17
timotimo m: say "foo bar baz".samemark("ÄÄ") 15:37
camelia f̈öö ̈b̈är̈ ̈b̈äz̈
b2gills m: say "foo bar baz".samemark("AAAÄ") 16:02
camelia foo ̈b̈är̈ ̈b̈äz̈
Xliff m: say (40...80).pick xx 2 18:17
camelia (76 46)
Kaiepi m: say 1 xx Inf 18:25
camelia (...)
Kaiepi m: say 1 x Inf 18:26
camelia Cat object not yet implemented. Sorry.
in block <unit> at <tmp> line 1
Kaiepi ?
i expected an error but not that
lizmat Kaiepi: the Cat class has been specced as a laziily growing string 18:30
1 x Inf would be a lazily growing string of just "1"'s
Kaiepi ahh ok 18:31
Kaiepi you could say cat objects are unrolled balls of yarn 18:31
Kaiepi they are long strings after all 18:31
lizmat indeed :-) 18:32
Xliff .seen tony-o 18:39
yoleaux I saw tony-o 22 Apr 2019 17:49Z in #perl6-dev: <tony-o> lol
Kaiepi .seen zoffix 18:41
yoleaux I saw Zoffix 6 Jan 2019 17:41Z in #perl6: <Zoffix> moritz: the project's direction and management style doesn't match my goals and I'll be happier elsewhere.
Kaiepi damn it's already been 6 months
tobs I want to parse expressions (mostly polynomials, but extensibility would be nice). The operator precedence parser part of nqp's HLL::Grammar looks really neat. Is that available in a stable form (as I hear you shouldn't use nqp in Perl 6 code)? 19:03
moritz not really 19:04
though if you create one and put it on modules.perl6.org, people will use it 19:06
tobs sounds like something worth doing, indeed 19:07
The Rakudo and NQP internals course calls it only "mildly" terrifying. I'll have a look :-)
moritz well, you probably don't need all the jazz that p6 needs 19:09
like chaining ops *and* postcircumfixes *and* whatever
uzl m: sub hello { 'hello'.put }; my $var = hello(); put $var; 20:26
camelia hello
True
uzl Would it be possible to capture a sub's output to STDOUT in a variable?
Kaiepi i think? gimme a sec 20:27
timotimo IO::Capture::Tiny? :)
Kaiepi m: sub get-out(--> Str) { $*OUT.seek: 0; $*OUT.print: 'ayy lmao'; my Str $ret = $*OUT.slurp; $*OUT.seek: $ret.elems; $ret }; say get-out 20:29
camelia a
y lmao
Kaiepi i'm probably using seek wrong but that's the gist of it
timotimo wow, why does that work 20:31
uzl timotimo: I was hoping that I could without a module but will give it a try though ;-) 20:32
mst this is a perl. it's modules all the way down
uzl Kaiepi: I'll have to unpack and go back to the docs ;-)
mst: I know ... but I must install it ... 20:34
mst clearly you need to copy p3rl.org/CloudPAN 20:35
uzl Kaiepi: Your snippet isn't working on my machine. I'm getting: It is not possible to seek this kind of handle 20:36
timotimo well, you can't use it if your stdout is just connected to the tty 20:38
or pty i guess
lizmat weekly: twitter.com/Mrofnet/status/1137424708591390721
notable6 lizmat, Noted!
Kaiepi how about this 20:39
m: sub foo { $*OUT.lock; $*OUT.print: 'ayy lmao'; my Str $ret = $*OUT.slurp; $*OUT.unlock; $ret; }; say foo
camelia ayy lmao
Kaiepi oh sweet i'm in the weekly!
timotimo greppable6: "use JSON::Fast" 20:40
greppable6 timotimo, Found nothing!
timotimo phew, that's a relief 20:41
greppable6: use JSON::Fast
AlexDaniel` without quotes maybe
yoleaux 14 May 2019 13:52Z <vrurg> AlexDaniel`: VERSION is in tools/templates; the submodule isn't in Perl Foundation because I had no access to it. I wish to see it under perl6.
greppable6 timotimo, 238 lines, 106 modules: gist.github.com/8afed318d51317404d...827603ed68
AlexDaniel` it's a p5 regex
is it? now you have to maintain it
uzl Kaiepi: That seems to work but but the terminal stays as if waiting for input. I needed to press ctrl+c. 20:43
uzl I'll go with timo's suggestion. 20:44
lizmat m: my @o; class O { method print(*@t) { @o.append(@t) } }; { my $*OUT = O.new; print "foo","bar"; }; dd @o # $*OUT can be easily replaced 21:05
camelia Array @o = ["foobar"]
timotimo but then no methods on $*OUT will work, like .nl-out or .t or something 21:08
Kaiepi did you know that instead of try/catch you can completely solve programming errors using $*ERR.lock? 21:13
lizmat m: $*ERR.lock; die 21:16
camelia Died
in block <unit> at <tmp> line 1
lizmat ??
ugexe but i only do lock-free programing 21:19
timotimo free(lock) 21:21
Kaiepi m: $*ERR.lock; $*ERR.close; die 'wonder what happens when you do this' 21:30
camelia ( no output )
Kaiepi m: $*IN.close; prompt
camelia Cannot do 'get' on a handle in binary mode
in block <unit> at <tmp> line 1