Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2018-01-14

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:11 cdg joined #perl6
00:13 cdg joined #perl6
00:41 ChoHag joined #perl6
01:17 unicodable6 joined #perl6
01:17 quotable6 joined #perl6
01:24 epony joined #perl6
01:30 araraloren_ joined #perl6
01:36 cdg joined #perl6
01:37 silug joined #perl6
01:45 shinobicl joined #perl6
01:49 comborico1611 joined #perl6
01:50 comborico1611 Is the file name .p6 or .pl6?
01:53 aborazmeh joined #perl6
01:53 aborazmeh joined #perl6
02:17 Geth ¦ doc: 483b883c7e | (Aleks-Daniel Jakimenko-Aleksejev)++ | doc/Language/modules.pod6
02:17 Geth ¦ doc: Recommend just .pm6, .p6 and .t
02:17 Geth ¦ doc:
02:17 Geth ¦ doc: Resolves #778. Extra text removed because I don't see any reason to
02:17 Geth ¦ doc: explain the raisins and controversy.
02:17 synopsebot Link: https://doc.perl6.org/language/modules
02:17 Geth ¦ doc: review: https://github.com/perl6/doc/commit/483b883c7e
02:22 Geth ¦ doc: 551fc54ad9 | (Aleks-Daniel Jakimenko-Aleksejev)++ | doc/Type/X/IO/Symlink.pod6
02:22 Geth ¦ doc: De.pl6ize the docs
02:22 Geth ¦ doc: review: https://github.com/perl6/doc/commit/551fc54ad9
02:22 synopsebot Link: https://doc.perl6.org/type/X::IO::Symlink
02:31 shinobicl why this happens?
02:31 shinobicl r: my @a = (1,2,("a",100),3); sub XXX(*@data){say @data.perl}; XXX(@a); XXX( 1,2,("a",100),3 );
02:31 camelia rakudo-moar 732a25c31, rakudo-jvm a92950fb4: OUTPUT: «[1, 2, ("a", 100), 3]␤[1, 2, "a", 100, 3]␤»
02:32 shinobicl in one call the structure is preserved, in the other is lost
02:40 raiph joined #perl6
02:41 raiph m: my @a = (1,2,$("a",100),3); sub XXX(*@data){say @data.perl}; XXX(@a); XXX( 1,2,$("a",100),3 );
02:41 camelia rakudo-moar 732a25c31: OUTPUT: «[1, 2, ("a", 100), 3]␤[1, 2, ("a", 100), 3]␤»
02:56 raiph m: my @a = (1,2,@("a",100),3); sub XXX(*@data){say @data.perl}; XXX(@a); XXX( 1,2,@("a",100),3 );
02:56 camelia rakudo-moar 732a25c31: OUTPUT: «[1, 2, ("a", 100), 3]␤[1, 2, "a", 100, 3]␤»
02:58 ilbot3 joined #perl6
02:58 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:58 Zoffix left #perl6
03:11 herby_ joined #perl6
03:11 herby_ o/
03:37 Zoffix joined #perl6
03:37 Zoffix m: my $p := proto sub z {*}; my $z := multi z {}; multi z(Int) {}; use nqp; with nqp::getattr($z, Routine, q|$!dispatcher|) { dd [$p, $z, $_]; say $_ === $p; say "{.name} {.file}:{.line}" }
03:37 camelia rakudo-moar 029226fe9: OUTPUT: «[sub z () { #`(Sub|61017640) ... }, sub z () { #`(Sub|61017792) ... }, sub z () { #`(Sub|61017944) ... }]␤False␤z <tmp>:1␤»
03:37 Zoffix How to get a proto of a routine?
03:38 Zoffix More precicely: I'm trying to mix in all precedence traits into proto and in some cases warn, with the warning including location of the proto
03:44 shinobi-cl joined #perl6
03:45 herby_ Zoffix: how goes it?
03:45 Zoffix OK
03:45 Zoffix Trying to get a proto
03:49 Zoffix Oh, wait, $!dispatcher is it
03:50 Zoffix Wonder why I thought it weren't
03:50 Zoffix (well, maybe it isn't, but the .line/.number/.name return the stuff I want so, eh)
03:54 Zoffix left #perl6
03:57 bloatable6 joined #perl6
04:00 parv joined #perl6
04:11 shinobi-cl joined #perl6
04:27 raiph For irclog <Zoffix> shinobicl: it happens because `*@foo` slurpy flattens non-containerized Iterables ( https://docs.perl6.org/routine/flat ). Perhaps you wanted `+@foo` slurpy or `+@foo is raw`? https://docs.perl6.org/type/Signature#Single_Argument_Rule_Slurpy
04:27 raiph r: my @a = (1,2,("a",100),3); sub XXX(+@data is raw){say @data.perl}; XXX(@a); XXX( 1,2,("a",100),3 );
04:28 camelia rakudo-moar 029226fe9, rakudo-jvm a92950fb4: OUTPUT: «(1, 2, $("a", 100), 3)␤(1, 2, ("a", 100), 3)␤»
04:41 Cabanossi joined #perl6
05:33 yzq50 joined #perl6
05:33 yzq50 Hi.
05:41 araraloren_ hi
05:45 Cabanossi joined #perl6
05:48 yzq50 left #perl6
05:57 shinobi-cl joined #perl6
06:02 shinobicl joined #perl6
06:03 parv joined #perl6
06:14 konsolebox joined #perl6
07:02 wamba joined #perl6
07:04 AlexDaniel releasable6: next
07:04 releasable6 AlexDaniel, Next release in 6 days and ≈11 hours. No blockers. Unknown changelog format
07:15 titsuki m: say v6AAAAAAAAAAAAAAAAA;
07:15 camelia rakudo-moar 1ed8f5de5: OUTPUT: «v6.AAAAAAAAAAAAAAAAA␤»
07:17 titsuki is this a bug?
07:18 titsuki m: say vAAAAAAAAAAAAAAAAA;
07:18 camelia rakudo-moar 1ed8f5de5: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Undeclared routine:␤    vAAAAAAAAAAAAAAAAA used at line 1␤␤»
07:23 darutoko joined #perl6
07:34 aindilis` joined #perl6
07:37 cdg joined #perl6
07:37 Zoffix joined #perl6
07:39 Zoffix titsuki: no, that's a version literal. Matches v\d\w+
07:39 Zoffix with optional dots and '+' at the end
07:39 Zoffix m: dd v42.meows.^name
07:39 camelia rakudo-moar 1ed8f5de5: OUTPUT: «"Version"␤»
07:41 titsuki Zoffix: thanks. I see.
07:42 titsuki m: dd v1.0.0-beta.11
07:42 camelia rakudo-moar 1ed8f5de5: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Malformed postfix call␤at <tmp>:1␤------> 3dd v1.0.7⏏0-beta.11␤»
07:44 titsuki m: dd v1.0.0beta.11
07:44 camelia rakudo-moar 1ed8f5de5: OUTPUT: «v1.0.0.beta.11␤»
07:44 Zoffix Here's what it's looking for: https://github.com/rakudo/rakudo/blob/master/src/Perl6/Grammar.nqp#L1139-L1146
07:45 espadrine_ joined #perl6
07:52 buggable joined #perl6
07:52 huggable joined #perl6
07:52 ZofBot joined #perl6
07:53 espadrine_ joined #perl6
07:55 Zoffix m: constant v1 = 42; say v1
07:55 camelia rakudo-moar 1ed8f5de5: OUTPUT: «v1␤»
07:55 Zoffix kinda eww
07:56 Zoffix m: constant v1 = 42; say ::("v1")
07:56 camelia rakudo-moar 1ed8f5de5: OUTPUT: «42␤»
07:58 foobar` joined #perl6
08:07 Zoffix left #perl6
08:18 Zoffix joined #perl6
08:19 Zoffix m: role Meow { has $!bar = 42 }; role Moo {}; my $c := class Foo {}.new; $c does Meow; use nqp; dd nqp::getattr($c, $c.WHAT, '$!bar')
08:19 camelia rakudo-moar 1ed8f5de5: OUTPUT: «Int $!bar = 42␤»
08:19 Zoffix m: role Meow { has $!bar = 42 }; role Moo {}; my $c := class Foo {}.new; $c does Meow; $c does Moo; use nqp; dd nqp::getattr($c, $c.WHAT, '$!bar')
08:19 camelia rakudo-moar 1ed8f5de5: OUTPUT: «P6opaque: no such attribute '$!bar' on type Foo+{Meow}+{Moo} in a Foo+{Meow}+{Moo} when trying to get a value␤  in block <unit> at <tmp> line 1␤␤»
08:19 Zoffix Is there any way for me to get to $!bar without making it public?
08:19 Zoffix (I don't know how many roles can potentially be mixed before or after mixing Meow)
08:21 setty1 joined #perl6
08:22 Zoffix m: role Meow { has $!bar = 42 }; role Moo {}; my $c := class Foo {}.new; $c does Meow; $c does Moo; use nqp; dd $c.^attributes.head.get_value($c)
08:22 camelia rakudo-moar 1ed8f5de5: OUTPUT: «42␤»
08:23 Zoffix guess that works
08:58 someuser_ joined #perl6
09:07 rindolf joined #perl6
09:08 eee_ joined #perl6
09:09 eee_ nice.
09:10 eee_ left #perl6
09:13 cdg joined #perl6
09:14 cdg_ joined #perl6
09:31 lizmat joined #perl6
09:42 lizmat joined #perl6
10:04 Herby_ joined #perl6
10:04 Herby_ o/
10:13 lizmat joined #perl6
10:13 stmuk joined #perl6
10:17 Zoffix .tell AlexDaniel possibly to consider reverting or something before release: https://rt.perl.org/Ticket/Display.html?id=131305#txn-1523921  A commit breaks stuff JVM and it's possible it's doing something stupid, as I'm still a n00b in that area of the codebase. Would be useful to get Someone Who Knows™ to look over that commit
10:17 yoleaux Zoffix: I'll pass your message to AlexDaniel.
10:19 AlexDaniel .
10:19 yoleaux 10:17Z <Zoffix> AlexDaniel: possibly to consider reverting or something before release: https://rt.perl.org/Ticket/Display.html?id=131305#txn-1523921  A commit breaks stuff JVM and it's possible it's doing something stupid, as I'm still a n00b in that area of the codebase. Would be useful to get Someone Who Knows™ to look over that commit
10:19 AlexDaniel Zoffix: that ticket is missing from fail.rakudo.party, hmm…
10:20 AlexDaniel ah, because it was reopened
10:20 Zoffix AlexDaniel: it was marked as resolved and I've just reopened
10:21 AlexDaniel ok noted
10:21 AlexDaniel who knows about that stuff? Maybe .tell is going to help :)
10:22 Zoffix jnthn/TimToady dunno who else
10:38 Zoffix (bad bus factor there :))
10:39 Herby_ just what I was thinking :)
10:39 Herby_ well, happier thought of "lottery winner" factor
10:50 wamba joined #perl6
10:52 Zoffix left #perl6
11:00 lizmat joined #perl6
11:11 Geth ¦ doc/post-release: 9d07ddbeff | (Zoffix Znet)++ | doc/Language/pragmas.pod6
11:11 Geth ¦ doc/post-release: Document `no worries` pragma
11:11 Geth ¦ doc/post-release:
11:11 Geth ¦ doc/post-release: Rakudo impl: https://github.com/rakudo/rakudo/commit/f5b4d89fbb
11:11 Geth ¦ doc/post-release: Spec:        https://github.com/perl6/roast/commit/5c91d6803b
11:11 Geth ¦ doc/post-release: review: https://github.com/perl6/doc/commit/9d07ddbeff
11:15 gfldex left #perl6
11:15 gfldex joined #perl6
11:26 Ven`` joined #perl6
11:32 dct joined #perl6
11:32 lizmat joined #perl6
11:33 travis-ci joined #perl6
11:33 travis-ci Doc build failed. Zoffix Znet 'Document `no worries` pragma
11:33 travis-ci https://travis-ci.org/perl6/doc/builds/328686674 https://github.com/perl6/doc/commit/9d07ddbeff54
11:33 travis-ci left #perl6
11:33 buggable [travis build above] ☠ Did not recognize some failures. Check results manually.
11:36 hankache joined #perl6
11:41 Ven`` joined #perl6
11:44 Ven` joined #perl6
11:46 committable6 joined #perl6
11:57 someuser joined #perl6
12:03 eliasr joined #perl6
12:06 kerframil joined #perl6
12:12 markong joined #perl6
13:07 cdg joined #perl6
13:15 shinobi-cl joined #perl6
13:31 DrForr .tell AlexDaniel I'm just glad it's stored somewhere. I could also assume that the %.config is meant for internal configuration, not the user configuration.
13:31 yoleaux DrForr: I'll pass your message to AlexDaniel.
13:32 noganex joined #perl6
13:38 cdg joined #perl6
13:41 john_parr joined #perl6
13:48 rindolf joined #perl6
13:53 Ven`` joined #perl6
13:55 AlexDaniel .
13:55 yoleaux 13:31Z <DrForr> AlexDaniel: I'm just glad it's stored somewhere. I could also assume that the %.config is meant for internal configuration, not the user configuration.
13:55 shlomif joined #perl6
13:55 AlexDaniel DrForr: not sure if you noticed this discussion, so here's a link: https://irclog.perlgeek.de/perl6-dev/2018-01-14#i_15688662
13:57 DrForr Thanks, will read momentarily.
13:58 AlexDaniel DrForr: heh, this piece of code summarizes the pain: https://github.com/houseabsolute/perl6-Pod-TreeWalker/blob/db52d6071d44a3432c4954302598f87e602a6e27/lib/Pod/TreeWalker.pm6#L40-L48
13:59 DrForr Good thing because the irclog site apparently went away...
14:00 AlexDaniel just hit F5
14:00 AlexDaniel it goes down every minute or so
14:00 AlexDaniel and gets back up in a few seconds
14:00 DrForr o/' I get knocked down, but I get up again o/'
14:02 AlexDaniel .oO( more like it's drunk and can't stand up properly )
14:02 AlexDaniel but I just hit F5 and it works, so I'm not really complaining :)
14:05 DrForr o/' He takes a whisky drink, he takes a vodka drink o/'
14:06 DrForr I'm already "fixing" a few things, maybe this should be another one of them, especially if there's legacy .caption code.
14:07 DrForr Idle thoughts at this point, I really should be working on code for talks.
14:07 El_Che you should
14:07 El_Che :)
14:07 DrForr . o ( Ken, this is God. )
14:13 noganex joined #perl6
14:14 bisectable6 joined #perl6
14:14 El_Che DrForr: booked your travel to bxl?
14:16 DrForr All good, though now that I look a my bank balance I'm thinking about upgrading my hotel.
14:17 DrForr Arriving Thursday afternoon.
14:19 El_Che upgrading is better than downgrading :)
14:20 DrForr Yep.
14:21 DrForr The current place is only abou 6 blocks from Delirium, so that's really all that matters :)
14:21 El_Che pretty central
14:22 DrForr Yep. It's only a few blocks from the Pizza Hut as well, if I remember from the view I saw on Google Maps.
14:22 DrForr (been a few years since I"e been to one.)
14:23 El_Che yeah, pizza with ketchup instead of tomato sauce, there is a market for everything
14:24 DrForr Fine line there :)
14:25 El_Che about a kg of sugar in fact
14:25 El_Che :)
14:26 cdg joined #perl6
14:27 DrForr And people wonder why Americans are viewed as obese...
14:28 Ven`` joined #perl6
14:31 cdg_ joined #perl6
14:47 squashable6 joined #perl6
14:48 AlexDaniel … why is sourceforge still a thing…
14:49 DrForr Could be worse. Could be logging in to Tucows.
14:49 DrForr Oh, wait :)
14:54 El_Che AlexDaniel: I still have an active account on sf :)
15:16 khw joined #perl6
15:18 darutoko joined #perl6
15:26 rgrau joined #perl6
15:29 dct joined #perl6
15:43 shinobi-cl joined #perl6
16:09 setty1 joined #perl6
16:12 buggable New CPAN upload: App-Platform-0.2.0.tar.gz by KAJI https://cpan.metacpan.org/authors/id/K/KA/KAJI/Perl6/App-Platform-0.2.0.tar.gz
16:25 zakharyas joined #perl6
16:29 cdg joined #perl6
16:36 stmuk_ joined #perl6
16:58 Manifest0 joined #perl6
16:59 Rawriful joined #perl6
17:00 cdg joined #perl6
17:05 zacts joined #perl6
17:12 dct joined #perl6
17:23 coverable6 joined #perl6
17:23 benchable6 joined #perl6
17:33 domidumont joined #perl6
17:38 domidumont joined #perl6
17:43 zakharyas joined #perl6
17:45 dct joined #perl6
17:49 shinobi-cl hi all...
17:49 shinobi-cl r: my @a = (1,2,Nil,Nil,5); say @a.perl; my @b = (1,2,Any,Any,5); say @b.perl;
17:49 camelia rakudo-jvm a92950fb4, rakudo-moar fd44f7024: OUTPUT: «[1, 2, Any, Any, 5]␤[1, 2, Any, Any, 5]␤»
17:50 shinobi-cl what is the most appropiate value for "Empty" ?
17:52 moritz Empty
17:53 moritz depends on what you want, really
17:53 moritz in a list of Int's, the Int type object might be sensible for a missing value
17:53 moritz or a Failure
18:04 shinobi-cl Hmmm... is for a immutable bidimensional array that can have any value (int, Str, other arrays) but where some cells are undefined at creation.
18:04 shinobi-cl i was thinking on using medat-data for indicating this so a query for empty for an undefined cell would return true
18:04 shinobi-cl meta-data*
18:06 shinobi-cl ["A"], [1], [], [2]... say @a[2]:empty; # True
18:19 shinobi-cl Empty is actually nullifying the element, like it never existed.
18:19 dct joined #perl6
18:19 shinobi-cl my @a = (1, Empty, 2, Nil, 3, Empty, 5); say @a.perl; say @a.elems;
18:19 shinobi-cl r: my @a = (1, Empty, 2, Nil, 3, Empty, 5); say @a.perl; say @a.elems;
18:19 camelia rakudo-jvm a92950fb4, rakudo-moar fd44f7024: OUTPUT: «[1, 2, Any, 3, 5]␤5␤»
18:22 stmuk_ if I have "(2,4).Seq" is there any neat way of returning values and a count like ("1:2", "2:4")?
18:26 geekosaur m: say (2,4).Seq.kv.map: -> $k, $v { $k + 1 ~ ':' ~ $v } # there's probably a neater way
18:26 camelia rakudo-moar fd44f7024: OUTPUT: «(1:2 2:4)␤»
18:26 geekosaur m: say (2,4).Seq.kv
18:26 camelia rakudo-moar fd44f7024: OUTPUT: «(0 2 1 4)␤»
18:26 geekosaur m: say (2,4).Seq.kv.perl
18:26 camelia rakudo-moar fd44f7024: OUTPUT: «(0, 2, 1, 4).Seq␤»
18:30 shinobi-cl r: say (1 .. *) Z (2,4).Seq;
18:30 camelia rakudo-jvm a92950fb4, rakudo-moar fd44f7024: OUTPUT: «((1 2) (2 4))␤»
18:30 shinobi-cl r: say (1 .. *) Z (2,4,50,3,100).Seq;
18:31 camelia rakudo-jvm a92950fb4, rakudo-moar fd44f7024: OUTPUT: «((1 2) (2 4) (3 50) (4 3) (5 100))␤»
18:33 shinobi-cl r: for ((1 .. *) Z (2,4,8,16,32).Seq) -> @elem { for @elem -> $i, $v { say "$i:$v";} };
18:33 camelia rakudo-jvm a92950fb4, rakudo-moar fd44f7024: OUTPUT: «1:2␤2:4␤3:8␤4:16␤5:32␤»
18:34 stmuk_ hmm some great ideas there .. thanks
18:35 tbrowder DrForr: AlexDaniel:  ref % config, see rakudo issue GH #1403
18:38 foobar` joined #perl6
18:40 TimToady m: my @a is default(Nil) = (1,2,Nil,Nil,5); say @a.perl
18:40 camelia rakudo-moar fd44f7024: OUTPUT: «[1, 2, Nil, Nil, 5]␤»
18:40 TimToady shinobi-cl: ^^
18:40 releasable6 joined #perl6
18:41 greppable6 joined #perl6
18:41 reportable6 joined #perl6
18:41 statisfiable6 joined #perl6
18:41 nativecallable6 joined #perl6
18:44 ilmari m: my @a is default(Nil) = (1,2); @a[4] = 5; say @a.perl
18:44 camelia rakudo-moar fd44f7024: OUTPUT: «[1, 2, Nil, Nil, 5]␤»
18:44 ilmari m: my @a is default(42) = (1,2); @a[4] = 5; say @a.perl
18:44 camelia rakudo-moar fd44f7024: OUTPUT: «[1, 2, 42, 42, 5]␤»
18:44 ilmari m: my @a is default(42) = (1,2,Nil,Nil,5); say @a.perl
18:44 camelia rakudo-moar fd44f7024: OUTPUT: «[1, 2, 42, 42, 5]␤»
18:55 dudebbn_ joined #perl6
19:00 lizmat ilmari: something unexpected there ?
19:20 vike joined #perl6
19:37 Kaiepi joined #perl6
19:39 espadrine_ joined #perl6
19:45 cdg joined #perl6
19:48 TEttinger joined #perl6
20:50 evalable6 joined #perl6
20:52 ilmari lizmat: not really, just curious after TimToady's example, and I don't have rakudo on this box
20:52 ilmari I guess I could have /msg'ed camelia directly
20:52 lizmat ok, was just wondering  :-)
21:08 dct joined #perl6
21:12 dogbert2 joined #perl6
21:13 comborico1611 joined #perl6
21:15 lowin joined #perl6
21:35 cdg joined #perl6
21:50 dct joined #perl6
22:25 cdg joined #perl6
22:27 herby__ joined #perl6
22:38 cdg joined #perl6
23:08 s0me0n3-unkn0wn joined #perl6
23:17 dct joined #perl6
23:25 shinobi-cl joined #perl6
23:43 wamba joined #perl6
23:43 |oLa| left #perl6

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

Perl 6 | Reference Documentation | Rakudo