»ö« 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.
00:04 ctilmes left 00:11 rindolf left, cdg joined 00:13 cdg left, cdg joined 00:19 wamba left 00:24 ChoHag left 00:29 markong left 00:34 cdg left 00:37 smls left 00:41 ChoHag joined 01:15 dorothyw is now known as lisbeths 01:17 unicodable6 left, quotable6 left, unicodable6 joined, ChanServ sets mode: +v unicodable6, quotable6 joined, ChanServ sets mode: +v quotable6 01:23 epony left 01:24 epony joined 01:27 silug left 01:30 araraloren_ joined 01:36 cdg joined 01:37 silug joined 01:45 shinobicl joined 01:49 shinobi-cl left, comborico1611 joined
comborico1611 Is the file name .p6 or .pl6? 01:50
01:53 aborazmeh joined, aborazmeh left, aborazmeh joined 02:08 comborico1611 left
Geth doc: 483b883c7e | (Aleks-Daniel Jakimenko-Aleksejev)++ | doc/Language/modules.pod6
Recommend just .pm6, .p6 and .t

Resolves #778. Extra text removed because I don't see any reason to explain the raisins and controversy.
02:17
synopsebot Link: doc.perl6.org/language/modules
doc: 551fc54ad9 | (Aleks-Daniel Jakimenko-Aleksejev)++ | doc/Type/X/IO/Symlink.pod6
De.pl6ize the docs
02:22
synopsebot Link: doc.perl6.org/type/X::IO::Symlink
shinobicl why this happens? 02:31
r: my @a = (1,2,("a",100),3); sub XXX(*@data){say @data.perl}; XXX(@a); XXX( 1,2,("a",100),3 );
camelia [1, 2, ("a", 100), 3]
[1, 2, "a", 100, 3]
shinobicl in one call the structure is preserved, in the other is lost 02:32
02:40 raiph joined
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 [1, 2, ("a", 100), 3]
[1, 2, ("a", 100), 3]
raiph m: my @a = (1,2,@("a",100),3); sub XXX(*@data){say @data.perl}; XXX(@a); XXX( 1,2,@("a",100),3 ); 02:45
camelia [1, 2, ("a", 100), 3]
[1, 2, "a", 100, 3]
02:45 ilbot3 left 02:52 Zoffix joined
Zoffix shinobicl: it happens because `*@foo` slurpy flattens non-containerized Iterables ( docs.perl6.org/routine/flat ). Perhaps you wanted `+@foo` slurpy or `+@foo is raw`? docs.perl6.org/type/Signature#Sing...ule_Slurpy 02:54
r: my @a = (1,2,("a",100),3); sub XXX(+@data is raw){say @data.perl}; XXX(@a); XXX( 1,2,("a",100),3 ); 02:55
camelia (1, 2, $("a", 100), 3)
(1, 2, ("a", 100), 3)
shinobicl thanks guys for the link :) i had this old code lying around since 2+ years ago and it broke with the latest perl6 version :) 02:57
Zoffix Would've thought the first one to remain an Array (there's an open ticket for it R#1355 )
synopsebot R#1355 [open]: github.com/rakudo/rakudo/issues/1355 +@a/+a slurpies produce inconsistent results
02:58 ilbot3 joined, ChanServ sets mode: +v ilbot3, Zoffix left 03:11 herby_ joined
herby_ o/ 03:11
03:14 shinobicl left 03:37 Zoffix joined
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 [sub z () { #`(Sub|61017640) ... }, sub z () { #`(Sub|61017792) ... }, sub z () { #`(Sub|61017944) ... }]
False
z <tmp>:1
Zoffix How to get a proto of a routine?
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:38
03:44 shinobi-cl joined
herby_ Zoffix: how goes it? 03:45
Zoffix OK
Trying to get a proto
Oh, wait, $!dispatcher is it 03:49
Wonder why I thought it weren't 03:50
(well, maybe it isn't, but the .line/.number/.name return the stuff I want so, eh)
03:54 Zoffix left 03:57 bloatable6 left, bloatable6 joined, ChanServ sets mode: +v bloatable6 04:00 parv joined 04:09 eliasr left 04:11 shinobi-cl left, shinobi-cl joined 04:15 parv left
raiph For irclog <Zoffix> shinobicl: it happens because `*@foo` slurpy flattens non-containerized Iterables ( docs.perl6.org/routine/flat ). Perhaps you wanted `+@foo` slurpy or `+@foo is raw`? docs.perl6.org/type/Signature#Sing...ule_Slurpy 04:27
r: my @a = (1,2,("a",100),3); sub XXX(+@data is raw){say @data.perl}; XXX(@a); XXX( 1,2,("a",100),3 );
camelia (1, 2, $("a", 100), 3)
(1, 2, ("a", 100), 3)
04:28
04:28 raiph left 04:40 Cabanossi left 04:41 Cabanossi joined 04:42 herby_ left 05:12 khw left 05:33 yzq50 joined
yzq50 Hi. 05:33
05:37 shinobi-cl left
araraloren_ hi 05:41
05:43 Cabanossi left 05:45 Cabanossi joined, cdg left 05:48 yzq50 left 05:57 shinobi-cl joined 06:02 shinobicl joined 06:03 parv joined, shinobi-cl left 06:13 konsolebox left 06:14 konsolebox joined 06:31 shinobicl left 06:57 aborazmeh left 07:02 wamba joined
AlexDaniel releasable6: next 07:04
releasable6 AlexDaniel, Next release in 6 days and ≈11 hours. No blockers. Unknown changelog format
titsuki m: say v6AAAAAAAAAAAAAAAAA; 07:15
camelia v6.AAAAAAAAAAAAAAAAA
titsuki is this a bug? 07:17
m: say vAAAAAAAAAAAAAAAAA; 07:18
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared routine:
vAAAAAAAAAAAAAAAAA used at line 1
07:23 darutoko joined 07:34 aindilis` joined 07:36 aindilis left 07:37 cdg joined, Zoffix joined
Zoffix titsuki: no, that's a version literal. Matches v\d\w+ 07:39
with optional dots and '+' at the end
m: dd v42.meows.^name
camelia "Version"
07:41 cdg left
titsuki Zoffix: thanks. I see. 07:41
m: dd v1.0.0-beta.11 07:42
camelia 5===SORRY!5=== Error while compiling <tmp>
Malformed postfix call
at <tmp>:1
------> 3dd v1.0.7⏏050-beta.11
titsuki m: dd v1.0.0beta.11 07:44
camelia v1.0.0.beta.11
Zoffix Here's what it's looking for: github.com/rakudo/rakudo/blob/mast...1139-L1146
07:45 espadrine_ left, espadrine_ joined 07:52 buggable joined, ChanServ sets mode: +v buggable, huggable joined, ChanServ sets mode: +v huggable, ZofBot joined, ChanServ sets mode: +v ZofBot 07:53 espadrine_ left, espadrine_ joined
Zoffix m: constant v1 = 42; say v1 07:55
camelia v1
Zoffix kinda eww
m: constant v1 = 42; say ::("v1") 07:56
camelia 42
07:58 foobar` joined 08:07 Zoffix left 08:16 parv left 08:18 Zoffix joined
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 Int $!bar = 42
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')
camelia 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
Zoffix Is there any way for me to get to $!bar without making it public?
(I don't know how many roles can potentially be mixed before or after mixing Meow)
08:21 setty1 joined
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 42
Zoffix guess that works 08:23
08:58 someuser_ joined 09:01 someuser left 09:07 rindolf joined 09:08 eee_ joined
eee_ nice. 09:09
09:10 eee_ left 09:13 cdg joined 09:14 cdg_ joined 09:18 cdg left 09:19 cdg_ left 09:21 lizmat left 09:31 lizmat joined 09:36 lizmat left 09:42 lizmat joined 09:49 lisbeths is now known as johnnymacs 09:51 lizmat left 10:01 setty1 left 10:04 Herby_ joined
Herby_ o/ 10:04
10:13 lizmat joined, stmuk joined 10:15 stmuk_ left
Zoffix .tell AlexDaniel possibly to consider reverting or something before release: rt.perl.org/Ticket/Display.html?id...xn-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.
AlexDaniel . 10:19
yoleaux 10:17Z <Zoffix> AlexDaniel: possibly to consider reverting or something before release: rt.perl.org/Ticket/Display.html?id...xn-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
AlexDaniel Zoffix: that ticket is missing from fail.rakudo.party, hmm…
ah, because it was reopened 10:20
Zoffix AlexDaniel: it was marked as resolved and I've just reopened
AlexDaniel ok noted 10:21
who knows about that stuff? Maybe .tell is going to help :)
Zoffix jnthn/TimToady dunno who else 10:22
(bad bus factor there :)) 10:38
Herby_ just what I was thinking :) 10:39
well, happier thought of "lottery winner" factor
10:49 wamba left 10:50 wamba joined 10:51 lizmat left 10:52 Zoffix left 11:00 lizmat joined 11:05 lizmat left
Geth doc/post-release: 9d07ddbeff | (Zoffix Znet)++ | doc/Language/pragmas.pod6
Document `no worries` pragma

Rakudo impl: github.com/rakudo/rakudo/commit/f5b4d89fbb Spec: github.com/perl6/roast/commit/5c91d6803b
11:11
11:15 gfldex joined 11:26 Ven`` joined 11:30 Ven`` left 11:32 dct joined, lizmat joined 11:33 travis-ci joined
travis-ci Doc build failed. Zoffix Znet 'Document `no worries` pragma 11:33
travis-ci.org/perl6/doc/builds/328686674 github.com/perl6/doc/commit/9d07ddbeff54
11:33 travis-ci left
buggable [travis build above] ☠ Did not recognize some failures. Check results manually. 11:33
11:36 hankache joined 11:41 Ven`` joined 11:43 dct left 11:44 Ven` joined 11:45 Ven`` left, committable6 left 11:46 committable6 joined 11:47 hankache left 11:54 noganex left 11:57 someuser joined 11:58 someuser_ left 12:01 Ven` left 12:03 eliasr joined 12:06 kerframil joined 12:12 markong joined 12:39 foobar` left 12:46 araraloren_ left 13:07 cdg joined 13:11 cdg left 13:15 shinobi-cl joined
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 13:38 cdg joined 13:39 rindolf left 13:41 john_parr joined 13:43 cdg left 13:45 noganex left 13:48 rindolf joined 13:50 shinobi-cl left 13:53 Ven`` joined
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
AlexDaniel DrForr: not sure if you noticed this discussion, so here's a link: irclog.perlgeek.de/perl6-dev/2018-...i_15688662 13:55
13:57 rindolf left, shlomif is now known as rindolf
DrForr Thanks, will read momentarily. 13:57
AlexDaniel DrForr: heh, this piece of code summarizes the pain: github.com/houseabsolute/perl6-Pod...m6#L40-L48 13:58
DrForr Good thing because the irclog site apparently went away... 13:59
AlexDaniel just hit F5 14:00
it goes down every minute or so
and gets back up in a few seconds
DrForr o/' I get knocked down, but I get up again o/'
AlexDaniel
.oO( more like it's drunk and can't stand up properly )
14:02
but I just hit F5 and it works, so I'm not really complaining :)
DrForr o/' He takes a whisky drink, he takes a vodka drink o/' 14:05
I'm already "fixing" a few things, maybe this should be another one of them, especially if there's legacy .caption code. 14:06
Idle thoughts at this point, I really should be working on code for talks. 14:07
El_Che you should
:)
DrForr . o ( Ken, this is God. )
14:13 noganex joined, bisectable6 left 14:14 bisectable6 joined, ChanServ sets mode: +v bisectable6
El_Che DrForr: booked your travel to bxl? 14:14
DrForr All good, though now that I look a my bank balance I'm thinking about upgrading my hotel. 14:16
Arriving Thursday afternoon. 14:17
El_Che upgrading is better than downgrading :) 14:19
14:19 Ven`` left
DrForr Yep. 14:20
The current place is only abou 6 blocks from Delirium, so that's really all that matters :) 14:21
El_Che pretty central
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
(been a few years since I"e been to one.)
El_Che yeah, pizza with ketchup instead of tomato sauce, there is a market for everything 14:23
DrForr Fine line there :) 14:24
El_Che about a kg of sugar in fact 14:25
:)
14:26 cdg joined
DrForr And people wonder why Americans are viewed as obese... 14:27
14:28 Ven`` joined 14:31 cdg_ joined, cdg left 14:47 squashable6 left, squashable6 joined
AlexDaniel … why is sourceforge still a thing… 14:48
DrForr Could be worse. Could be logging in to Tucows. 14:49
Oh, wait :)
El_Che AlexDaniel: I still have an active account on sf :) 14:54
15:16 khw joined 15:18 darutoko left, darutoko joined 15:26 rgrau joined 15:29 dct joined 15:43 shinobi-cl joined 16:04 cdg_ left 16:05 dct left 16:09 setty1 joined
buggable New CPAN upload: App-Platform-0.2.0.tar.gz by KAJI cpan.metacpan.org/authors/id/K/KA/...2.0.tar.gz 16:12
16:25 zakharyas joined 16:29 cdg joined 16:30 Manifest0 left 16:36 stmuk_ joined 16:39 stmuk left 16:52 Ven`` left 16:58 Manifest0 joined 16:59 Rawriful joined, cdg left 17:00 cdg joined 17:02 aindilis` left 17:05 cdg left, zacts joined, zakharyas left 17:12 dct joined 17:23 coverable6 left, benchable6 left, coverable6 joined, ChanServ sets mode: +v coverable6, benchable6 joined, ChanServ sets mode: +v benchable6 17:24 dct left 17:33 domidumont joined 17:38 domidumont left, domidumont joined 17:43 zakharyas joined 17:45 dct joined 17:46 espadrine_ left
shinobi-cl hi all... 17:49
r: my @a = (1,2,Nil,Nil,5); say @a.perl; my @b = (1,2,Any,Any,5); say @b.perl;
camelia [1, 2, Any, Any, 5]
[1, 2, Any, Any, 5]
shinobi-cl what is the most appropiate value for "Empty" ? 17:50
17:52 dct left
moritz Empty 17:52
depends on what you want, really 17:53
in a list of Int's, the Int type object might be sensible for a missing value
or a Failure
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
i was thinking on using medat-data for indicating this so a query for empty for an undefined cell would return true
meta-data*
["A"], [1], [], [2]... say @a[2]:empty; # True 18:06
Empty is actually nullifying the element, like it never existed. 18:19
18:19 dct joined
shinobi-cl my @a = (1, Empty, 2, Nil, 3, Empty, 5); say @a.perl; say @a.elems; 18:19
r: my @a = (1, Empty, 2, Nil, 3, Empty, 5); say @a.perl; say @a.elems;
camelia [1, 2, Any, 3, 5]
5
18:20 dct left
stmuk_ if I have "(2,4).Seq" is there any neat way of returning values and a count like ("1:2", "2:4")? 18:22
18:23 zakharyas left, darutoko left
geekosaur m: say (2,4).Seq.kv.map: -> $k, $v { $k + 1 ~ ':' ~ $v } # there's probably a neater way 18:26
camelia (1:2 2:4)
geekosaur m: say (2,4).Seq.kv
camelia (0 2 1 4)
geekosaur m: say (2,4).Seq.kv.perl
camelia (0, 2, 1, 4).Seq
shinobi-cl r: say (1 .. *) Z (2,4).Seq; 18:30
camelia ((1 2) (2 4))
shinobi-cl r: say (1 .. *) Z (2,4,50,3,100).Seq;
camelia ((1 2) (2 4) (3 50) (4 3) (5 100)) 18:31
shinobi-cl r: for ((1 .. *) Z (2,4,8,16,32).Seq) -> @elem { for @elem -> $i, $v { say "$i:$v";} }; 18:33
camelia 1:2
2:4
3:8
4:16
5:32
stmuk_ hmm some great ideas there .. thanks 18:34
tbrowder DrForr: AlexDaniel: ref % config, see rakudo issue GH #1403 18:35
18:38 foobar` joined
TimToady m: my @a is default(Nil) = (1,2,Nil,Nil,5); say @a.perl 18:40
camelia [1, 2, Nil, Nil, 5]
TimToady shinobi-cl: ^^
18:40 releasable6 left, greppable6 left, reportable6 left, statisfiable6 left, releasable6 joined, ChanServ sets mode: +v releasable6, nativecallable6 left 18:41 greppable6 joined, reportable6 joined, statisfiable6 joined, nativecallable6 joined
ilmari m: my @a is default(Nil) = (1,2); @a[4] = 5; say @a.perl 18:44
camelia [1, 2, Nil, Nil, 5]
ilmari m: my @a is default(42) = (1,2); @a[4] = 5; say @a.perl
camelia [1, 2, 42, 42, 5]
ilmari m: my @a is default(42) = (1,2,Nil,Nil,5); say @a.perl
camelia [1, 2, 42, 42, 5]
18:55 dudebbn_ joined 18:58 dudebbn left
lizmat ilmari: something unexpected there ? 19:00
19:20 vike joined 19:21 kerframil left 19:37 Kaiepi joined 19:39 TEttinger left, espadrine_ joined 19:45 cdg joined 19:48 TEttinger joined 20:15 domidumont left 20:24 TEttinger left 20:50 evalable6 left, evalable6 joined, ChanServ sets mode: +v evalable6
ilmari lizmat: not really, just curious after TimToady's example, and I don't have rakudo on this box 20:52
I guess I could have /msg'ed camelia directly
lizmat ok, was just wondering :-)
20:58 lowin left 21:08 dct joined 21:12 dogbert2 joined 21:13 comborico1611 joined 21:15 lowin joined 21:29 dct left 21:35 cdg left, comborico1611 left, cdg joined 21:38 shinobi-cl left 21:40 cdg left 21:50 dct joined 22:18 rindolf left 22:25 cdg joined 22:27 herby__ joined 22:29 cdg left 22:38 cdg joined 22:39 dct left 22:43 cdg left 23:08 s0me0n3-unkn0wn joined 23:17 wamba left, dct joined 23:25 herby__ left, shinobi-cl joined 23:28 eliasr left 23:29 setty1 left 23:31 dct left 23:43 wamba joined, |oLa| left 23:52 Kaiepi left