»ö« 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.
timotimo nice. 00:03
that's surely also friendlier on the GC :)
AlexDaniel timotimo: that's… not that much data actually? Even if it was fully leaked I'd be fine with it… :D 00:04
let's say 20kB per query, you'd need to use camelia (m: ) whooping 50 times to leak a 1 MB 00:06
timotimo wellllll 00:08
depends entirely on how many objects you split the data over :D
tobs AlexDaniel: the role idea is proving to be difficult. 00:09
AlexDaniel tobs: why? Something strips the mixin? 00:10
tobs m: say ("msg" but role {}).^name # IRC::Client relies on .^name to see which events to raise
evalable6 Str+{<anon|1>}
AlexDaniel damn
then mix into the inside of msg, screw it
tobs >:D 00:11
that might even read better
nick => ~$<nick> but FromDiscord
AlexDaniel right
timotimo give the mixin a ^name method, too :D 00:12
Geth whateverable: taboege++ created pull request #358:
Evalable: respond to discord even if camelia is present
00:26
Xliff Yawn... 00:28
I hate naps. They sneak on you and strike when you least expect them. 00:29
AlexDaniel tobs: why not declare FromDiscord in Discordable.pm6 ?
tobs: you'd need to `use Whateverable::Discordable;` in evalable but that's fine
tobs AlexDaniel: I wanted to keep the `unit role` with less indentation 00:30
AlexDaniel tobs: can't it be inside anyway?
tobs can it? Let me try 00:31
AlexDaniel also now that I look at it, you don't need `is export` on roles? 00:32
tobs It works when I declare it `my role FromDiscord is export` inside the `unit role`. Without `my` it complains about role scope being too generic 00:36
AlexDaniel I'd prefer that
tobs test just finished as well 00:37
AlexDaniel Bits.pm6 is like a junk box, not cool
tobs AlexDaniel: updated 00:39
Geth whateverable: efd7e911f3 | (Tobias Boege)++ | 3 files
Evalable: respond to discord even if camelia is present

Normally evalable6 leaves queries to camelia when she is around. But camelia does not support responding to discord, so in that case
  evalable6 should not restrain itself.
This is made possible by mixing a FromDiscord role into the nick field of messages (not the message itself because that would break event dispatch in IRC::Client) and testing for that while deciding whether to leave the message to camelia or not.
00:39
whateverable: d93927994a | (Aleks-Daniel Jakimenko-Aleksejev)++ (committed using GitHub Web editor) | 3 files
Merge pull request #358 from taboege/discordable-and-camelia

Evalable: respond to discord even if camelia is present
tobs Thanks, maybe you can remove that now-useless `use Whateverable::Bits` from Discordable.pm6 real quick. I overlooked it. 00:41
AlexDaniel tobs: you can commit that directly
tobs: if you want to work on something jaw-dropping, then maybe github.com/perl6/whateverable/issues/352
timotimo it'd be great if the discord bot could pick apart the geth messages into individual "bigger" messages on the discord side ... 00:42
AlexDaniel shrugs
discord6 is not part of whateverable
AlexDaniel discord6: source 00:43
AlexDaniel I can't find the issue tracker for it… 00:44
AlexDaniel evalable6: source 00:45
evalable6 AlexDaniel, github.com/perl6/whateverable
AlexDaniel tyil: ↑ discord6 probably needs source/help commands, and there's a cool feature request from timotimo :)
Geth whateverable: 8a573ba550 | (Tobias Boege)++ | lib/Whateverable/Discordable.pm6
Remove useless `use`
00:47
Xliff timotimo: Did you modify --stagestats for an option to return to the old format? 01:32
timotimo not yet; feel free to mock up some code or come up with a name for --boring-stagestats or whatever :) 01:34
timotimo o/ 01:35
Xliff LOL. OK. 01:36
gn
timotimo: Either that, or I need to put in some ... like... work... and fix my own parsing routines. :p 01:37
But yah. Good night.
Geth ¦ problem-solving: vrurg assigned to AlexDaniel Issue Alert system for core developers github.com/perl6/problem-solving/issues/95 03:34
¦ problem-solving: AlexDaniel assigned to rba Issue Alert system for core developers github.com/perl6/problem-solving/issues/95 03:35
tyil AlexDaniel: discord6 is a nodejs application that I didn't write 05:54
AlexDaniel oh 05:55
tyil I know there's a Discord module and an IRC::Client module, so it should be reasonably easy to write a similar thing in perl 6 05:56
however, resource usage of a perl 6 variant will be much higher
AlexDaniel I just assumed that discord6 was written in perl6 :) 06:01
bisectable was first written in perl5, and was called exactly “bisectable” 06:02
then after a rewrite it became bisectable6 :)
tyil I may have to reconsider the "6" part anyway, pending a language rename :p 06:08
LionelJuspin hi 06:38
what is the "grammer" in the perl6 aspect? 06:39
Geth doc: a6bb085afd | (JJ Merelo)++ | doc/Language/typesystem.pod6
Fixes declaration of BUILD, refs #2977
07:15
synopsebot Link: doc.perl6.org/language/typesystem
masak good antenoon, #perl6 08:01
tellable6 2019-08-25T07:10:35Z #perl6 <Xliff> masak Has any of Alma made it into Perl6, yet?
masak yes, but before Alma was even 007 :)
masak realizes to his great satisfaction that `unit sub MAIN` works 08:02
Geth doc: JJ self-assigned app.js is generated with the wrong permissions github.com/perl6/doc/issues/2978
461c41f9ad | (JJ Merelo)++ | app.pl
08:09
antoniogamiz o/ 08:15
is there a module to make terminal progress bar?
like [10% ====> ] 08:16
jjmerelo hey 08:28
Geth doc: 9108f1a7e7 | Antonio++ | type-graph.txt
Add missing types to type-graph, fix #2976
jjmerelo the new version of the site is being tested now at docs-stage.p6c.org/ 08:29
Except for some URLs that were generated by error (syntax/with.html, I'm looking at you) and some new URLs, it should be pretty much the same as the old one
Geth doc: JJ assigned to antoniogamiz Issue Templates need to be updated github.com/perl6/doc/issues/2979
b3f7370b63 | (JJ Merelo)++ | README.md
08:40
Geth doc: fe27d37a49 | Antonio++ | template/footer.html
Update footer template, fix #2979
09:34
cpan-p6 New module released to CPAN! Gnome::GObject (0.14.1) by 03MARTIMM 11:37
scimon antoniogamiz: Term::ProgressBar? It's rather out of date but might do what you need. 11:48
tellable6 scimon, I'll pass your message to antoniogamiz
Geth doc: 0803868a9b | (JJ Merelo)++ | README.md
Adds the right instructions for serving, closes #2980
12:34
Geth doc: 4591f2a288 | Antonio++ | type-graph.txt
Fix type in type-graph entry
12:41
Geth doc: 1ec0511f25 | Antonio++ | type-graph.txt
Fix type in type-graph entry
12:44
doc: 2a33010ad6 | Antonio++ | type-graph.txt
Fix type in type-graph entry
Geth doc: 184e3c156b | (JJ Merelo)++ | type-graph.txt
Re-adds stuff
12:49
tbrowder regex/grammar question: in the rakudo grammar there is a token "opener" defined as a character class something like "<[a b c]>" 13:48
later it is used in the definitions of other tokens like this "<?opener>" 13:49
my questions are what does that syntax mean and does it consume a character in the input text stream? 13:53
timotimo <?foo> and <!foo> are zero-width 13:54
tbrowder ok? that helps a bunch--thanks?
arg: ok! thanks! 13:55
tbrowder i have not been able to get a dump on the cursor so i was parsing blind. that seems like a good case for doing some testing nqp grammar in p6 13:57
SmokeMachine hi! 14:13
tbrowder SmokeMachine: hi! i see lots of work lately. i need to revisit Red i think. 14:37
SmokeMachine tbrowder: yes, please do that! :) 14:40
antoniogamiz o/ 14:58
tellable6 2019-08-27T11:48:06Z #perl6 <scimon> antoniogamiz: Term::ProgressBar? It's rather out of date but might do what you need.
antoniogamiz scimon: I have seen Terminal::Spinners 15:00
thanks anyway
mmm anyone knows how can I get the usage output from the code? 15:04
antoniogamiz I mean, when you have a main and you do not use the options correctly, some comments appear 15:04
jjmerelo Still testing the new document generation tool. Check it out at docs-stage.p6c.org/ 15:16
scimon www.youtube.com/watch?v=yt8SrZ_V_50 I may have given a talk about that. 15:28
AlexDaniel jjmerelo: it looks exactly the same?
scimon www.slideshare.net/SimonProctor8/p...-scripting : With slides ;)
AlexDaniel: There's good though right?
AlexDaniel jjmerelo: no syntax highlighting though 15:29
scimon: yeah, I guess so
jjmerelo: “ Generated from PODPATH.”
jjmerelo AlexDaniel we're not using it for the time being.
AlexDaniel: we're fixing this right now
scimon jjmerelo: I did a search for $/. It showed in the autocomplete list but the link went to docs-stage.p6c.org/syntax/$%5c$SOLIDUS 15:30
(Which is a 404)
jjmerelo If you see anything else, please raise an issue in github.com/antoniogamiz/Perl6-Docu...issues/113 or perl6/doc
scimon antoniogamiz: #| and #= are your friend for auto usage generation. 15:31
antoniogamiz scimon: good 15:32
jjmerelo scimon: please create an issue. We'll fix it tomorrow. Anything else you observe, please let us know 15:33
scimon antoniogamiz got there before me :) 15:34
antoniogamiz sorry :D 15:35
jjmerelo scimon: he's fast 15:35
scimon No problems. ;) 15:37
rba About changing the name: itsfoss.com/gimp-fork-glimpse/ 15:43
guifa Interesting. I tried two separate methods to read in a data file of entries with four items each. The first was for lines() { my (\a, \b, \c, \d) = $_.split($delimiter) }. The other was for lines() -> \a, \b, \c, \d { … }  16:04
The first one consistently beats out the second one, but it seems like the second one should be a smidgen faster or at least about equal
jjmerelo OK, that should be fixed 17:00
jjmerelo goes down to the beach
timotimo guifa: do you mean the second one has a different separator set on the file handle or something? 17:02
guifa First example used a | b | c | d \n a | b | c | d \n a | b | c | d \n 17:03
(where | is the delimiter, sans spaces but trying to keep it readable here) 17:04
Second example used a \n b \n c \n d \n a \n b \n c \n d \n a \n b \n c \n d \n
timotimo ah, ok
guifa It’s not a huge difference, but the former is about 20% faster. Maybe the optimizer realizes that for $foo.lines { @bar.push: $_.split($delim) } doesn’t need a new context, but the for $foo.lines -> \a, \b, \c, \d { … } does require it? I remember someone (you or jnthn) talking about that could make post-fixed forms in the past a bit faster 17:09
s/optimizer/$0 \/ compiler 17:10
tbrowder .tell jjmerelo i want to create a new docs page that shows all the valid "opener" chars from the rakudo repo: src/Perl6/Grammar.nqp. the page could also be used for other char sets of interest that have no other home. given the proposal is acceptable, i'm open to suggestions for (1) the file name (Language/?.pod6), (2) the TITLE, (3) the SUBTITLE, and (4) the sort section and order. 22:30
tellable6 tbrowder, I'll pass your message to jjmerelo
Herby_ o. 23:09
o/
gdonald how can I know if a class is defined? 23:12
m: my $klass = 'Foo'; say $klass.defined
evalable6 True
jnthn m: say ::<Foo>:exists 23:14
evalable6 False
jnthn m: class Foo { }; say ::<Foo>:exists
evalable6 True
jnthn gdonald: ^^, and replace <...> with {$name} if it's a name in a variable
gdonald thank you
jnthn Ah, and also ::(...) is useful if it's a multi-part name too
gdonald m: use MONKEY; my $klass = 'Foo'; my $k = 'class Foo {};'; EVAL $k unless ::{$klass}:exists; EVAL $k unless ::{$klass}:exists 23:42
evalable6 (exit code 1) 04===SORRY!04=== Error while compiling /home/bisectable/git/wh…
gdonald, Full output: gist.github.com/aafedc635cf29e89e3...94d729bfb9