»ö« 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.
lookatme morning, morning . 01:09
sammers morning 01:10
Geth doc: a6365f339d | (Zoffix Znet)++ | doc/Type/IO/Handle.pod6
[io grant] Document IO::Handle.words/&words
01:32
Zoffix .tell you should add yourself to the credits: github.com/rakudo/rakudo/blob/nom/CREDITS so release tools pick up the name you want when cutting release 01:36
yoleaux Zoffix: I'll pass your message to you.
geekosaur heh 01:39
lookatme :)
Zoffix gahg 01:50
.tell eater you should add yourself to the credits: github.com/rakudo/rakudo/blob/nom/CREDITS so release tools pick up the name you want when cutting release
yoleaux Zoffix: I'll pass your message to eater.
Zoffix yoleaux: stupid bot. What do we pay you for?
. 01:51
"freenode -- │ you: Erroneous Nickname"
Guess those messages will accumulate forever
geekosaur yep
last time I ran a bot with a tell function, I weeded the message list once a month 01:52
tony-o robertle: do you want to send me a PR and i'll merge it in? 04:41
eater hmm how does tell work if I'm already online? 07:26
yoleaux 01:50Z <Zoffix> eater: you should add yourself to the credits: github.com/rakudo/rakudo/blob/nom/CREDITS so release tools pick up the name you want when cutting release
eater oh like that
robertle tony-o: will do! 07:38
tony-o thank you sir 07:44
tbrowder hi #perl6 10:59
i notice that, according to the docs, perl6 pod can be rendered as a man page, but i don't see a Pod::To::Man module listed. maybe zef can someday automagically install man pages on *nix systems. 11:03
moritz maybe start by writing Pod::To::Man? :-) 11:04
tbrowder but how is that done now with the --man option? 11:05
i assume there must be one or more of the pod6 man sections in the code, but something must be rendering that to man format--or not, just text in man format i guess--haven't tried it. 11:07
moritz which --man option? 11:08
tbrowder see the docs, language, pod, bottom of the page: rendering pod 11:09
moritz that will just use the normal --pod output 11:11
so it uses Pod::To::Text
tbrowder ok, thanks
infrabyte q 13:06
robertle are there any guarantees around .tap executions on the same supply in terms of concurrency? can I rely on the block within the tap code to not be executed in parallel? 13:52
moritz robertle: iirc you can if you use .act instead of .tap
jnthn Supplies are by default serial 13:54
You *can* find a way to get a supply that won't deliver messages one at a time
But by default they process one message at a time 13:55
(The way being the unsanitized-Supply method or whatever it's called on Supplier)
robertle super, thanks!
jnthn .act promises it even then
But you're pretty safe with tap
[Coke] biked in today for "ride your bike to work day". ow. 17:28
zostay m: my Pair @p = a => 1, b => 2; @p>>.key.WHAT.say 17:29
camelia (Array[Pair])
zostay that doesn't feel right 17:29
m: my Pair @p = a => 1, b => 2; @p>>.key.say 17:30
camelia [a b]
zostay m: my Pair @p = a => 1, b => 2; @p.map(*.key).WHAT.say 17:31
camelia (Seq)
zostay m: my Pair @p = a => 1, b => 2; @p.map(*.key).say
camelia (a b)
timotimo i'd have a hard time biking to prague 18:00
jmerelo Just sent a pull request to a repo with "awesome machine learning" stuff github.com/josephmisiti/awesome-ma...g/pull/379 18:37
There was nothing on Perl. I added also a couple of Perl 6 libraries. There's not a whole lot of any of them, sadly.
hythm m: my $var2 = defined my $var1 ?? "y" !! "n" 19:49
camelia ( no output )
hythm m: my $var2 = defined my $var1 ?? "y" !! "n"; say $var2.perl
camelia Bool::True
hythm why $var2 is Bool and not "n"? 19:50
m: my $var2 = my $var1 ?? "y" !! "n"; say $var2.perl
camelia "n"
hythm m: my $var2 = my $var1.defined ?? "y" !! "n"; say $var2.perl 20:00
camelia "n"
hythm hmm, Whats the difference between calling defined $var and $var.defined!
Geth doc: the-eater++ created pull request #1315:
Add docs for Proc::Async.ready
20:05
webart feeds ... ("==>") ... when are they useful? 20:07
I like the "style" of he syntax for some reason 20:08
perlpilot webart: they're currently useful when you want to better indicate data flow in your code 20:11
webart since it seems like you are building a sort of processing pipeline
perlpilot webart: or change the direction of flow to be more "natural" 20:12
webart yeah ok
perl6 -e 'say "/usr/share/dict/words".IO.slurp.lines.grep("zygote") ' takes .8 seconds
mst I bet most of that is startup overhead 20:13
webart perl6 -e 'my @arr = "/usr/share/dict/words".IO.slurp.lines(:eager) ; @arr ==> grep({m/<<zygote>>/}) ==> my $stuff; say $stuff'
takes 20 seconds :-)
ok very bad example
mst: agreed
mst also what about
webart startup time
mst "/usr/share/dict/words".IO.slurp.lines(:eager).grep("zygote") ? 20:14
mst suspects it's the eagerness that's screwing the performance in the second case 20:14
webart I thought maybe ==> was optimized for something esoteric along with what perlpilot mentioned
perlpilot webart: there's a promise of parallelization, but I don't think it's implemented yet. 20:15
webart obviously using ==> grep() instead of .grep() is dumb but I wondered if there was some performance area where it excelled 20:16
perlpilot: aha! that is it!
perlpilot S06 has some info on feed ops and what's guaranteed or not
I dunno if any of that made it to docs.perl6.org though
webart perlpilot: one day massive networked AI in the sky applications will use it :) 20:18
to "feed" on us 8-{
www.youtube.com/watch?v=BrNs0M77Pd4 20:19
perlpilot webart: If you have interest in using the feed ops for their implicit parallelization that is not yet implemented, you could take jnthn up on his offer (6guts.wordpress.com/2017/05/12/loo...-funding/) and fund him to make it happen :-) 20:21
webart :-D excellent 20:22
nine It's kinda scary how freely available one's data is today. I just stumbled over glidertracker.de/#id=D-KFMF (go to Settings, Select 24h) That's my flight today. 20:57
jnthn nine: ooh, some of it was over .cz, looks like? :) 21:05
nine jnthn: I'd say most of it actually. Like on many days, conditions in CZ were just better than down here :) 21:10
jnthn Was certianly a warm/clear day up here in Prague. :) 21:13
jnthn hasn't yet been to that corner of the Czech Republic 21:14
Zoffix webart: where did you learn about `:eager` argument for .lines? 22:16
Geth doc: e016b7efc0 | eater++ (committed by Zoffix Znet) | doc/Type/Proc/Async.pod6
Add docs for Proc::Async.ready (#1315)
22:18
Zoffix hythm: no difference, other than `defined $foo, $bar` will be an error and will require parens: `defined($foo), $bar`. Perl 6 has many routines for those who prefer "functional" programing, which just delegete to a method call, in this case, `defined $foo` just calls `$foo.defined` 22:26
hythm: so defined my $var1 ?? "y" !! "n" is same as `defined( my $var1 ?? "y" !! "n" )` 22:27
And is always true
zostay: FWIW, »... is not the same as .map(*...). Hyper will descend into iterables for nodal methods, while .map won't. 22:30
m: dd (^3, [^4], '5')».Numeric
camelia ($(0, 1, 2), $[0, 1, 2, 3], 5)
Zoffix m: dd (^3, [^4], '5').map: *.Numeric
camelia (3, 4, 5).Seq
Zoffix or rather... methods that are nodal will descend 22:35
m: dd (^3, [^4], '5')».[0] 22:36
camelia (0, 0, "5")
Zoffix m: dd (^3, [^4], '5')».head
camelia ($(0, 1, 2), $[0, 1, 2, 3], "5")
Zoffix webart: anyway, reason I asked is because there's no (longer) such an arg and if any no-archived materials mention it they need to be updated 22:39
\o