»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:, or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend!
Set by moritz on 22 December 2015.
buggable 🎺🎺🎺 It's time for the monthly Accidental /win Lottery 😍😍😍 We have 2 ballots submitted by 2 users! DRUM ROLL PLEASE!... 00:00
And the winning number is 42! Congratulations to Zoffix! You win a roll of duck tape!
00:00 ryn1x joined, headcase left 00:01 headcase joined 00:03 atroxaper left 00:04 margeas left 00:05 TreyHarris joined
jdv79 AlexDaniel: fwiw, i get its not much, i gave moritz the steps to fix "fancy unicode" in the logs. its all him. 00:05
i was on the trail of the ansi color bug but i'm holding off til unicode is fixed 00:06
maybe we should move to something else. idk.
AlexDaniel if we can fix it soon-ish then there's no problem 00:07
jdv79 ask moritz. the unicode steps are known.
AlexDaniel .tell moritz I've created this out of frustration github.com/perl6/marketing/issues/1 . According to jdv79 the steps for fixing the unicode issue are known. What's holding it? 00:08
yoleaux AlexDaniel: I'll pass your message to moritz.
jdv79 basically its just the usual mysql suckage
AlexDaniel jdv79: I don't think I've seen the steps for fixing this, but does it happen on read or write? 00:09
jdv79 well, a tad more but not too surprising
its write
AlexDaniel alright, so some of the logs are broken forever? 00:10
jdv79 the table's charset needs to be changed to utf8mb4. the sproc used for the insert needs the param changed to the same. the "set names" clause the same. that should be it. 00:11
00:11 headcase left
jdv79 yes. iirc the upgrade/change from mysql to mariadb was the source of the issues. 00:11
AlexDaniel I'm not happy about it because at least quotable6 is using the same logs
and we have a few months of mangled data… maybe someone can donate his logs so that we can recover some of it 00:12
jdv79 its since july 21 or so 00:13
its easy to find if you poke that table
AlexDaniel jdv79: thank you for your help
jdv79 anyway. have a good weekend!
00:17 timotimo left, timo joined 00:18 timo is now known as timotimo 00:22 jeromelanteri left 00:23 headcase joined, nhywyll left 00:26 kyan left 00:27 headcase left 00:37 Sgeo_ joined, cdg joined 00:39 Sgeo left, leont joined 00:41 headcase joined 00:42 Mrofnet left, cdg left 00:45 leont left, headcase left 00:50 headcase joined 00:54 headcase left 00:59 headcase joined 01:02 headcase left, Ven`` left, headcase joined 01:08 troys_ is now known as troys
HoboWithAShotgun Raider is now known as Twix 01:09
01:09 Morfent joined 01:12 Ven`` joined 01:17 Ven`` left 01:20 mudman joined 01:21 Cabanossi left 01:23 headcase left 01:24 Cabanossi joined 01:27 headcase joined 01:29 headcase left, headcase joined 01:36 atroxaper joined 01:38 cdg joined 01:39 ryn1x left 01:40 atroxaper left 01:42 cdg left 01:46 squashable6 left, ilbot3 left, headcase_ joined 01:47 headcase left 01:50 troys is now known as troys_, squashable6 joined 01:51 Cabanossi left
Geth whateverable: 91137b410a | (Aleks-Daniel Jakimenko-Aleksejev)++ | 2 files
Accept any word I can think of

Also makes Releasable and Squashable more consistent between each other.
See #236.
01:54 Cabanossi joined, ilbot3 joined 01:55 ChanServ sets mode: +v ilbot3 01:58 headcase_ left, TEttinger left 02:00 TEttinger joined 02:01 wamba left 02:02 headcase joined
Geth whateverable: c73cd331cc | (Aleks-Daniel Jakimenko-Aleksejev)++ | lib/Whateverable.pm6
Emergency line is on a different channel

Issue #224
whateverable: ec2169ce0e | (Aleks-Daniel Jakimenko-Aleksejev)++ | lib/Whateverable.pm6
Note that “say” is ok in these cases

I tend to grep for “say” to make sure I don't leave any debugging aids in the code. Maybe it's better to use 「put $foo.gist」 here?
geekosaur 'note'? 02:12
02:12 headcase left
geekosaur m: note $*PERL 02:12
camelia Perl 6 (6.c)
AlexDaniel geekosaur: ahhhh maybe, that's if I want it to go to STDERR 02:13
geekosaur that is where I'd want most debug output
AlexDaniel m: $*PERL.note 02:14
camelia Perl 6 (6.c)
u-ou m: 02:16
Geth whateverable: b6bd79da61 | (Aleks-Daniel Jakimenko-Aleksejev)++ | bin/Squashable.p6
Remove debugging output

whateverable: 754d4ebaba | (Aleks-Daniel Jakimenko-Aleksejev)++ | lib/Whateverable.pm6
Note instead of saying

It's probably better to use STDERR in this case.
02:20 HoboWithAShotgun left 02:23 Cabanossi left 02:24 Cabanossi joined 02:33 cdg joined 02:35 headcase joined 02:36 ryn1x joined 02:39 headcase left 02:40 squashable6 left 02:43 headcase joined 02:47 headcase left, TimToady left 02:48 noganex joined 02:49 TimToady joined 02:50 headcase joined 02:51 noganex_ left 02:57 notostraca joined 02:59 headcase left 03:00 headcase joined, TEttinger left 03:03 mudman left, notostraca left 03:06 notostraca joined 03:07 atroxaper joined 03:08 jaush joined 03:09 ryn1x left, headcase left
Geth whateverable: 595e52e37b | (Aleks-Daniel Jakimenko-Aleksejev)++ | bin/Squashable.p6
Point to SQUASHathon wiki

Hopefully the page will be moved elsewhere, but right now let's point to whatever we have.
whateverable: 7f79b08b7a | (Aleks-Daniel Jakimenko-Aleksejev)++ | bin/Squashable.p6
Allow strikethru
03:10 squashable6 joined, ChanServ sets mode: +v squashable6 03:11 atroxaper left 03:12 skids joined 03:15 mudman joined 03:18 ryn1x joined 03:20 Cabanossi left 03:23 headcase joined, Cabanossi joined 03:24 ryn1x left 03:28 jaush left
AlexDaniel squashable6: status 03:35
squashable6 AlexDaniel, ⚠🍕 Next SQUASHathon in 5 days and ≈6 hours (2017-10-07 UTC-12⌁UTC+14). See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
03:39 atroxaper joined 03:41 headcase left 03:43 headcase joined 03:45 eliasr left 03:52 headcase left 03:54 headcase joined
weabot AlexDaniel that's next friday? 03:55
AlexDaniel weabot: next Saturday, but it's UTC-12⌁UTC+14 so for most people it also includes half of Friday and Sunday 03:57
weabot oh alright
I'll try to contribute a bit even though I've never opened up rakudo's code
AlexDaniel weabot: commits to github.com/perl6/roast/ also count, so there's a little chance you won't even have to :) 03:58
buggable: tag TESTNEEDED
buggable AlexDaniel, There are 46 tickets tagged with TESTNEEDED; See fail.rakudo.party/t/TESTNEEDED for details
geekosaur how about docs?
03:58 headcase left
AlexDaniel no docs this time 03:59
weabot but I'd like to, seems like a good way to get started in contributing to moar or rakudo
03:59 headcase joined
AlexDaniel weabot: \o/ 🍕 03:59
geekosaur: don't know if you know, but last SQUASHathon was about the doc repo. Here's the log: gist.github.com/Whateverable/fea65...df5cd397d8
geekosaur I remembered docs from last time, was just wondering as that might be a route for folks who don;t know the source 04:00
04:03 headcase left
AlexDaniel .tell lizmat It's probably a good idea to mention SQUASHathon and Hacktoberfest in the next weekly. github.com/rakudo/rakudo/wiki/Mont...Squash-Day github.com/issues?utf8=%E2%9C%93&a...toberfest+ hacktoberfest.digitalocean.com/ 04:07
yoleaux AlexDaniel: I'll pass your message to lizmat.
AlexDaniel .tell lizmat oh, and raw.githubusercontent.com/perl6/ma...-media.jpg 04:09
yoleaux AlexDaniel: I'll pass your message to lizmat.
AlexDaniel did we just go down from 1675 to 1608 tickets? 04:12
04:15 ryn1x joined
weabot is rakudo entirely written in nqp and perl6? 04:18
AlexDaniel weabot: well, yeah, but it needs a virtual machine to run on (like MoarVM) 04:23
04:23 headcase joined
weabot yeah I see that 04:24
and it needs nqp 04:25
04:25 notostraca is now known as TEttinger
weabot obviously 04:25
nine Should I upgrade my laptop's OS on the day before a 2 weeks vacation? I don't know why, but I feel so tempted. 04:26
Zoffix AlexDaniel: I rebuilt R6's db, so it's possible it had some already closed tickets as new. I think if a ticket is made resolved and then someone comments on it, it think it was opened again. Also spam. 04:27
04:27 ryn1x left
AlexDaniel buggable: bugs 04:27
buggable AlexDaniel, Total: 1649; 6.D: 1; 9999: 10; @LARRY: 24; ANNOYING: 7; BOOTSTRAP: 5; BUG: 603; BUILD: 12; CONC: 48; DOCS: 1; EXOTICTEST: 1; GLR: 3; IO: 23; JVM: 53; LTA: 178; MATH: 4; META: 1; MOAR: 1; NATIVECALL: 22; NYI: 55; OO: 13; OPTIMIZER: 8; OSX: 2; PARSER: 6; PERF: 28; POD: 19; PRECOMP: 15; REGEX: 51; REGRESSION: 37; REPL: 6; RFC: 63; RT: 1;
AlexDaniel, SECURITY: 1; SEGV: 25; SINK: 1; SITE: 1; SPESH: 1; STAR: 7; TESTCOMMITTED: 10; TESTNEEDED: 46; TODO: 13; UNI: 26; UNTAGGED: 413; WEIRD: 2; WINDOWS: 3; See fail.rakudo.party/ for details
AlexDaniel aaaaaah
ok then last time I used that number
and 1608 is straight from RT 04:28
Zoffix m: say [+] <959 690>
camelia 1649
Zoffix RT tells me 1649 tickets, so R6 matches it 04:29
04:29 khw left
AlexDaniel that's my query: rt.perl.org/Search/Results.html?Format='<a href%3D"%2Frt3%2FTicket%2FDisplay.html%3Fid%3D__id__">__id__<%2Fa>%2FTITLE%3A%23'%2C%0A'<a href%3D"%2Frt3%2FTicket%2FDisplay.html%3Fid%3D__id__">__Subject__<%2Fa>%2FTITLE%3ASubject'%2C%0A'__QueueName__'%2C%0A'__ExtendedStatus__'%2C%0A'__CreatedRelative__'%2C%0A'<a href%3D"%2Frt3%2FTicket%2FDisplay.html%3FAction%3DTake%26amp%3Bid%3D__id__">Take<%2Fa>%2FTITLE%3A%26nbsp%3B 04:29
'&Order=DESC|DESC|ASC|ASC&OrderBy=Created|||&Query=Owner %3D 'Nobody' AND Queue !%3D 'spam' AND ( Status %3D 'new' OR Status %3D 'open' ) AND Queue %3D 'perl6'&RowsPerPage=50
Zoffix I just went to rt.perl.org/ and looked in the "perl6" in query box 04:30
AlexDaniel: your query excludes tickets marked as stalled
04:30 APic left
AlexDaniel riiiight 04:31
04:32 headcase left
Zoffix Yeah, I agree about marketing Issue you opened. 04:32
.tell HoboWithAShotgun there are some modules that let you have lazy attributes: modules.perl6.org/s/lazy 04:35
yoleaux Zoffix: I'll pass your message to HoboWithAShotgun.
04:38 headcase joined, kaare__ joined 04:42 headcase left, kaare_ left, mudman left, headcase joined 04:43 APic joined 04:47 headcase left 04:52 headcase joined 04:55 troys_ is now known as troys 05:01 headcase left 05:03 headcase joined 05:06 Cabanossi left 05:08 Cabanossi joined, cdg left 05:12 headcase left 05:13 headcase joined 05:15 mudman joined 05:17 headcase left 05:19 Xal left 05:20 troys left 05:21 Xal joined 05:23 Zeke joined 05:24 Zeke left 05:25 aborazmeh joined, aborazmeh left, aborazmeh joined 05:32 skids left 05:33 headcase joined 05:39 mudman left 05:42 headcase left 05:45 cdg joined 05:50 cdg left 05:54 kaare__ is now known as kaare_ 06:02 lizmat left 06:03 headcase joined 06:06 hoffentlichja left 06:07 headcase left 06:08 headcase joined, lizmat joined 06:14 chakli joined 06:17 headcase left 06:23 setty1 joined 06:28 headcase joined 06:30 kaare__ joined 06:32 mudman joined 06:33 kaare_ left 06:37 headcase left 06:38 mudman left 06:43 headcase joined
Zoffix m: use nqp; dd nqp::list_i(1, 2, 3).list 06:44
camelia Cannot find method 'list': no method cache and no .^find_method
in block <unit> at <tmp> line 1
Zoffix What's the easy way to dump out an nqp::list_i? Just to take a look what's inside 06:45
m: use nqp; sub d (Mu \l) { dd (nqp::atpos_i(l,$_) for ^nqp::elems(l)) }; d nqp::list_i(42, 2, 3) 06:47
camelia (42, 2, 3)
Zoffix Does the trick, I guess
06:49 domidumont joined 06:52 headcase left 06:53 domidumont left 06:54 domidumont joined 06:57 headcase joined 06:58 aborazmeh left 07:02 atroxaper left 07:04 headcase_ joined 07:06 headcase left 07:10 wamba joined 07:16 headcase_ left, domidumont left 07:19 cdg joined, headcase joined 07:21 Aaronepower left, Cabanossi left, aborazmeh joined, aborazmeh left, aborazmeh joined 07:23 Cabanossi joined 07:24 cdg left 07:26 piojo joined 07:32 Xal left 07:34 Xal joined 07:41 nadim joined 07:47 headcase left 07:52 kshannon left 07:53 kshannon joined 08:01 jercos left, piojo left 08:02 jercos joined 08:06 Cabanossi left 08:08 Cabanossi joined 08:11 piojo joined 08:16 chakli left 08:20 cdg joined 08:21 setty1 left 08:25 cdg left 08:27 headcase joined 08:28 mempko joined, HoboWithAShotgun joined
Zoffix .tell teatime you were curious about the regex fix: github.com/rakudo/rakudo/commit/681d6be974 tests github.com/perl6/roast/commit/99c822abde It's scarier than it looks only 'cause it's in full-on NQP. It could've been in almost pure Perl 6 (but nqp performs better). 08:31
yoleaux Zoffix: I'll pass your message to teatime.
Zoffix .tell teatime Docs for nqp ops: github.com/perl6/nqp/blob/master/d...s.markdown github.com/rakudo/rakudo/blob/nom/...s.markdown and guts course: github.com/edumentab/rakudo-and-nq...s-workshop 08:32
yoleaux Zoffix: I'll pass your message to teatime.
08:32 headcase left
Zoffix .tell teatime I meant it's *NOT* as scary as it looks :) 08:36
yoleaux Zoffix: I'll pass your message to teatime.
08:37 headcase joined 08:39 kaare__ left 08:40 kaare_ joined 08:41 headcase left 08:44 Pilu joined 08:46 headcase joined 08:48 llfourn left, asssio joined 08:50 knobo left, asssio left, headcase left 08:54 margeas joined 08:55 ken joined 08:56 ken is now known as Guest70189, yht left, Guest70189 is now known as thunktone 08:57 mempko left 08:58 domidumont joined 09:00 headcase joined 09:04 headcase left 09:09 headcase joined 09:13 headcase left 09:14 nadim left 09:18 headcase joined 09:21 Ven`` joined, cdg joined
HoboWithAShotgun how do i break out of a react block OR how do i stop a supply from the outside? consider: hastebin.com/atorapaqol.pl 09:25
yoleaux 04:35Z <Zoffix> HoboWithAShotgun: there are some modules that let you have lazy attributes: modules.perl6.org/s/lazy
09:25 cdg left
HoboWithAShotgun if want to exit main-loop cleanly on press of ctrl-x 09:26
09:27 headcase left 09:32 headcase joined 09:34 rindolf joined 09:36 headcase left 09:44 aborazmeh left 09:46 hoffentlichja joined, thunktone left, lancew joined 09:48 thunktone joined 09:52 Cabanossi left 09:53 Cabanossi joined 09:57 cdg joined 10:01 cdg left 10:16 evalable6 left, evalable6 joined 10:24 mniip left 10:27 chakli joined
chakli How do i check if a Str variable is undefined or empty? 10:28
10:28 setty1 joined, eliasr joined
hoffentlichja chakli: I thnk you can do that with "with" 10:28
and with "without" the negative form 10:29
HoboWithAShotgun m: my $str; say $str.defined;
camelia False
HoboWithAShotgun m: my $str; say "no" unless $str; 10:30
camelia no
hoffentlichja m: my Str $s; say "it undefined?!" without $s; 10:31
camelia it undefined?!
HoboWithAShotgun m: my $str = ""; say "no" unless $str;
camelia no
hoffentlichja :)
10:31 pmurias joined
chakli m: my $str =""; say "qqq" with $str; 10:31
camelia qqq
HoboWithAShotgun yes, but it's still perl. undefined and empty evaluate to false 10:32
so no need to get fancy :)
10:33 setty1 left
HoboWithAShotgun m: my $str = ""; say "no" if $str ~~ False; 10:35
camelia Potential difficulties:
Smartmatch against False always fails; if you mean to test the topic for truthiness, use :!so or *.not or !* instead
at <tmp>:1
------> 3my $str = ""; say "no" if $str ~~ 7⏏5False;
chakli m: my $str = ""; say "good" if $str.defined && $str !~~ ""; 10:36
camelia ( no output )
10:42 japhb left, japhb joined 10:43 TEttinger left 10:45 notbenh left, notbenh joined 10:50 Cabanossi left 10:53 Cabanossi joined 10:54 darutoko joined 10:58 cdg joined
hoffentlichja is there any convention for calling functions? what's the most common way of calling functions? 10:58
pmurias jnthn: ping 11:00
moritz hoffentlichja: there's func(args); and func args; both are common 11:01
yoleaux 00:08Z <AlexDaniel> moritz: I've created this out of frustration github.com/perl6/marketing/issues/1 . According to jdv79 the steps for fixing the unicode issue are known. What's holding it?
moritz AlexDaniel: time. Nerves. Other projects. 11:02
doing an ALTER TABLE on a multi-million rows mysql table is not something you should do when you don't know if you're around until it's finished
11:02 cdg left 11:03 moritz left 11:09 headcase joined
pmurias jnthn: if we have a 'method ^foo() {}' (or even method foo() {} as it seems to work the same way) how does the low level code ref end up installed in the high level Perl 6 object? 11:10
11:11 lancew left 11:13 headcase left 11:14 lancew joined
chakli when i'm doing for @arr -> $element { }, can i get to know the index? 11:15
11:18 headcase joined 11:21 Cabanossi left 11:22 headcase left
jnthn chakli: for @arr.kv -> $idx, $element { } 11:22
11:23 Cabanossi joined 11:24 llfourn joined
jnthn pmurias: Depends; if it's something we just compiled and are running right now, then there's some fixup code that runs and installs it; see github.com/rakudo/rakudo/blob/nom/....nqp#L2268 11:26
11:27 headcase joined 11:28 ChoHag left
jnthn Oh, and on the precomp path iirc it's just done as part of deserialization 11:30
11:31 isBEKaml joined, pecastro left 11:32 headcase left 11:37 lancew left 11:38 pecastro joined 11:41 headcase joined 11:47 mniip joined 11:50 headcase left, chakli left
timotimo HoboWithAShotgun: you can just "done" and the react block will finish 11:54
11:57 HoboWithAShotgun left 11:58 vike left 11:59 cdg joined, lancew joined 12:03 cdg left 12:04 vike joined 12:10 knobo joined 12:23 isBEKaml left 12:24 isBEKaml joined 12:37 knobo left, headcase joined 12:38 thunktone left 12:40 thunktone joined 12:42 headcase left 12:44 ShalokShalom_ joined, isBEKaml left
hoffentlichja should hash keys be quoted? 12:45
timotimo by default hash access will call .Str on your keys for you. if you don't want that, use an object hash, like my %foo{Any}; 12:46
hoffentlichja so it's not necessary to quote them
teatime the pair operator => works with barewords 12:47
yoleaux 08:31Z <Zoffix> teatime: you were curious about the regex fix: github.com/rakudo/rakudo/commit/681d6be974 tests github.com/perl6/roast/commit/99c822abde It's scarier than it looks only 'cause it's in full-on NQP. It could've been in almost pure Perl 6 (but nqp performs better).
08:32Z <Zoffix> teatime: Docs for nqp ops: github.com/perl6/nqp/blob/master/d...s.markdown github.com/rakudo/rakudo/blob/nom/...s.markdown and guts course: github.com/edumentab/rakudo-and-nq...s-workshop
08:36Z <Zoffix> teatime: I meant it's *NOT* as scary as it looks :)
12:47 ShalokShalom left
hoffentlichja teatime: alright, thanks 12:47
Zoffix hoffentlichja: for basic things (like letters and numbers only), no. But for more complex, yes 12:49
m: my %h = foo42 => 42; say %h
camelia {foo42 => 42}
Zoffix m: my %h = fo.o42 => 42; say %h
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared routine:
fo used at line 1. Did you mean 'so', 'fc'?
Zoffix huggable: colonpairs 12:50
huggable Zoffix, All the shortcuts of colonpairs: twitter.com/zoffix/status/839807414211854337
12:50 soon joined
Zoffix ^ all these shortcuts work too 12:50
12:50 leont joined
soon hello 12:50
Zoffix \o
hoffentlichja Zoffix: I see 12:51
soon: hi
teatime Zoffix: perfect on the NPQ docs, thx
Zoffix \o/
teatime NQP 12:52
Zoffix |
soon can anybody help me around OAuth2?
Zoffix runs away 12:53
soon :D
Zoffix Don't see any modules for it :/ 12:54
soon really?
Zoffix soon: yeah, this language is only like 2 years old, so the ecosysem is baby sized :) There's also Perl modules on metacpan.org/ you could try using via Inline::Perl5 12:55
Or you could roll your own basic client, like I see OAuth2::Client::Google did github.com/bduggan/p6-oauth2-clien...Google.pm6 12:56
Or Twitter.pm6 (though that one is OAuth1 IIRC) 12:57
soon I should only ask with the clientid and clientsecret to access the token and then with token download the json file 12:58
okey TNX
Zoffix oh neat, we reached a new milestone 900 modules. Getting there for the first 1000 \o/ 12:59
12:59 cdg joined
Geth doc: 89be4fa3e8 | (Zoffix Znet)++ (committed using GitHub Web editor) | META6.json
Fill missing authors

  modules.perl6.org don't like it
13:02 HoboWithAShotgun joined 13:03 soon left 13:04 nebuchadnezzar left, cdg left
Geth modules.perl6.org: 2d3c703c43 | (Zoffix Znet)++ | lib/ModulesPerl6/DbBuilder/Dist/Source.pm
[REBUILD] Handle case of "authors" set to empty array
13:06 thunktone left
Geth ecosystem: 1a2d8287fe | (Zoffix Znet)++ (committed using GitHub Web editor) | META.list
Remove 404ed module
Zoffix .seen faraco
yoleaux I saw faraco 1 Aug 2017 07:24Z in #perl6: <faraco> m: say (2/9 + 1/3 * 2 / 12).perl;
13:07 headcase joined
Zoffix .tell faraco One of your META urls in ecosystem is a 404. Couldn't see if it was renamed to something else, so I removed it: github.com/perl6/ecosystem/commit/1a2d8287fe 13:08
yoleaux Zoffix: I'll pass your message to faraco.
13:08 thunktone joined 13:12 headcase left 13:17 Zoffix left 13:24 nadim joined 13:25 lancew left 13:40 evalable6 left, evalable6 joined 13:50 Cabanossi left 13:52 mulk[m] joined 13:53 Cabanossi joined
HoboWithAShotgun allright, i have a supply that emits instances of MouseClick, in a consuming supply i want to either emit a MouseDoubleClick event if two sinle clicks occured within 0.3 seconds or the original single click evnt 13:53
13:53 nadim left
HoboWithAShotgun basically i want to suppress the single click if a doubleclick is detected 13:54
i have an idea with start and sleep and closures, but i wonder if there is an idiomatic way
13:55 zakharyas joined
timotimo HoboWithAShotgun: have you looked at the list of combiners and transformers that exist? 13:59
13:59 nadim joined
HoboWithAShotgun i did read the docs for the Supply class but i did not find anything suitable 14:00
14:00 cdg joined 14:01 vike left
HoboWithAShotgun maybe the match method 14:01
timotimo hmm. i thought there was one that can batch up consecutive events
HoboWithAShotgun but the docs are sparse on that one 14:02
14:02 piojo left 14:03 leont left
timotimo perhaps the source code of the throttle method can help, but i assume it's quite big given how many features it has 14:04
14:04 cdg left
teatime .batch is simpler and very almost does what you want 14:05
but yeah between those two, presumably inspiration
14:07 MasterDuke_ joined
timotimo ah, yes, with batch you can then map the resulting supply. for any two elements you emit a double click event, otherwise a single click 14:10
does batch "restart" its countdown when a new event comes in?
14:10 MasterDuke left
HoboWithAShotgun can you show me an example? 14:12
i tried whenever self.mouse-supply.grep({ $_ ~~ MouseClickEvent }).batch(:seconds(0.3)) -> $events 14:14
that gave me an "already vowed" error 14:15
whatever that means
14:15 lichtkind left
MasterDuke_ HoboWithAShotgun: what about swapping the .grep and the .batch? 14:17
14:17 MasterDuke_ is now known as MasterDuke
HoboWithAShotgun because i would then have to deal with MouseUp, Down and Move Events too 14:17
MasterDuke right, but .batch is a Supply method, not a Seq method 14:19
timotimo grep is also a supply method 14:20
HoboWithAShotgun anyway, whenever self.mouse-supply.batch( :seconds(0.3) ) gives me the same "Access denied to keep/break this promise; Already vowed" 14:21
timotimo oh, interesting
MasterDuke oops, timotimo++
timotimo can you golf that in a short snippet?
14:24 vike joined
MasterDuke i get something different 14:24
m: for Supply.from-list(^10).batch(:3elems) -> $b { dd $b } 14:25
camelia List $b = $(0, 1, 2)
List $b = $(3, 4, 5)
List $b = $(6, 7, 8)
List $b = $(9,)
MasterDuke m: for Supply.from-list(^10).batch(:seconds(0.3)) -> $b { dd $b }
camelia Cannot resolve caller infix:<div>(Int, Rat); none of these signatures match:
(Int:D \a, Int:D \b)
(int $a, int $b --> int)
in block <unit> at <tmp> line 1
timotimo oh? no support for fractional seconds in the batch method? 14:26
MasterDuke it appears that way. not sure why 14:27
14:27 lichtkind joined
MasterDuke .interval support 1ms resolution, seems like it would be nice for batch to also 14:30
14:31 chakli joined
timotimo m: say time div 0.3 14:32
camelia Cannot resolve caller infix:<div>(Int, Rat); none of these signatures match:
(Int:D \a, Int:D \b)
(int $a, int $b --> int)
in block <unit> at <tmp> line 1
timotimo that's what it tries to do
14:32 headcase joined
timotimo looks like instead it wants do / but then .round($seconds) perhaps? 14:33
HoboWithAShotgun the problem seems to lie with Terminal::Print::DecodedInput 14:34
can i inspect the source of the batch method? 14:36
timotimo of course 14:37
14:37 headcase left
timotimo s: Supply, "batch", \() 14:37
SourceBaby timotimo, Something's wrong: ␤ERR: Could not find candidate that can do \()␤ in sub sourcery at /home/zoffix/services/lib/CoreHackers-Sourcery/lib/CoreHackers/Sourcery.pm6 (CoreHackers::Sourcery) line 29␤ in block <unit> at -e line 6␤␤
timotimo s: Supply, "batch", \(9)
SourceBaby timotimo, Something's wrong: ␤ERR: Could not find candidate that can do \(9)␤ in sub sourcery at /home/zoffix/services/lib/CoreHackers-Sourcery/lib/CoreHackers/Sourcery.pm6 (CoreHackers::Sourcery) line 29␤ in block <unit> at -e line 6␤␤
timotimo s: Supply, "batch", \(Int)
SourceBaby timotimo, Something's wrong: ␤ERR: Could not find candidate that can do \(Int)␤ in sub sourcery at /home/zoffix/services/lib/CoreHackers-Sourcery/lib/CoreHackers/Sourcery.pm6 (CoreHackers::Sourcery) line 29␤ in block <unit> at -e line 6␤␤
timotimo how do this bot ...
s: Supply, "batch", \(Supply: Int)
SourceBaby timotimo, Something's wrong: ␤ERR: Could not find candidate that can do \(Int)␤ in sub sourcery at /home/zoffix/services/lib/CoreHackers-Sourcery/lib/CoreHackers/Sourcery.pm6 (CoreHackers::Sourcery) line 29␤ in block <unit> at -e line 6␤␤
MasterDuke s: Supply, batch, \(Int)
SourceBaby MasterDuke, Something's wrong: ␤ERR: ===SORRY!=== Error while compiling -e␤Undeclared routine:␤ batch used at line 6. Did you mean 'CATCH'?␤␤
timotimo github.com/rakudo/rakudo/blob/nom/...ly.pm#L924
HoboWithAShotgun: ^ 14:38
MasterDuke and .interval end up here eventually, if you want some inspiration github.com/rakudo/rakudo/blob/nom/...er.pm#L589 14:40
HoboWithAShotgun there is no constraint on $seconds in that method
so why does it croak with 0.3?
MasterDuke github.com/rakudo/rakudo/blob/nom/...ly.pm#L942 14:41
timotimo showed what happens
m: say time div 0.3
camelia Cannot resolve caller infix:<div>(Int, Rat); none of these signatures match:
(Int:D \a, Int:D \b)
(int $a, int $b --> int)
in block <unit> at <tmp> line 1
timotimo div only does integers
HoboWithAShotgun line 938
14:41 headcase joined
HoboWithAShotgun ? 14:42
timotimo yup and a few lines further down
14:42 setty1 joined
Geth doc/master: 5 commits pushed by (Naoum Hankache)++ 14:42
14:42 nadim left
HoboWithAShotgun is that to be considered a bug? 14:43
i mean you can specify milliseconds everywhere else i looked so far 14:44
MasterDuke i would say that's a bug 14:46
timotimo yup
14:46 headcase left 14:51 headcase joined 14:55 chakli left, headcase left
HoboWithAShotgun batch doesnt do what i want anyway. turns out, it only "fires" when a value is emmitted to it after the treshold time 14:55
i need it to fire after a treshold time once a event has been emitted to it 14:56
m: Supply.from-list(0 .. 1).batch 14:57
camelia ( no output )
HoboWithAShotgun m: Supply.from-list(0 .. 1).batch(:3elems) -> $x { $x.say } 14:58
jnthn Are you trying to debounce?
camelia 5===SORRY!5=== Error while compiling <tmp>
Unexpected block in infix position (missing statement control word before the expression?)
at <tmp>:1
------> 3Supply.from-list(0 .. 1).batch(:3elems)7⏏5 -> $x { $x.say }
expecting any of:…
14:58 piojo joined
jnthn If so, .stable is perhas what you're looking for 14:58
HoboWithAShotgun i don't know i have to look up that word :)
jnthn An example would be a user typing into a textbox, and you only want to get events after nothing changed for, say 500mx 14:59
e.g. when they stop typing for a moment
15:00 grumble left 15:01 cdg joined
HoboWithAShotgun jnth: in a supply i consume a supply that gives me MouseDown/Up/Click objects. and i currently just emmit them as i get them 15:01
now i want to defer the emitting of a click event until i know it is not a double click
15:02 grumble joined
HoboWithAShotgun and if turns out it isn't emit the original click 15:02
and if it is, emit a MouseDoubleClick
brb, HexChat is acting up again 15:04
15:04 HoboWithAShotgun left, HoboWithAShotgun joined
teatime sidenote: I did this exact thing once in AutoHotkey, heh 15:04
15:05 headcase joined
jnthn Not sure there's soemthing built-in that does exactly that, but can write it quite easily 15:05
15:05 cdg left
HoboWithAShotgun not for me :) 15:06
<-- NOOB 15:07
15:09 headcase left
jnthn Something like this perhaps: gist.github.com/jnthn/7835d295cf30...6a2b6ef786 15:10
15:12 jeek left, epony left 15:14 headcase joined 15:18 headcase left 15:19 jeek joined
HoboWithAShotgun very nice 15:21
now all i need to know how to rebless from MouseClick to MouseDoubleClick 15:22
the classes are identical except for the name 15:23
15:23 headcase joined 15:26 nadim joined
timotimo you might be able .o MouseDoubleClick.new(|$otherclick.Capture) 15:26
m: class Test { has $.foo; has $.bar; has $.quux }; Test.new(:99foo, bar => "baaaar", quux => "lol"); say Test.Capture.perl 15:27
camelia Cannot look up attributes in a Test type object
in block <unit> at <tmp> line 1
timotimo m: class Test { has $.foo; has $.bar; has $.quux }; Test.new(:99foo, bar => "baaaar", quux => "lol").Capture.perl.say
camelia \(:bar("baaaar"), :foo(99), :quux("lol"))
Geth doc: 11bd102ec4 | (Zoffix Znet)++ | doc/Type/List.pod6
Document List.ACCEPTS
synopsebot Link: doc.perl6.org/type/List
15:30 vike left 15:33 xiaomiao left
Geth doc: d19beddd1f | (Zoffix Znet)++ | doc/Language/operators.pod6
Tell to look at ACCEPTS in `~~` docs

  - Make it more clear the provided list of semantics is incomplete
  - Link to ACCEPTS routines people could follow and read details
synopsebot Link: doc.perl6.org/language/operators
15:36 headcase left 15:37 vike joined 15:40 headcase joined 15:44 wamba left, skids joined
Xliff m: my @a = (1, 2, 3, 'all'); say "No" unless @a.all ~~ Int; 15:48
camelia No
Xliff m: my @a = (1, 2, 3); say "No" unless @a.all ~~ Int;
camelia ( no output )
tbrowder ugexe: if i load a module tarball to cpan, are the entries in its META6.json used for anything other than dependencies? 15:50
15:51 Cabanossi left
tbrowder Furthermore, if I load all my ecosystem modules to CPAN, couldn’t I remove them from the ecosystem/META.list file? 15:53
15:53 Cabanossi joined 15:54 zakharyas left 16:01 headcase left 16:02 cdg joined 16:04 Xal left 16:06 cdg left, Xal joined
HoboWithAShotgun jnthn++, timotimo++ #lovelyPeople 16:06
16:07 khw joined
Geth doc: a27ba6507b | (Zoffix Znet)++ | doc/Language/regexes.pod6
Rewrite section on `**` regex quantifier

  - Reduce prose on Range variants (examples show them already)
  - Make examples show the actual matched content rather than True/False
  - Explain how to write more complex Ranges and values
  - Document newly-implemented semantics for edge cases:
Rakudo impl: github.com/rakudo/rakudo/commit/681d6be974 Spec: github.com/perl6/roast/commit/99c822abde
synopsebot Link: doc.perl6.org/language/regexes
16:12 lancew joined 16:15 xiaomiao joined 16:22 cdg joined 16:27 cdg left 16:30 nadim left, HoboWithAShotgun left 16:37 nadim joined 16:42 nadim left
pmurias AlexDaniel: is there a serious issue stopping astral plane unicode characters from being supported by the irc log? 16:44
16:44 isBEKaml joined
AlexDaniel pmurias: kinda. Just this: irclog.perlgeek.de/perl6/2017-10-01#i_15241846 16:45
pmurias: it was working just fine and then got broken after some update 16:46
at first even ␤ was rendering as ?, but jdv79++ offered his help and fixed that 16:47
jdv79 also outlined steps to fix the remaining issue and that was… a few weeks ago? 16:48
16:48 lancew left
chansen_ github.com/moritz/ilbot/commit/65e...e5a99f0541 16:49
ugexe tbrowder: the meta6.json is always used the same no matter where it comes from 16:51
16:52 TreyHarris left
ugexe and if all your modules are on CPAN you don't really need them in the ecosystem too 16:56
16:57 cschwenz joined 17:05 TreyHarris joined 17:10 cschwenz left
tbrowder ugexe: what about conflicts between the two such as version number taken from the tar ball file name? or the source-url? do they have to agree? 17:11
ugexe cpan sets the source-url, and the version number is not taken fro the tar ball file name 17:12
tbrowder okay, so i can eliminate source-url if i no longer use the ecosystem? 17:14
Geth ecosystem: titsuki++ created pull request #369:
Add Geo::Hash to ecosystem
ecosystem: f8389151bd | (Itsuki Toyota)++ | META.list
Add Geo::Hash to ecosystem

See github.com/titsuki/p6-Geo-Hash
ecosystem: 32f3d41ae2 | (Itsuki Toyota)++ (committed using GitHub Web editor) | META.list
Merge pull request #369 from titsuki/add-geo-hash

Add Geo::Hash to ecosystem
teatime does modules.perl6.org/ index CPAN-only modules? 17:16
17:17 domidumont left 17:18 domidumont joined, wamba joined 17:19 Pilu left 17:30 piojo left 17:31 eroux joined 17:39 Aaronepower joined 17:43 zakharyas joined 17:48 cdg joined 17:52 cdg_ joined, tomred_ joined
tomred_ I'm trying to build rakudo 2017.07 on ubuntu. I can't configure. I get "Unable to locate parrot_config" What other packages do I need to install? 17:55
17:55 cdg left 17:56 Zoffix joined, releasable6 left, releasable6 joined
Zoffix tomred_: that's a weird error. Parrot is a thing of the past. Is it possible you have some antient rakudo page installed that's interfering? 17:57
huggable: deb
huggable Zoffix, CentOS, Debian, Fedora and Ubuntu Rakudo packages: github.com/nxadm/rakudo-pkg/releases
Zoffix tomred_: ^ you can just install these debs instead of building anything
(more recent than 2017.07 too)
17:58 darutoko left 17:59 eroux left, releasable6 left 18:00 releasable6 joined
tomred_ Let me check that I got the latest version 18:01
Zoffix s/antient/ancient/; s/page/package/; # >_<
tomred_ I must have downloaded an old version, the latest.tar.gz has a MoarVM directory whereas the previous one I had didn't. 18:05
18:14 lucasb joined, zakharyas left, HoboWithAShotgun joined 18:16 domidumont left 18:31 evalable6 left, HoboWithAShotgun left, evalable6 joined, ChanServ sets mode: +v evalable6 18:32 domidumont joined 18:33 knobo joined 18:39 BenGoldberg joined 18:44 ChoHag joined 18:48 Xal left, thunktone left 18:50 Xal joined 18:55 leah2 left 19:00 leah2 joined
Xliff m: +False.say 19:07
camelia WARNINGS for <tmp>:
Useless use of "+" in expression "+False.say" in sink context (line 1)
Xliff m: say +False 19:08
camelia 0
Zoffix m: +False .say
camelia 0
Zoffix precedence
19:13 tomred_ left 19:15 epony joined, zakharyas joined 19:20 eliasr left, knobo left 19:21 vike left 19:23 geekosaur left 19:25 lucasb left
Zoffix 22 dists on CPAN and looks like all of them are in p6c eco... 19:30
19:31 knobo joined
Geth ecosystem: 51557dd738 | (Zoffix Znet)++ (committed using GitHub Web editor) | META.list
19:34 geekosaur joined 19:36 knobo left
Geth modules.perl6.org/cpan-support: b192b4821a | (Zoffix Znet)++ | 5 files
Implement CPAN metas fetcher
19:37 zakharyas left
Geth modules.perl6.org/cpan-support: cbb602ce63 | (Zoffix Znet)++ | bin/build-project-list.pl
Remove duplicate constant
19:39 TEttinger joined 19:41 vike joined 19:43 cono joined 19:49 brimonk left 19:59 cdg_ left 20:13 leont joined 20:20 Aaronepower left 20:23 domidumont left 20:25 ChoHag left 20:35 Cabanossi left 20:38 Cabanossi joined 20:39 kaare_ left, kaare_ joined 20:44 Aaronepower joined 20:45 kaare_ left 20:47 kaare_ joined 20:48 geekosaur left 20:51 geekosaur joined 20:56 leont left, cdg joined, leont joined 20:57 ChoHag joined 21:05 p6steve joined 21:07 setty1 left 21:10 abraxxa joined, kaare__ joined 21:11 leont left 21:13 kaare_ left 21:14 abraxxa left 21:25 p6steve left 21:31 buggable left 21:32 buggable joined, ChanServ sets mode: +v buggable
buggable New CPAN upload: Bailador-0.0.13.tar.gz by UFOBAT www.cpan.org/authors/id/U/UF/UFOBA....13.tar.gz 21:32
Zoffix \o/
buggable: <3
21:36 Cabanossi left 21:38 Cabanossi joined
Zoffix hm 21:39
Zoffix isn't happy with App::Mi6
teatime ? 21:43
21:43 leont joined
Zoffix I created an almost empty README.md and then refused to upload to CPAN because the unstashed files *it* created were still uncommited :P 21:44
It's better than nothing of course, but I think I'll roll my own upload… eventually 21:45
"Error: Use of uninitialized value $last in numeric le (<=) at lib5/Buggable/CPANUploads.pm line 23" :( 21:52
Looks like buggable is… a bit buggly
21:54 buggable left 22:03 buggable joined, ChanServ sets mode: +v buggable
buggable New CPAN upload: Pastebin-Shadowcat-2.001001.tar.gz by ZOFFIX www.cpan.org/authors/id/Z/ZO/ZOFFI...001.tar.gz 22:03
22:04 hahainternet is now known as death2halloween
Zoffix k; take #2 22:04
Zoffix uploads another module
buggable: eco author:zoffix
buggable Zoffix, Found 35 results: Acme::Anguish, IRC::Client, WWW, GlotIO, CoreHackers::Sourcery. See modules.perl6.org/s/author%3Azoffix
Zoffix ok, now mi6 ouright nukes my README.md :( 22:06
22:09 cdg left 22:14 buggable left 22:16 buggable joined, ChanServ sets mode: +v buggable 22:18 rindolf left 22:20 buggable left 22:21 BenGoldberg left 22:22 cdg joined 22:25 buggable joined, ChanServ sets mode: +v buggable, buggable left, pecastro left 22:26 buggable joined, ChanServ sets mode: +v buggable
buggable New CPAN upload: Number-Denominate-1.001001.tar.gz by ZOFFIX www.cpan.org/authors/id/Z/ZO/ZOFFI...001.tar.gz 22:26
22:34 cdg left 22:36 robertle left
buggable New CPAN upload: Acme-Anguish-1.001002.tar.gz by ZOFFIX www.cpan.org/authors/id/Z/ZO/ZOFFI...002.tar.gz 22:36
Zoffix yey. the bot finally works right
22:37 wamba left 22:39 isBEKaml left 22:40 pmurias left 22:41 ShalokShalom_ left 22:42 arnsholt left
timotimo okay, now to learn how to sign up for cpan 22:44
22:45 arnsholt joined
timotimo /(readme|\.html|\.txt|\.[xy]ml|\.json|\.[pr]df|\.pod)(\.gz|\.bz2)?$/i 22:46
this is how pause detects documentation
... no md support? :\
Juerd Given the popularity of md it might be useful to work on a template for documenting Perl 6 projects with it. 22:52