Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2017-10-10

Perl 6 | Reference Documentation | Rakudo

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:01 mcmillhj joined #perl6
00:08 AlexDaniel_ timotimo: well, it says “syntax error”
00:08 AlexDaniel_ so it's very on point
00:08 geekosaur p5's not known for awesome error messages
00:10 ryn1x joined #perl6
00:13 * AlexDaniel_ attempts unclosed quote in perl5 and laughs
00:13 AlexDaniel_ hmmmmm but it does point to the right line!
00:13 * AlexDaniel_ takes back his laugh
00:15 HoboWithAShotgun doh!
00:16 HoboWithAShotgun i thougt in a construct like: if $obj does SomeRole would test wether $ob is doing a role or not
00:16 HoboWithAShotgun that introduced an interesting bug
00:17 HoboWithAShotgun m: role a { method x {}; }; my a $x; $a does a; say a.^methods.elems;
00:17 camelia rakudo-moar e11f4e: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Variable '$a' is not declared␤at <tmp>:1␤------> 3role a { method x {}; }; my a $x; 7⏏5$a does a; say a.^methods.elems;␤»
00:18 HoboWithAShotgun m: role a { method x {}; }; my a $x; $x does a; say x.^methods.elems;
00:18 camelia rakudo-moar e11f4e: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Undeclared routine:␤    x used at line 1␤␤»
00:18 HoboWithAShotgun m: role a { method x {}; }; my a $x; $x does a; say $x.^methods.elems;
00:18 camelia rakudo-moar e11f4e: OUTPUT: «Cannot use 'does' operator with a type object.␤  in block <unit> at <tmp> line 1␤␤»
00:18 HoboWithAShotgun m: role a { method x {}; }; class A does a {}; my A $x = A.new; $x does a; say $x.^methods.elems;
00:18 camelia rakudo-moar e11f4e: OUTPUT: «2␤»
00:19 HoboWithAShotgun which method wins here? the last added? and can i "undo" a role from an obj
00:23 timotimo you can't, unless you store the original object and use "but" instead of "does"
00:23 mson How do I define a custom printing for my object?
00:23 timotimo mson: override the gist method, or the Str method
00:24 mson Thanks
00:24 timotimo gist is meant to "give you the gist" as human-friendly abbreviated output
00:24 timotimo for example, lists gist to have spaces instead of comma and quotes between the elements, and they stop at the 100th element
00:24 ryn1x joined #perl6
00:24 timotimo m: my @a = <hi there 1 2 3 foo bar>; say @a.gist; say @a.Str
00:24 camelia rakudo-moar e11f4e: OUTPUT: «[hi there 1 2 3 foo bar]␤hi there 1 2 3 foo bar␤»
00:25 timotimo and Str is joined by spaces, too, but doesn't have opening and closing brackets
00:25 mson Ah, nice distinction. So if I don't override gist but do override Str, which does say call?
00:25 timotimo m: my %foo = a => 1, b => 2, c => 3; say %foo.gist; say %foo.Str
00:25 camelia rakudo-moar e11f4e: OUTPUT: «{a => 1, b => 2, c => 3}␤a 1␤b     2␤c     3␤»
00:25 timotimo say calls gist, put is like say but calls Str instead
00:25 geekosaur say always does .gist
00:26 timotimo but if you do 'say "something involving $foo"' it'll use .Str because that does regular string concatenation before say even enters the picture
00:26 timotimo in that case you can 'say "something involving ", $foo' and i think that uses gist for $foo then
00:27 geekosaur ...it suddenly occurs to me that if we ever get that p5 optimization then it could change program behavior
00:27 geekosaur (where interpolations in that context get rewritten to not be interpolations)
00:29 timotimo please elaborate?
00:30 geekosaur hm, actually I think p5 always turns that into concat, so maybe not.
00:30 geekosaur was thinking p5 rewrites to not be an interpolation, thereby saving some string (re)allocations, but if it did so in something like say then it could change a .Str into a .gist
00:30 timotimo in p6 that also gets turned into straight up &infix:<~> invocations i believe
00:30 geekosaur but I think concat in p5 also always does .Str?
00:31 geekosaur er, in p6
00:31 timotimo yes, concat always uses Str, or rather .Stringy i guess?
00:31 geekosaur it'd be a potential problem if it did .gist
00:31 mr-foobar joined #perl6
00:32 geekosaur (but a firther optimization mght be to save mroe allocations by recognizing it could avoid the contact when it;s being done for .say --- but then you have to make sure it .Str-s instead of letting say .gist it)
00:32 geekosaur ... what is with my typing
00:32 geekosaur avoid the concat
00:34 ryn1x joined #perl6
00:34 timotimo it could very well be our strands implementation conveys that potential benefit already
00:36 mson Gotcha, thanks both.
00:37 mson I'm on the docs/routine/gist page, but it lists so many methods. Should I override the Mu method, or something else?
00:38 timotimo going to bed, gnite!
00:38 mson night
00:38 timotimo there'll only be the method gist you put into your class that'll be relevant
00:39 geekosaur youy change the type/class you want to affect it in; anything else will use the .gist of the thing it's trying to stringify
00:39 timotimo it's important to know that what's before the : in the signature (like Blob:D) is what the method is called on
00:39 timotimo o/
00:40 Herby_ \o
00:42 geekosaur btw https://rt.perl.org/Public/Bug/Display.html?id=123016 is the sort of thing that 'leaks' how .gist is implemented and inherited or not inherited
00:43 llfourn joined #perl6
00:45 geekosaur (caused by the thing using it being handed something it only knows as Mu, so it uses Mu.gist instead of the specific class's .gist. which is arguably incorrect OO but the runtime cost of doing it right in at least some cases is rather high)
00:54 ryn1x joined #perl6
00:55 mson` joined #perl6
00:56 mson` Can someone help me understand "No such method <method> for invocant of type 'Any'"? Code is here if it helps: https://pastebin.com/3cQz8vmg
00:58 geekosaur would help to know which method and where the error occurs
01:00 mson Oh yeah. In gist, line 19, after the say on line 25.
01:01 astj joined #perl6
01:07 geekosaur oh, I think you are doing this incorrectly
01:07 geekosaur the bare .concat_list_str does not operate on 'self' but on $_
01:08 geekosaur $_ is Any
01:08 geekosaur (it is not set to the current instance)
01:09 geekosaur you either want concat_list_str to be a method on Node and use $.head.concat_list_str, or to be a sub and call it without the .
01:09 geekosaur or explciitly use self.concat_list_str(...)
01:09 geekosaur likewise with the recursive call
01:11 mson` Aha. sub was what I wanted. Thanks.
01:12 Herby_ what does everyone use for parsing html in p6?
01:12 Herby_ BeautifulSoup makes it easy when I'm poking around Python
01:25 AlexDaniel_ .seen Herby
01:25 yoleaux I saw Herby 5 Nov 2016 22:43Z in #perl6: <Herby> \o
01:25 AlexDaniel_ .seen Herby_
01:25 yoleaux I saw Herby_ 01:12Z in #perl6: <Herby_> BeautifulSoup makes it easy when I'm poking around Python
01:26 AlexDaniel_ .tell Herby normally Gumbo ( https://github.com/Skarsnik/perl6-gumbo ), but see RT #131003
01:26 yoleaux AlexDaniel_: I'll pass your message to Herby.
01:26 AlexDaniel_ oops
01:26 AlexDaniel_ .tell Herby_ normally Gumbo ( https://github.com/Skarsnik/perl6-gumbo ), but see RT #131003
01:26 yoleaux AlexDaniel_: I'll pass your message to Herby_.
01:26 synopsebot RT#131003 [open]: https://rt.perl.org/Ticket/Display.html?id=131003 [ANNOYING][SEGV] Heap corruption when using Gumbo
01:33 ryn1x joined #perl6
01:39 matiaslina joined #perl6
01:53 MilkmanDan joined #perl6
01:54 ilbot3 joined #perl6
01:54 Topic for #perl6 is now »ö« Welcome to Perl 6! | https://perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:,  or /msg camelia p6: ... | irclog: http://irc.perl6.org or http://colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend!
02:03 mr-foobar joined #perl6
02:04 yht joined #perl6
02:04 mcmillhj joined #perl6
02:04 bdmatatu joined #perl6
02:15 matiaslina joined #perl6
02:22 ryn1x joined #perl6
02:30 mcmillhj joined #perl6
02:34 yht joined #perl6
02:37 noganex joined #perl6
02:42 ufobat_ joined #perl6
02:43 stux|RC joined #perl6
02:48 Herby_ joined #perl6
02:48 thou joined #perl6
02:49 Herby_ AlexDaniel: thanks for the gumbo
02:49 yoleaux 01:26Z <AlexDaniel_> Herby_: normally Gumbo ( https://github.com/Skarsnik/perl6-gumbo ), but see RT #131003
02:49 synopsebot RT#131003 [open]: https://rt.perl.org/Ticket/Display.html?id=131003 [ANNOYING][SEGV] Heap corruption when using Gumbo
02:50 Herby_ how do I find the index of an element in an array?  <john mary joseph sam> and I want to return the index of Mary
02:53 mson` joined #perl6
02:53 Cabanossi joined #perl6
02:56 geekosaur m: <john mary joseph sam>.grep('mary', :k).say
02:56 camelia rakudo-moar e11f4e: OUTPUT: «(1)␤»
02:56 cdg joined #perl6
02:57 geekosaur :k means return the key, which for a Positional is the index
02:57 Herby_ geekosaur: thanks
02:57 Herby_ my google-fu wasnt returning anything, other than an perl6maven article on a grep-index method
02:57 thou m: my @a = <john mary joseph sam mary>; sub find($needle, @haystack) { for @haystack.kv -> $k, $v { return $k if $v eq $needle }; return Nil; }; say find('mary', @a);
02:57 camelia rakudo-moar e11f4e: OUTPUT: «1␤»
02:58 thou ^ What happens when you don't realize grep has :k option
02:58 Herby_ haha that's about how I was trying to put it together :)
03:02 Herby_ another basic question: is it possible to do multiple assignments in one line?
03:02 Herby_ my $a; my $b;  $a, $b = 1, 2
03:02 weabot yes
03:03 weabot actually we'll see
03:03 weabot m: my $a; my $b; $a, $b = 1, 2
03:03 camelia rakudo-moar e11f4e: OUTPUT: «WARNINGS for <tmp>:␤Useless use of $a in sink context (line 1)␤Useless use of constant integer 2 in sink context (lines 1, 1)␤»
03:03 weabot not like this
03:04 ugexe m: my $a; my $b; ($a, $b) = 1, 2; say $a; say $b
03:04 camelia rakudo-moar e11f4e: OUTPUT: «1␤2␤»
03:04 weabot well here we go
03:04 Herby_ ahh ok
03:04 weabot and like this you can make a function return many values and assign them like this
03:04 Herby_ my @a; my $b; my @cats = <sam diane>; ($a, $b) = @cats; say $a; say $b;
03:04 Herby_ m: my @a; my $b; my @cats = <sam diane>; ($a, $b) = @cats; say $a; say $b;
03:04 camelia rakudo-moar e11f4e: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Variable '$a' is not declared. Did you mean '@a'?␤at <tmp>:1␤------> 3my @a; my $b; my @cats = <sam diane>; (7⏏5$a, $b) = @cats; say $a; say $b;␤»
03:04 mr-foobar joined #perl6
03:05 Herby_ m: my $a; my $b; my @cats = <sam diane>; ($a, $b) = @cats; say $a; say $b;
03:05 camelia rakudo-moar e11f4e: OUTPUT: «sam␤diane␤»
03:05 Herby_ great. thanks weabot
03:06 Herby_ I'm working my way through Automate The Boring Stuff, but using Perl 6 instead of Python of course
03:06 Herby_ and using Think Perl 6 as reference where I can
03:06 weabot m: sub f(0) { return ($x + 1), ($x + 2),($x + 3); } my $a; my $b; my $c; ($a, $b, $c) = f(0);
03:06 camelia rakudo-moar e11f4e: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Variable '$x' is not declared␤at <tmp>:1␤------> 3sub f(0) { return (7⏏5$x + 1), ($x + 2),($x + 3); } my $a; my ␤»
03:07 weabot m: sub f($x) { return ($x + 1), ($x + 2),($x + 3); } my $a; my $b; my $c; ($a, $b, $c) = f(0);
03:07 camelia rakudo-moar e11f4e: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Strange text after block (missing semicolon or comma?)␤at <tmp>:1␤------> 3 { return ($x + 1), ($x + 2),($x + 3); }7⏏5 my $a; my $b; my $c; ($a, $b, $c) = f(0␤    expecting any of:␤        in…»
03:07 weabot yup
03:07 * weabot goes on to an interpreter
03:08 weabot well it works in the interpreter
03:08 Herby_ hmm
03:09 weabot sub f($x) { return $x+1, $x+2, $x+3; } my $a; my $b; my $c; ($a, $b, $c) = f(0);
03:09 weabot right
03:09 weabot sub f($x) { return $x+1, $x+2, $x+3; } my $a; my $b; my $c; ($a, $b, $c) = f(0); put($a, $b, $c)
03:09 ugexe m: sub f($x) { return ($x + 1), ($x + 2),($x + 3); }; my $a; my $b; my $c; ($a, $b, $c) = f(0);
03:09 camelia rakudo-moar e11f4e: ( no output )
03:11 geekosaur combined on one line like that, it needs the ; after the sub definition
03:13 weabot oooh ok
03:17 TEttinger joined #perl6
03:17 mcmillhj joined #perl6
03:23 Cabanossi joined #perl6
03:32 matiaslina joined #perl6
03:34 bitrauser_ joined #perl6
03:35 mr-foobar joined #perl6
03:36 mcmillhj joined #perl6
03:48 bitrauser_ joined #perl6
03:52 Cabanossi joined #perl6
04:05 mr-foobar joined #perl6
04:07 mcmillhj joined #perl6
04:20 mcmillhj joined #perl6
04:22 ptlmrch joined #perl6
04:33 mr-foobar joined #perl6
04:35 Beth joined #perl6
04:48 kerframil joined #perl6
04:52 Cabanossi joined #perl6
05:00 ryn1x joined #perl6
05:03 mr-foobar joined #perl6
05:09 ryn1x joined #perl6
05:14 bitrauser_ joined #perl6
05:18 ryn1x joined #perl6
05:19 wamba joined #perl6
05:27 ryn1x joined #perl6
05:28 xtreak joined #perl6
05:36 ryn1x joined #perl6
05:41 aborazmeh joined #perl6
05:41 aborazmeh joined #perl6
05:46 lowbro joined #perl6
05:46 lowbro joined #perl6
05:47 Wiertek joined #perl6
05:55 ryn1x joined #perl6
06:04 domidumont joined #perl6
06:06 cdg joined #perl6
06:07 Cabanossi joined #perl6
06:09 domidumont joined #perl6
06:18 kid51 joined #perl6
06:27 b2gills joined #perl6
06:29 ryn1x joined #perl6
06:39 ryn1x joined #perl6
06:40 darutoko joined #perl6
06:41 someuser joined #perl6
06:44 domidumont joined #perl6
06:45 thunktone joined #perl6
06:46 abraxxa joined #perl6
06:47 patrickz joined #perl6
06:51 TimToady joined #perl6
06:53 ryn1x joined #perl6
06:53 thunktone joined #perl6
06:54 yht joined #perl6
06:56 andrzejku joined #perl6
07:02 ryn1x joined #perl6
07:02 jonas1 joined #perl6
07:04 mr-foobar joined #perl6
07:07 wamba joined #perl6
07:07 Cabanossi joined #perl6
07:11 ryn1x joined #perl6
07:25 ryn1x joined #perl6
07:34 Guest91556 joined #perl6
07:35 mr-foobar joined #perl6
07:41 araujo joined #perl6
07:41 araujo joined #perl6
07:42 dakkar joined #perl6
07:43 rindolf joined #perl6
07:43 thunktone joined #perl6
07:51 kerframil joined #perl6
07:51 eliv left #perl6
07:52 Cabanossi joined #perl6
07:59 ryn1x joined #perl6
08:04 ryn1x joined #perl6
08:06 sproctor joined #perl6
08:11 * lizmat clickbaits https://p6weekly.wordpress.com/2017/10/09/2017-41-the-case-for-empathy/
08:13 ryn1x joined #perl6
08:14 tyil hoelzro: I added a PR to the vim-perl6 repo
08:16 HoboWithAShotgun joined #perl6
08:22 xtreak joined #perl6
08:26 xtreak joined #perl6
08:27 Wiertek joined #perl6
08:27 ryn1x joined #perl6
08:30 holyghost joined #perl6
08:30 rgrau joined #perl6
08:36 mr-foobar joined #perl6
08:37 ryn1x joined #perl6
08:44 robertle joined #perl6
08:46 ryn1x joined #perl6
08:46 xtreak joined #perl6
08:49 xtreak_ joined #perl6
08:55 wamba joined #perl6
08:55 ryn1x joined #perl6
08:57 eliasr joined #perl6
09:06 mr-foobar joined #perl6
09:08 thunktone joined #perl6
09:29 ryn1x joined #perl6
09:33 thunktone Is it possible to use a Signature variable when defining a new sub?
09:33 thunktone m: my $sig=:(Str $word, Int $count); sub rep $sig {print "$word " for $count}; rep 'hello', 3;
09:33 camelia rakudo-moar e11f4e: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Missing block␤at <tmp>:1␤------> 3y $sig=:(Str $word, Int $count); sub rep7⏏5 $sig {print "$word " for $count}; rep '␤    expecting any of:␤        new name to be defined␤»
09:34 jnthn thunktone: No
09:34 ryn1x joined #perl6
09:34 mr-foobar joined #perl6
09:35 thunktone ok, thanks
09:35 aborazmeh joined #perl6
09:35 aborazmeh joined #perl6
09:37 sproctor @jnthn any plans for a cro 0.7.1 release including the recent bug fixes and the like?
09:37 Wiertek joined #perl6
09:41 jnthn sproctor: Yes, later this week, or next week, depending on how much time I find and how hard figuring out getting it onto CPAN will be :)
09:41 sproctor Cool. I keep meaning to take another look at it and I was hoping to have a slide or two about it in my talk for the LPW at the end of next month.
09:43 ryn1x joined #perl6
09:52 Cabanossi joined #perl6
09:57 ryn1x joined #perl6
10:05 araraloren joined #perl6
10:07 mr-foobar joined #perl6
10:07 ryn1x joined #perl6
10:23 Xal joined #perl6
10:25 ryn1x joined #perl6
10:26 W4RL0RD joined #perl6
10:27 araraloren evening
10:31 mattp_ joined #perl6
10:32 DrForr %greeting<local>
10:37 rba_ joined #perl6
10:41 skids joined #perl6
10:46 piojo joined #perl6
10:47 rba joined #perl6
10:48 xinming_ joined #perl6
10:49 piojo m: sub foo(% (:name(:$n))) { say $n; }; foo {name => 'Bill'}
10:49 camelia rakudo-moar b8eda6: OUTPUT: «Bill␤»
10:50 Piotr_ joined #perl6
10:50 piojo What's the meaning of the ':' in ':$n'? It's optional, and causes problems if you try to unpack to a variable with the same name
10:51 piojo m: sub foo(% (:name(:$name))) { say $name; }
10:51 camelia rakudo-moar b8eda6: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Name name used for more than one named parameter␤at <tmp>:1␤------> 3sub foo(% (:name(:$name)))7⏏5 { say $name; }␤»
10:51 piojo but this is okay:
10:51 piojo sub foo(% (:name($name))) { say $name; }; foo {name => 'Bill'}
10:51 piojo m: sub foo(% (:name($name))) { say $name; }; foo {name => 'Bill'}
10:51 camelia rakudo-moar b8eda6: OUTPUT: «Bill␤»
10:53 Cabanossi joined #perl6
10:59 CIAvash[m] :$name is the same as :name($name)
10:59 CIAvash[m] m: sub foo(% (:$name)) { say $name; }; foo {name => 'Bill'}
10:59 camelia rakudo-moar b8eda6: OUTPUT: «Bill␤»
10:59 pmurias joined #perl6
11:00 ryn1x joined #perl6
11:01 traxex joined #perl6
11:02 piojo CIAvash: thanks. I must have mistyped that when I tried it
11:03 piojo CIAvash: but the docs say to use % (:key-name(:$var-name)) (in the case where the two names don't match). Any idea what the second ':' is for?
11:04 xtreak joined #perl6
11:05 piojo .tell Zoffix thanks for your work on repl-mode. Extremely helpful for use in cygwin.
11:05 yoleaux piojo: I'll pass your message to Zoffix.
11:08 thunktone joined #perl6
11:10 CIAvash[m] m: sub foo(% (:name(:$n))) { say $n; }; foo {name => 'Bill'}; foo {n => 'Jill'};
11:10 camelia rakudo-moar b8eda6: OUTPUT: «Bill␤Jill␤»
11:14 ryn1x joined #perl6
11:15 CIAvash[m] I think you would do that if you wanted to use multiple key names. Can you give the link to the docs where it says you have to do this?
11:21 thunktone joined #perl6
11:23 okl joined #perl6
11:28 ryn1x joined #perl6
11:32 piojo CIAvash[m]: it doesn't say you have to, but it's the example: https://docs.perl6.org/type/Signature#Destructuring_Parameters
11:33 piojo I'd like to understand what that colon means, and hopefully add it to the docs. (I could also add | and ! to the docs for capturing hash elements, since they're useful)
11:34 piojo ! and | work just like in regular signatures--making a hash element required, and allowing additional hash elements that aren't named
11:36 mr-foobar joined #perl6
11:37 ryn1x joined #perl6
11:38 thunktone joined #perl6
11:39 wander4096 joined #perl6
11:40 CIAvash[m] The docs probably need to show how to actually call and use the functions in the examples
11:46 CIAvash[m] the colon before variable is useful when the pair's key and the variable's name are the same, so you don't have to repeat it.
11:46 CIAvash[m] https://docs.perl6.org/type/Signature#Positional_vs._Named
11:46 ryn1x joined #perl6
11:47 Geth ¦ doc: fluca1978++ created pull request #1594: Add a short introduction to subroutines and precedence dropping.
11:47 Geth ¦ doc: review: https://github.com/perl6/doc/pull/1594
11:47 ggoebel joined #perl6
11:49 piojo CIAvash[m]: Thanks, but I'm not sure that applies here, because it's the second colon--> :name(:$username)
11:50 piojo CIAvash[m]: I've gotta run now, but I'll add some more examples and make a PR, then will file an issue that asks why :name(:$username) is shown instead of :name($username)
11:53 CIAvash[m] piojo:  Yeah, I don't think it's necessary there, unless I'm missing something.
11:54 wander4096 https://gist.github.com/W4anD0eR96/106de3968f9dbc8a718e76975e4b6b01
11:54 wander4096 piojo: https://gist.github.com/W4anD0eR96/106de3968f9dbc8a718e76975e4b6b01
11:54 wander4096 it creates alias
11:55 wander4096 and this mentions about it https://docs.perl6.org/language/functions#index-entry-MAIN
11:57 margeas joined #perl6
11:59 piojo wander4096: thanks, that's very helpful! (I must have screwed up my test code again, because I actually tried to test this possibility)
12:00 wander4096 m: sub f(:name(:$username)) { say $username }; f(:name("x")); f(:username("y"))
12:00 camelia rakudo-moar b8eda6: OUTPUT: «x␤y␤»
12:01 piojo wander4096: I wasn't saying I did it right!
12:01 ilmari m: sub f(:name(:user($username))) { say $username }; f(:name("x")); f(:username("y")); f(:user("z"))
12:01 camelia rakudo-moar b8eda6: OUTPUT: «x␤Unexpected named argument 'username' passed␤  in sub f at <tmp> line 1␤  in block <unit> at <tmp> line 1␤␤»
12:01 ilmari m: sub f(:name(:user($:username))) { say $username }; f(:name("x")); f(:username("y")); f(:user("z"))
12:01 camelia rakudo-moar b8eda6: OUTPUT: «5===SORRY!5===␤In signature parameter, placeholder variables like $:username are illegal␤you probably meant a named parameter: ':$username'␤at <tmp>:1␤------> 3sub f(:name(:user($:username7⏏5))) { say $username }; f(:name("x")); f(␤Va…»
12:01 piojo ilmari: :$username, not $:username
12:01 ilmari m: sub f(:name(:user(:$username))) { say $username }; f(:name("x")); f(:username("y")); f(:user("z"))
12:01 camelia rakudo-moar b8eda6: OUTPUT: «x␤y␤z␤»
12:01 ilmari piojo: yeah, I realised
12:02 CIAvash[m] piojo:  I showed the example with the alias :) https://irclog.perlgeek.de/perl6/2017-10-10#i_15282601
12:04 piojo CIAvash[m]: Indeed you did. A belated thank you! My eyes must have passed over that, because I thought I had already attempted that
12:05 mr-foobar joined #perl6
12:07 Cabanossi joined #perl6
12:17 piojo left #perl6
12:30 ryn1x joined #perl6
12:39 ryn1x joined #perl6
12:43 mr-foobar joined #perl6
12:49 ryn1x joined #perl6
12:52 bdmatatu joined #perl6
12:53 flatwhite joined #perl6
12:56 mcmillhj joined #perl6
12:57 Geth ¦ doc: W4anD0eR96++ created pull request #1596: Rewrite intro of alias named signature
12:57 Geth ¦ doc: review: https://github.com/perl6/doc/pull/1596
13:00 kid51 joined #perl6
13:07 zakharyas joined #perl6
13:08 mr-foobar joined #perl6
13:08 mson joined #perl6
13:12 ryn1x joined #perl6
13:22 cdg joined #perl6
13:38 ryn1x joined #perl6
13:41 rba_ joined #perl6
13:47 rba joined #perl6
13:47 ryn1x joined #perl6
13:49 leont joined #perl6
13:56 wamba joined #perl6
14:05 mr-foobar joined #perl6
14:12 ryn1x joined #perl6
14:15 rindolf joined #perl6
14:17 ryn1x joined #perl6
14:22 rba_ joined #perl6
14:22 Cabanossi joined #perl6
14:31 rba joined #perl6
14:34 cdg joined #perl6
14:38 mr-foobar joined #perl6
14:39 atroxaper joined #perl6
14:45 zakharyas joined #perl6
14:49 mcmillhj joined #perl6
14:53 leont joined #perl6
14:53 okl joined #perl6
14:56 ryn1x joined #perl6
14:57 mcmillhj joined #perl6
14:58 thunktone joined #perl6
14:59 traxex joined #perl6
15:03 llfourn joined #perl6
15:05 ryn1x joined #perl6
15:08 mr-foobar joined #perl6
15:15 ryn1x joined #perl6
15:16 zakharyas1 joined #perl6
15:22 cdg joined #perl6
15:23 cdg joined #perl6
15:25 cdg_ joined #perl6
15:34 Piotr_ joined #perl6
15:34 Wiertek joined #perl6
15:38 Xal joined #perl6
15:38 mr-foobar joined #perl6
15:47 pmurias joined #perl6
15:53 dogbert2 joined #perl6
15:55 johnjohn101 joined #perl6
16:04 troys joined #perl6
16:07 Cabanossi joined #perl6
16:13 itaipu joined #perl6
16:16 ShalokShalom_ joined #perl6
16:17 mcmillhj joined #perl6
16:24 mcmillhj joined #perl6
16:27 melezhik_ joined #perl6
16:27 HoboWithAShotgun joined #perl6
16:27 ryn1x joined #perl6
16:28 melezhik_ Hi Perl6 folks, http://dev.to - seems very cool dev blog site, I encourage everyone involved in Perl6 add some Perl6 related posts here! (As I did ;-)
16:39 mr-foobar joined #perl6
16:44 Geth ¦ doc: 06e8f698b1 | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Language/testing.pod6
16:44 Geth ¦ doc: Specify signature of cmp-ok more accurately
16:44 Geth ¦ doc:
16:44 Geth ¦ doc: - To indicate it can be used to test with `=:=` operator
16:44 Geth ¦ doc: - And that it doesn't interfere with ops that partly rely on
16:44 Geth ¦ doc:     address equivalency, such as `eqv`
16:44 synopsebot Link: https://doc.perl6.org/language/testing
16:44 Geth ¦ doc:
16:44 Geth ¦ doc: Rakudo impl: https://github.com/rakudo/rakudo/commit/3684384db1
16:44 Geth ¦ doc: Spec: https://github.com/perl6/roast/commit/4bc442622d
16:45 Geth ¦ doc: review: https://github.com/perl6/doc/commit/06e8f698b1
16:45 robertle joined #perl6
16:48 Wiertek joined #perl6
16:48 Piotr_ joined #perl6
16:50 tyil HoboWithAShotgun: you were the one who made that pr to the atom plugin to convert ascii ops into unicode ops right? was there a particular reason you also did the greek chars?
16:54 smls joined #perl6
16:57 smls m: say "1" ~~ / \d <!before \d> /;
16:57 camelia rakudo-moar 368438: OUTPUT: «Nil␤»
16:57 smls ^^  <!before >  should be able to match at the end of the input string, right?
16:57 ryn1x joined #perl6
16:58 Xal joined #perl6
17:01 wander joined #perl6
17:03 wander README.md in doc says, to Building the HTML documentation, we run `make html` and `make run`
17:04 wander i wonder if every time after updating the source code, i should make again, which takes a long time
17:05 wander or the second time `make html` will be fast
17:07 thunktone joined #perl6
17:07 ryn1x joined #perl6
17:08 gfldex wander: there is some caching going on but it wont make much of a difference
17:10 gfldex wander: look in the Makefile for --parallel=1 and --threads=1 to speed things up
17:10 perllearner89 joined #perl6
17:12 perllearner89 perl6: multi postfix:<!>(Int $n) { [*] 2..$n }; say "5! is { 5! }";
17:12 camelia rakudo-moar 54507a: OUTPUT: «5! is 120␤»
17:12 camelia ..rakudo-jvm b8eda6: OUTPUT: «Error while reading '/home/camelia/p6eval-token': No such file or directory at /home/camelia/rakudo-j-inst/bin/eval-client.pl line 10.␤»
17:14 perllearner89 perl6: multi postfix:<!>(Int $n) { [*] 2..$n; }; say "5! is { 5! }";
17:14 camelia rakudo-jvm b8eda6: OUTPUT: «Error while reading '/home/camelia/p6eval-token': No such file or directory at /home/camelia/rakudo-j-inst/bin/eval-client.pl line 10.␤»
17:14 camelia ..rakudo-moar 54507a: OUTPUT: «5! is 120␤»
17:15 mr-foobar joined #perl6
17:16 timotimo we might want to throw rakudo-jvm out of the perl6 command
17:17 wander gfldex: got it
17:18 llfourn joined #perl6
17:20 timotimo perllearner89: you'll get less noisy results if you use "m:" instead of "perl6:"
17:20 setty1 joined #perl6
17:21 ryn1x joined #perl6
17:23 atroxaper left #perl6
17:27 perllearner89 m: multi postfix:<!>(Int $n) { [*] 2..$n; }; say "5! is { 5! }"; say "6! is {6!}.";
17:27 camelia rakudo-moar 54507a: OUTPUT: «5! is 120␤6! is 720.␤»
17:28 perllearner89 It's weird. On my perl6 version, trying to run `multi postfix:<!>(Int $n) { [*] 2..$n; }; say "5! is { 5! }"; say "6! is {6!}.";` results in a "Negation metaoperator not followed by valid prefix" error.
17:30 ryn1x joined #perl6
17:31 timotimo you're running it in the REPL?
17:31 timotimo that poor thing forgets newly defined operators between every line :(
17:31 mcmillhj joined #perl6
17:31 awwaiid :(
17:31 timotimo it'll work if you put both statements in the same line with a ; in between
17:32 perllearner89 I've tried it on the REPL and as a standalone script and both fail.
17:32 timotimo oh, now that's interesting
17:33 perllearner89 Do you know any reason why that might be?
17:34 timotimo hm, can you upload your exact standalone script?
17:34 timotimo oh, also, is your perl6 --version near?
17:34 perllearner89 $*PERL is Perl 6 (6.c) and $*VM is moar (2017.09.1.580.g.631.b.3.bf.0.f)
17:34 timotimo ah, yes, that's good
17:38 thunktone joined #perl6
17:38 perllearner89 Now that I am trying it again, it is working. It seems that I can't run the REPL and run the script separately or else they confuse each other.
17:39 mr-foobar joined #perl6
17:42 mcmillhj joined #perl6
17:44 perllearner89 Okay. Not it is just being weird.
17:44 perllearner89 *Now
17:44 ryn1x joined #perl6
17:44 perllearner89 How do I upload my test script?
17:45 tyil nc cry.nu 9999 < path/to/test.pl
17:47 perllearner89 nc cry.nu 9999 < /data/testing/perl6/learning.pl6
17:47 timotimo whoops, cry.nu has had its letsencrypt run out yesterday
17:48 timotimo perllearner89: you'd execute that in your shell, and you'll need to have netcat installed, though a simple perl6 one-liner could also do it
17:48 tyil samcv: your cert expired
17:48 tyil timotimo: I reported it, should be fixed soon-ish
17:49 tyil you could use termbin for the time being, I dont know any other trustworthy hosts which such a service running
17:49 timotimo i like sprunge.us
17:50 timotimo cat /data/testing/perl6/learning.pl6 | curl -F 'sprunge=<-' http://sprunge.us
17:50 perllearner89 http://sprunge.us/JfDd
17:51 shadowpaste "ilmari" at 217.168.150.38 pasted "You can also use http://fpaste.scsys.co.uk/perl6" (1 line) at http://fpaste.scsys.co.uk/565310
17:51 mcmillhj joined #perl6
17:51 tyil trying to curl them gives a 405 error
17:52 timotimo now that's interesting
17:52 tyil wanted to see if they used CF, thats a strong reason for me not to use them :p
17:52 tyil but it seems its hosted by google, which I still dislike
17:52 tyil so not adding it to my article against pastebin
17:53 perllearner89 http://sprunge.us/BhHX
17:53 perllearner89 But that one (http://sprunge.us/BhHX) works fine...
17:53 perllearner89 Why the disconnect?
17:53 ryn1x joined #perl6
17:56 moritz sorry, what was the minimal example of something that didn't work?
17:57 timotimo somehow the say "\$subref(4,6) is $subref(4,6)"; is breaking it
17:57 timotimo probably the string somehow runs away
17:57 emeric joined #perl6
17:58 tyil .tell melezhik nice article on sparrowdo, I might check it out when I have time to spare
17:58 yoleaux tyil: I'll pass your message to melezhik.
17:58 timotimo m: my $subref = -> $a, $b { say $a; }; say "\$foobar(4,6) is $subref(4,6)"; say "test"
17:58 camelia rakudo-moar 54507a: OUTPUT: «4␤$foobar(4,6) is True␤test␤»
18:00 Geth ¦ doc/molecules-patch-2: 1b50a0f943 | (Christopher Bottoms)++ (committed using GitHub Web editor) | doc/Type/IO/Path.pod6
18:00 Geth ¦ doc/molecules-patch-2: File test adverb forms with links to method forms
18:00 Geth ¦ doc/molecules-patch-2:
18:00 Geth ¦ doc/molecules-patch-2: Also intended to fix broken link to https://docs.perl6.org/type/IO::Path#File_test_operators from https://docs.perl6.org/language/5to6-perlfunc#Filetests. Much was copied from https://docs.perl6.org/type/IO::Path#File_test_operators.
18:00 Geth ¦ doc/molecules-patch-2: review: https://github.com/perl6/doc/commit/1b50a0f943
18:00 Geth ¦ doc: molecules++ created pull request #1598: File test adverb forms with links to method forms
18:00 Geth ¦ doc: review: https://github.com/perl6/doc/pull/1598
18:04 perllearner89 m: my $sref = { $^x**2 + $^y**2; }; say "\$sref.(4,6) is $sref.(4,6)";
18:04 camelia rakudo-moar 54507a: OUTPUT: «$sref.(4,6) is 52␤»
18:07 mcmillhj joined #perl6
18:09 mr-foobar joined #perl6
18:09 wander joined #perl6
18:11 wander perllearner89: what's your first version of code?
18:12 wander i run the code in http://sprunge.us/BhHX and every thing runs right
18:12 perllearner89 http://sprunge.us/JfDd fails to execute and was my first version.
18:12 perllearner89 http://sprunge.us/BhHX was my attempt at a minimal version, but doesn't fail.
18:15 Geth ¦ doc/master: 4 commits pushed by (Alex Wander)++, (Patrick Spek)++
18:15 Geth ¦ doc/master: 3b12be9f15 | Rewrite example of alias named signature
18:15 Geth ¦ doc/master: c56ff63dcb | Update Signature.pod6
18:15 Geth ¦ doc/master: f208e65ac0 | Update Signature.pod6
18:15 Geth ¦ doc/master: f09992efcb | Merge pull request #1596 from W4anD0eR96/patch-2
18:15 Geth ¦ doc/master: review: https://github.com/perl6/doc/compare/06e8f698b1...f09992efcb
18:15 perllearner89 This is a minimal failing example: http://sprunge.us/HdRI
18:16 perllearner89 m: sub my_sub(Int() $x, Int() $y) {     return $x**2 + $y**2; }  my $result = my_sub(4,6); say "\$result is $result";  multi postfix:<!>(Int $n) {     [*] 2..$n; }  say "5! is { 5! }";
18:16 camelia rakudo-moar e13512: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Strange text after block (missing semicolon or comma?)␤at <tmp>:1␤------> 3 Int() $y) {     return $x**2 + $y**2; }7⏏5  my $result = my_sub(4,6); say "\$resul␤    expecting any of:␤        in…»
18:16 perllearner89 m: sub my_sub(Int() $x, Int() $y) { return $x**2 + $y**2; }; my $result = my_sub(4,6); say "\$result is $result";  multi postfix:<!>(Int $n) { [*] 2..$n; }; say "5! is { 5! }";
18:16 camelia rakudo-moar e13512: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Negation metaoperator not followed by valid infix␤at <tmp>:1␤------> 3(Int $n) { [*] 2..$n; }; say "5! is { 5!7⏏5 }";␤    expecting any of:␤        infix␤        infix stopper␤»
18:19 wander seems like something wrong with `say`
18:19 perllearner89 m: sub my_sub(Int() $x, Int() $y) { return $x**2 + $y**2; }; my $result = my_sub(4,6); say "\$result is $result";  multi postfix:<!>(Int $n) { [*] 2..$n; }; say "5! is ", 5!;
18:19 camelia rakudo-moar e13512: OUTPUT: «$result is 52␤5! is 120␤»
18:20 perllearner89 When the code is in an execution block in the string in say, it fails, but when listed as an argument to say, it works.
18:20 perllearner89 Why?
18:20 wander if you remove the say before `say "5! is { 5! }";'
18:20 wander then there is no error msg
18:21 perllearner89 m: sub my_sub(Int() $x, Int() $y) { return $x**2 + $y**2; }; my $result = my_sub(4,6); say "\$result is $result";  multi postfix:<!>(Int $n) { [*] 2..$n; }; "5! is { 5! }";
18:21 camelia rakudo-moar e13512: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Negation metaoperator not followed by valid infix␤at <tmp>:1␤------> 3:<!>(Int $n) { [*] 2..$n; }; "5! is { 5!7⏏5 }";␤    expecting any of:␤        infix␤        infix stopper␤»
18:21 wander To be exact, the say statement in form `say "\$result is $result"`
18:21 Ven joined #perl6
18:22 perllearner89 m: sub my_sub(Int() $x, Int() $y) { return $x**2 + $y**2; }; my $result = my_sub(4,6); "\$result is $result";  multi postfix:<!>(Int $n) { [*] 2..$n; }; say "5! is { 5! }";
18:22 camelia rakudo-moar e13512: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Negation metaoperator not followed by valid infix␤at <tmp>:1␤------> 3(Int $n) { [*] 2..$n; }; say "5! is { 5!7⏏5 }";␤    expecting any of:␤        infix␤        infix stopper␤»
18:22 Cabanossi joined #perl6
18:22 wander maybe relevant to the implementation of say
18:23 perllearner89 m: sub my_sub(Int() $x, Int() $y) { return $x**2 + $y**2; }; my $result = my_sub(4,6); "\$result is $result";  multi postfix:<!>(Int $n) { [*] 2..$n; }; "5! is { 5! }";
18:23 camelia rakudo-moar e13512: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Negation metaoperator not followed by valid infix␤at <tmp>:1␤------> 3:<!>(Int $n) { [*] 2..$n; }; "5! is { 5!7⏏5 }";␤    expecting any of:␤        infix␤        infix stopper␤»
18:23 perllearner89 Without any reference to `say` it still dies.
18:23 wander yes, you do find it
18:23 wander m:  m: sub my_sub(Int() $x, Int() $y) { return $x**2 + $y**2; }; my $result = my_sub(4,6);  multi postfix:<!>(Int $n) { [*] 2..$n; }; say "5! is { 5! }";
18:23 camelia rakudo-moar e13512: OUTPUT: «5! is 120␤»
18:24 wander m: my $result = 42; say "\$result is $result";  multi postfix:<!>(Int $n) { [*] 2..$n; }; "5! is { 5! }";
18:24 camelia rakudo-moar e13512: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Negation metaoperator not followed by valid infix␤at <tmp>:1␤------> 3:<!>(Int $n) { [*] 2..$n; }; "5! is { 5!7⏏5 }";␤    expecting any of:␤        infix␤        infix stopper␤»
18:24 wander m: my $result = 42; "\$result is $result";  multi postfix:<!>(Int $n) { [*] 2..$n; }; "5! is { 5! }";
18:24 camelia rakudo-moar e13512: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Negation metaoperator not followed by valid infix␤at <tmp>:1␤------> 3:<!>(Int $n) { [*] 2..$n; }; "5! is { 5!7⏏5 }";␤    expecting any of:␤        infix␤        infix stopper␤»
18:25 Geth ¦ doc/molecules-patch-2: fc97c3981b | (Christopher Bottoms)++ (committed using GitHub Web editor) | doc/Type/IO/Path.pod6
18:25 perllearner89 m: sub my_sub(Int() $x, Int() $y) { return $x**2 + $y**2; }; my $result = my_sub(4,6); say "\$result is $result";  multi postfix:<!>(Int $n) { [*] 2..$n; }; say "5! is { 5!; }";
18:25 Geth ¦ doc/molecules-patch-2: Wrapped lines in proposed changes to 80 characters
18:25 Geth ¦ doc/molecules-patch-2: review: https://github.com/perl6/doc/commit/fc97c3981b
18:25 camelia rakudo-moar e13512: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Negation metaoperator not followed by valid infix␤at <tmp>:1␤------> 3(Int $n) { [*] 2..$n; }; say "5! is { 5!7⏏5; }";␤    expecting any of:␤        infix␤        infix stopper␤»
18:28 Zoffix joined #perl6
18:28 wamba joined #perl6
18:28 Zoffix This seems to be that Quote lang braid caches Main braid and so it misses on it being modified by the introduction of the new op
18:29 Zoffix m: ""; sub postfix:<!>($) {}; "{ 5! }";
18:29 camelia rakudo-moar e13512: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Negation metaoperator not followed by valid infix␤at <tmp>:1␤------> 3""; sub postfix:<!>($) {}; "{ 5!7⏏5 }";␤    expecting any of:␤        infix␤        infix stopper␤»
18:29 Zoffix m: sub postfix:<!>($) {}; ""; "{ 5! }";
18:29 camelia rakudo-moar e13512: OUTPUT: «WARNINGS for <tmp>:␤Useless use of constant string "" in sink context (line 1)␤Use of Nil in string context␤  in block <unit> at <tmp> line 1␤»
18:30 perllearner89 m: sub postfix:<!>(Int $n) { [*] 2..$n; }; say "";
18:30 camelia rakudo-moar e13512: OUTPUT: «␤»
18:30 perllearner89 m: sub postfix:<!>(Int $n) { [*] 2..$n; }; say ""; say "{ 5! }";
18:30 camelia rakudo-moar e13512: OUTPUT: «␤120␤»
18:30 perllearner89 m: say ""; sub postfix:<!>(Int $n) { [*] 2..$n; }; say "{ 5! }";
18:30 camelia rakudo-moar e13512: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Negation metaoperator not followed by valid infix␤at <tmp>:1␤------> 3ix:<!>(Int $n) { [*] 2..$n; }; say "{ 5!7⏏5 }";␤    expecting any of:␤        infix␤        infix stopper␤»
18:31 Zoffix Filed as https://rt.perl.org/Ticket/Display.html?id=132262
18:31 perllearner89 Thanks for that.
18:31 Rawriful joined #perl6
18:33 ryn1x joined #perl6
18:34 * Zoffix takes a crack at it
18:36 rba joined #perl6
18:38 cdg joined #perl6
18:38 * [Coke] waves from $DAYJOB
18:39 itaipu joined #perl6
18:39 Zoffix \o
18:41 Zoffix Looks like some bolts were left out during Cursor Match refactor that caused this.
18:41 Zoffix Gonna try to fix it later (maybe TimToady would know a hint :))
18:41 mcmillhj joined #perl6
18:42 geekosaur joined #perl6
18:43 eroux joined #perl6
18:45 Zoffix my %quote_lang_cache hehe. Looks like a perfect place for bugs to hide at
18:47 HoboWithAShotgun i am doing this: my $handler-name = self.event-to-handler-name( $event ); my $handler = self.^methods.first({ .name ~~ $handler-name }); &($handler)($event);
18:47 HoboWithAShotgun however, besides from being super clumy probably that gives me an error:  P6opaque: no such attribute '$!on-key-press' in type Terminal::Vision::Widgets::TextInput when trying to get a value
18:48 Zoffix Are you using nqp ops?
18:48 HoboWithAShotgun but that can't be, since that attribute is defined in the same role as the method that trows the error
18:48 Geth ¦ doc: 1b50a0f943 | (Christopher Bottoms)++ (committed using GitHub Web editor) | doc/Type/IO/Path.pod6
18:48 Geth ¦ doc: File test adverb forms with links to method forms
18:48 Geth ¦ doc:
18:48 Geth ¦ doc: Also intended to fix broken link to https://docs.perl6.org/type/IO::Path#File_test_operators from https://docs.perl6.org/language/5to6-perlfunc#Filetests. Much was copied from https://docs.perl6.org/type/IO::Path#File_test_operators.
18:48 Geth ¦ doc: review: https://github.com/perl6/doc/commit/1b50a0f943
18:48 synopsebot Link: https://doc.perl6.org/type/IO/Path
18:48 Geth ¦ doc: fc97c3981b | (Christopher Bottoms)++ (committed using GitHub Web editor) | doc/Type/IO/Path.pod6
18:48 Geth ¦ doc: Wrapped lines in proposed changes to 80 characters
18:48 Geth ¦ doc: review: https://github.com/perl6/doc/commit/fc97c3981b
18:48 Geth ¦ doc: da19f6742a | (Patrick Spek)++ (committed using GitHub Web editor) | doc/Type/IO/Path.pod6
18:48 Geth ¦ doc: Merge pull request #1598 from perl6/molecules-patch-2
18:49 Geth ¦ doc:
18:49 Geth ¦ doc: File test adverb forms with links to method forms
18:49 Geth ¦ doc: review: https://github.com/perl6/doc/commit/da19f6742a
18:51 AlexDaniel- joined #perl6
18:52 Zoffix m: $ = ""; sub postfix:<♥>($) {42}; try q/"{ 5♥ }"/.EVAL; say $!.^name
18:52 HoboWithAShotgun ah. i  must do &(self.$handler)($event)
18:52 camelia rakudo-moar e13512: OUTPUT: «X::Syntax::Confused␤»
18:53 Zoffix Weird. With my fix I get the same result in $!, but the actual code doesn't die.
18:53 Zoffix I guess it's left over from something
18:55 mcmillhj joined #perl6
18:55 Zoffix And `say try q/say "{ 5♥ }"/.EVAL` gives Nil, wheareas `say q/say "{ 5♥ }"/.EVAL` prints result and then True.
18:57 zakharyas joined #perl6
18:58 rba_ joined #perl6
19:01 thou joined #perl6
19:03 ryn1x joined #perl6
19:06 kid51 joined #perl6
19:09 rba joined #perl6
19:10 kerframil joined #perl6
19:11 mcmillhj joined #perl6
19:12 perllearner89 m: say ""; sub postfix:<!>(Int $n) { [*] 2..$n; }; say "{ 5! }";
19:12 camelia rakudo-moar e13512: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Negation metaoperator not followed by valid infix␤at <tmp>:1␤------> 3ix:<!>(Int $n) { [*] 2..$n; }; say "{ 5!7⏏5 }";␤    expecting any of:␤        infix␤        infix stopper␤»
19:16 rba joined #perl6
19:16 Zoffix TimToady: are you around? Since Big Slang Refactor, Quote braid overly-eagerly caches langs here: https://github.com/rakudo/rakudo/blob/e13512/src/Perl6/Grammar.nqp#L64-L114 Any idea what's a good fix? I could nuke the entire quote cache when installing categoricals ( https://github.com/rakudo/rakudo/blob/e13512/src/Perl6/Grammar.nqp#L4907-L4911 ) but that feels too big a hammer... The cache gets base lang
19:16 Zoffix name from `$l.HOW.name($l)` does that now change differently when mixins happen?
19:17 Zoffix buggable: eco
19:17 buggable Zoffix, Out of 920 Ecosystem dists, 0 have warnings, 9 have errors, and 0 have no tags in META file. See https://modules.perl6.org/update.log for details
19:17 Zoffix ^ lots of dists with JSON errors it seems. Sent a PR to BioInfo already don't got time ATM to send the rest
19:18 thou joined #perl6
19:18 Zoffix (search build log for "[error]" to find them)
19:18 jnthn 0 have no tags? :)
19:18 llfourn joined #perl6
19:18 mtj_ joined #perl6
19:18 * jnthn looks at a META6.json file of his own that has none :)
19:23 mst Zoffix: ranguard had a lot of 'fun' with that with the psixdists test runs
19:23 Zoffix :) The bot was never updated to handle the new TODO page ( http://modules.perl6.org/todo/ ) where the warnings about tags were migrated to
19:24 johnjohn101 did perl six slow down development?  seems like rakudo perl was last updated in july
19:27 Zoffix johnjohn101: updated where?
19:27 Zoffix The repo was last updated like an hour ago :)
19:27 Zoffix Latest release was September's third Saturday.
19:27 johnjohn101 i'm looking on the webpage
19:28 Zoffix johnjohn101: no, Rakudo Star still gets released quarterly.
19:28 Zoffix No slowdown there.
19:29 Zoffix huggable: star
19:29 huggable Zoffix, Estimated Rakudo Star releases for 2017: .01, .04, .07 & .10
19:29 johnjohn101 ok, i thought it was monthly.  july is ok to test with?
19:29 Zoffix johnjohn101: compiler-only is released monthly yeah
19:29 Zoffix huggable: debs
19:29 huggable Zoffix, CentOS, Debian, Fedora and Ubuntu Rakudo packages: https://github.com/nxadm/rakudo-pkg/releases
19:29 Zoffix johnjohn101: July is ok yeah
19:30 johnjohn101 thanks for github
19:30 * Zoffix doesn't see any slowdown in code frequency: https://github.com/rakudo/rakudo/graphs/code-frequency
19:31 Zoffix or I guess this is a better view: https://github.com/rakudo/rakudo/graphs/commit-activity
19:32 Zoffix And the lul in July/August 'cause some devs were vacationing
19:32 * Zoffix &
19:33 ryn1x joined #perl6
19:38 mr-foobar joined #perl6
19:39 Aaronepower joined #perl6
19:50 ryn1x joined #perl6
19:57 skids joined #perl6
19:59 cdg joined #perl6
20:02 cdg_ joined #perl6
20:03 ryn1x joined #perl6
20:07 mr-fooba_ joined #perl6
20:09 eroux joined #perl6
20:14 Aaronepower joined #perl6
20:17 ryn1x joined #perl6
20:27 ryn1x joined #perl6
20:37 perllearner89 joined #perl6
20:40 HoboWithAShotgun m: say (1 ... ∞)[* - 1]
20:40 camelia rakudo-moar e13512: OUTPUT: «Cannot .elems a lazy list␤  in block <unit> at <tmp> line 1␤␤»
20:44 lizmat HoboWithAShotgun: what did you expect?  Inf ?
20:46 gfldex Int - 1 sounds about right. Writing that do disk might be tricky tho.
20:46 gfldex *Inf - 1
20:46 lizmat m: say Inf - 1
20:46 camelia rakudo-moar e13512: OUTPUT: «Inf␤»
20:47 gfldex m: say so Inf - 1 == Inf;
20:47 camelia rakudo-moar e13512: OUTPUT: «True␤»
20:48 HoboWithAShotgun well perl is wrong there
20:48 HoboWithAShotgun i think
20:49 HoboWithAShotgun m: sub foo { say 'foo' }; sub bar { say 'bar' }; my &both = &foo ∘ &bar; both()
20:49 camelia rakudo-moar e13512: OUTPUT: «bar␤Too many positionals passed; expected 0 arguments but got 1␤  in sub foo at <tmp> line 1␤  in block <unit> at <tmp> line 1␤␤»
20:49 gfldex depends a bit if you define Inf as countable or uncountable
20:49 HoboWithAShotgun m: sub foo { say 'foo' }; sub bar { say 'bar' }; my &both = &foo ∘ &bar; both
20:49 camelia rakudo-moar e13512: OUTPUT: «bar␤Too many positionals passed; expected 0 arguments but got 1␤  in sub foo at <tmp> line 1␤  in block <unit> at <tmp> line 1␤␤»
20:50 HoboWithAShotgun mmh. that should work, shouldn't it?
20:50 gfldex HoboWithAShotgun: no
20:51 gfldex the function combinator got strict requirements on arity
20:52 Cabanossi joined #perl6
20:55 HoboWithAShotgun m: sub foo -> $x { say $x }; sub bar { 'bar' }; my &both = &foo ∘ &bar; both
20:55 camelia rakudo-moar e13512: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Missing block␤at <tmp>:1␤------> 3sub foo7⏏5 -> $x { say $x }; sub bar { 'bar' }; my␤    expecting any of:␤        new name to be defined␤»
20:55 HoboWithAShotgun m: sub foo($x) { say $x }; sub bar { 'bar' }; my &both = &foo ∘ &bar; both
20:55 camelia rakudo-moar e13512: OUTPUT: «bar␤»
20:56 HoboWithAShotgun ah allright. i read that example wrong. i figured they get just called in sequence and not nested
20:56 gfldex m: my &foo = -> $x { say $x }; sub bar { 'bar' }; my &both = &foo ∘ &bar; both
20:56 camelia rakudo-moar e13512: OUTPUT: «bar␤»
20:57 gfldex that's another docs issue
20:58 nadim_ joined #perl6
20:58 HoboWithAShotgun this time they are clear enough- The function composition operator infix:<∘> or infix:<o> combines two functions, so that the left function is called with the return value of the right function
20:59 gfldex it's Callable not a function
21:00 gfldex most of the time the docs say „function“ it should say Callable
21:00 gfldex or Routine, where a Block wont work
21:03 timo joined #perl6
21:12 TEttinger joined #perl6
21:15 ryn1x joined #perl6
21:16 HoboWithAShotgun m: say (1, 2, 2, 3).Bag (<+) (3, 2, 1).Bag;
21:16 camelia rakudo-moar e13512: OUTPUT: «False␤»
21:16 HoboWithAShotgun m: say (1, 2, 2, 3).Bag (>+) (3, 2, 1).Bag;
21:16 camelia rakudo-moar e13512: OUTPUT: «True␤»
21:20 llfourn joined #perl6
21:20 HoboWithAShotgun m: ( ( 0, 3 ... Inf ) (&) ( 0, 5 ... Inf) )[^100]
21:20 camelia rakudo-moar e13512: OUTPUT: «Cannot coerce a lazy list onto a Set␤  in block <unit> at <tmp> line 1␤␤»
21:20 Zoffix "well perl is wrong there"  we follow IEEE :)
21:21 Zoffix (in most places)
21:22 HoboWithAShotgun i'm not a mathematician, but Inf(R) > Inf(N), that I know. Not sure if that means Inf - 1 < Inf
21:22 HoboWithAShotgun probably not
21:22 Zoffix In math, maybe. In computers nope
21:23 Zoffix Just like dividing by zero is valid
21:23 Zoffix m: say (1/0).Num
21:23 camelia rakudo-moar e13512: OUTPUT: «Inf␤»
21:23 Zoffix m: say (-1/0).Num
21:23 camelia rakudo-moar e13512: OUTPUT: «-Inf␤»
21:23 HoboWithAShotgun i had a discussion over at #math the other day about exactly that
21:23 Zoffix s/computers/IEEE/;
21:24 HoboWithAShotgun and it's wrong. dividing by zero should die fatally
21:24 ryn1x joined #perl6
21:25 * AlexDaniel- shrugs
21:25 Zoffix :) and should a rocket explode if one of its sensors failed to read a value? :)
21:26 * Zoffix &
21:26 Zoffix left #perl6
21:26 releasable6 joined #perl6
21:27 HoboWithAShotgun that's probably going to happen anywhay when said rocket opens the fuel injectors infinitly wide
21:29 HoboWithAShotgun I mean I wouldn't mind if 1/0 returned a Failure, but Inf , no, that's a wrong decision
21:30 AlexDaniel- HoboWithAShotgun: well, at what point do you want your rocket to explode?
21:30 AlexDaniel- for example
21:30 AlexDaniel- m: say (1/0).nude
21:30 camelia rakudo-moar e13512: OUTPUT: «(1 0)␤»
21:30 AlexDaniel- that's alright
21:30 AlexDaniel- m: say 1/0
21:30 camelia rakudo-moar e13512: OUTPUT: «Attempt to divide 1 by zero using div␤  in block <unit> at <tmp> line 1␤␤»
21:30 AlexDaniel- but this is not
21:32 HoboWithAShotgun ah, allright
21:34 ryn1x joined #perl6
21:40 TEttinger joined #perl6
21:43 thou joined #perl6
21:43 ryn1x joined #perl6
21:43 samcv tyil, thanks. restarted nginx
21:44 samcv had a new cert but it hadn't loaded
21:45 tyil ^_^
21:48 mcmillhj joined #perl6
21:49 rba joined #perl6
21:52 ryn1x joined #perl6
21:53 samcv tyil, added `--post-hook "nginx -t && systemctl restart nginx"` to the cronjob
21:53 tyil hot
21:54 samcv oh actually. changing that to --deploy-hook since i only want it to run when cert has changed
22:00 epony joined #perl6
22:01 rba_ joined #perl6
22:04 mcmillhj joined #perl6
22:05 timo1 joined #perl6
22:06 ryn1x joined #perl6
22:09 timo1 joined #perl6
22:16 rba joined #perl6
22:19 mcmillhj joined #perl6
22:19 markldevine joined #perl6
22:20 markldevine left #perl6
22:26 greppable6 joined #perl6
22:29 konsolebox joined #perl6
22:31 rba_ joined #perl6
22:35 Herby_ joined #perl6
22:35 Herby_ \o
22:37 buggable joined #perl6
22:38 mcmillhj joined #perl6
22:38 tyil o/
22:39 greppable6 joined #perl6
22:41 timotimo o
22:45 buggable joined #perl6
22:46 rba joined #perl6
22:50 greppable6 joined #perl6
22:52 Cabanossi joined #perl6
22:53 mcmillhj joined #perl6
23:01 rba_ joined #perl6
23:02 Geth ¦ whateverable: 2f4f1de1b7 | (Aleks-Daniel Jakimenko-Aleksejev)++ | bin/Greppable.p6
23:02 Geth ¦ whateverable: Add support for modules on CPAN and GitLab
23:02 Geth ¦ whateverable: review: https://github.com/perl6/whateverable/commit/2f4f1de1b7
23:02 timotimo cool
23:03 AlexDaniel- moritz++
23:04 mson joined #perl6
23:10 Geth ¦ whateverable: cce221c01f | (Aleks-Daniel Jakimenko-Aleksejev)++ | bin/Greppable.p6
23:10 Geth ¦ whateverable: Oops
23:10 Geth ¦ whateverable:
23:10 Geth ¦ whateverable: What is this line doing there? I have no idea.
23:10 Geth ¦ whateverable: It looked legit so I didn't notice…
23:10 Geth ¦ whateverable: review: https://github.com/perl6/whateverable/commit/cce221c01f
23:11 mcmillhj joined #perl6
23:15 mcmillhj_ joined #perl6
23:17 mcmillhj joined #perl6
23:20 traxex joined #perl6
23:22 llfourn joined #perl6
23:25 mcmillhj_ joined #perl6
23:38 mcmillhj_ joined #perl6
23:41 TEttinger joined #perl6
23:49 mcmillhj_ joined #perl6
23:51 tushar joined #perl6
23:52 Cabanossi joined #perl6
23:56 mcmillhj joined #perl6
23:57 Khisanth joined #perl6

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

Perl 6 | Reference Documentation | Rakudo