»ö« 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.
comborico1611 Is the file name .p6 or .pl6? 01:50
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
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]
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
herby_ o/ 03:11
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
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)
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
yzq50 Hi. 05:33
araraloren_ hi 05:41
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
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"
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
Zoffix m: constant v1 = 42; say v1 07:55
camelia v1
Zoffix kinda eww
m: constant v1 = 42; say ::("v1") 07:56
camelia 42
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)
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
eee_ nice. 09:09
Herby_ o/ 10:04
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
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
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
buggable [travis build above] ☠ Did not recognize some failures. Check results manually. 11:33
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.
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.
AlexDaniel DrForr: not sure if you noticed this discussion, so here's a link: irclog.perlgeek.de/perl6-dev/2018-...i_15688662 13:55
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. )
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
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
:)
DrForr And people wonder why Americans are viewed as obese... 14:27
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
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
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
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
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
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
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
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: ^^
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]
lizmat ilmari: something unexpected there ? 19:00
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 :-)