»ö« 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:00 mcmillhj left 00:08 cdg joined 00:12 mcmillhj joined 00:13 cdg left 00:15 shareable6 left 00:17 shareable6 joined 00:22 stmuk_ joined 00:24 stmuk left 00:29 cdg joined 00:31 mcmillhj left 00:34 cdg left 00:35 dct_ left 00:36 wamba left 00:37 shareable6 left, shareable6 joined 00:39 pierre__ joined
[Coke] I don't get to do a lot of development at work anymore, but ColdFusion & Java were high on the list. 00:40
00:40 shareable6 left 00:44 mcmillhj joined 00:49 mcmillhj left 00:50 cdg joined 00:53 shareable6 joined 00:55 cdg left, mcmillhj joined 00:56 pierre__ left 00:59 mcmillhj left 01:02 jeromelanteri joined 01:11 itaylor57 left 01:12 itaylor57 joined 01:19 konsolebox left 01:25 konsolebox joined 01:29 mcmillhj joined 01:33 konsolebox left, konsolebox joined 01:34 mcmillhj left 01:37 awwaiid joined 01:41 konsolebox left 01:42 mcmillhj joined, konsolebox joined 01:45 jeromelanteri left 01:47 mcmillhj left 01:56 cdg joined 01:57 mcmillhj joined, Rawriful left 02:02 mcmillhj left, cdg left 02:08 Lynx_ left
mspo CF? 02:08
02:09 espadrine_ left, Lynx_ joined
ZzZombo m: class A {method a{'a'};method b(|c){c.say}};class B {has A $!a handles *};with B.new {.a;.b} 02:10
camelia \()
ZzZombo m: class A {method a{'a'};method b(|c){c.say}};class B {has A $!a handles *};with B.new {.a.say;.b}
camelia a
\()
02:12 markong left 02:14 mcmillhj joined 02:19 mcmillhj left 02:24 mcmillhj joined 02:32 mcmillhj left 02:33 cdg joined 02:34 mniip left 02:36 mniip joined 02:37 cdg left 02:46 ilbot3 left 02:55 ilbot3 joined, ChanServ sets mode: +v ilbot3 02:56 mcmillhj joined 03:02 mcmillhj left 03:08 mcmillhj joined 03:09 cdg joined
Xliff m: $*VERSION.say 03:13
camelia Dynamic variable $*VERSION not found
in block <unit> at <tmp> line 1
03:13 cdg left, mcmillhj left
AlexDaniel Xliff: which version are you looking for? :) 03:15
yoleaux 01:36Z <tbrowder> AlexDaniel: see my updated comment in nqp PR #401. i need expert help to get the nqp::spawnprocasync code in it working. if that can work, then we can have a good test.
Xliff What's the latest "perl6 -v"
AlexDaniel say $*PERL.compiler
evalable6 rakudo (2018.01.177.gc.6.b.1880.b.4)
AlexDaniel say $”VM 03:16
say $*VM
evalable6 moar (2018.01.82.g.296620.e.86)
AlexDaniel say $*PERL
evalable6 Perl 6 (6.c)
Xliff Fuuuu
Somehow I've been rakudobrewing 2017.10
I'm stuck on it.
AlexDaniel well… because…
we changed the default branch from “nom” to “master” :)
Xliff :P
AlexDaniel NQP#401 03:17
synopsebot NQP#401 [open]: github.com/perl6/nqp/pull/401 improve pod panic msg
Xliff so it's rakudobrew build moar-master?
No... 03:18
AlexDaniel rakudobrew self-upgrade
that's according to rakudo.org/2017/10/27/main-developm...to-master/
Xliff 'kay 03:19
Thanks.
So I've been building on the wrong branch since Turkey month. Wheee! 03:20
03:20 mcmillhj joined 03:25 mcmillhj left
ZzZombo m: class A {method a{self.say};method !b(|c){c.say}};class B {has A $!a handles *};with B.new {.a.say;.!b} 03:32
camelia 5===SORRY!5=== Error while compiling <tmp>
Malformed postfix call
at <tmp>:1
------> 3as A $!a handles *};with B.new {.a.say;.7⏏5!b}
ZzZombo m: class A {method a{self.say};method !b(|c){c.say}};class B {has A $!a handles *};with B.new {.a.say;$_!b}
camelia 5===SORRY!5=== Error while compiling <tmp>
Private method call to b must be fully qualified with the package containing the method
at <tmp>:1
------> 3A $!a handles *};with B.new {.a.say;$_!b7⏏5}
expecting any of:
metho…
ZzZombo m: class A {method a{self.say};method !b(|c){c.say}};class B {has A $!a handles *};with B.new {.a.say;$_::B!b} 03:33
camelia 5===SORRY!5=== Error while compiling <tmp>
Private method call to b must be fully qualified with the package containing the method
at <tmp>:1
------> 3!a handles *};with B.new {.a.say;$_::B!b7⏏5}
expecting any of:
metho…
ZzZombo m: class A {method a{self.say};method !b(|c){c.say}};class B {has A $!a handles *};with B.new {.a}
camelia (A)
ZzZombo So what use does `handles` have? 03:34
m: class A {method a(|c){(self,c).say};method !b(|c){c.say}};class B {has A $!a handles *};with B.new {.a}
camelia ((A) \())
ZzZombo It would be a bit more useful if the delegating object was available somehow in the delegate. 03:35
m: my Int Str $a 03:36
camelia 5===SORRY!5=== Error while compiling <tmp>
Multiple prefix constraints not yet implemented. Sorry.
at <tmp>:1
------> 3my Int Str7⏏5 $a
lizmat another sighting of Camelia in the wild: www.facebook.com/139508053330390/p...mp;theater 03:37
03:38 mcmillhj joined
lizmat check out the top of the Marshall amp on the right hand side :-) 03:38
03:43 mcmillhj left 03:44 konsolebox left 03:45 cdg joined 03:49 cdg left 03:50 konsolebox joined 03:53 shareable6 left 03:55 bisectable6 left, shareable6 joined, ChanServ sets mode: +v shareable6, committable6 left, committable6 joined 03:56 notable6 left, bloatable6 left, notable6 joined, bisectable6 joined, ChanServ sets mode: +v bisectable6, bloatable6 joined, bisectable6 left, bisectable6 joined, ChanServ sets mode: +v bisectable6 03:58 mcmillhj joined 04:03 mcmillhj left
Geth whateverable: 35de4ba3bc | (Aleks-Daniel Jakimenko-Aleksejev)++ | 2 files
Configurable is better than hardcoded

There are many things that should be changed like this.
04:04
whateverable: c5278250b5 | (Aleks-Daniel Jakimenko-Aleksejev)++ | bin/Shareable.p6
Make the HEAD build available as .tar.gz

In case somebody wants to use it on an ancient system where zstd is not easily available. Maybe perl6/doc#1765 ?
We'll see how this goes and if it's useful I can improve the code later.
synopsebot DOC#1765 [open]: github.com/perl6/doc/issues/1765 [build] Reduce travis test time
04:08 konsolebox left, konsolebox joined 04:12 Cabanossi left 04:13 Cabanossi joined 04:15 konsolebox left 04:16 konsolebox joined 04:19 mcmillhj joined 04:21 cdg joined 04:24 mcmillhj left 04:26 cdg left 04:31 mcmillhj joined 04:33 konsolebox left 04:34 konsolebox joined 04:36 mcmillhj left 04:46 mcmillhj joined 04:51 mcmillhj left 04:54 AlexDaniel left 04:57 cdg joined 05:02 cdg left 05:05 mcmillhj joined 05:06 HTR_ joined 05:07 HTR_ left 05:10 mcmillhj left 05:15 aindilis left 05:16 aindilis` joined 05:21 konsolebox left 05:22 konsolebox joined 05:24 mcmillhj joined 05:31 mcmillhj left 05:40 konsolebox left, mcmillhj joined 05:41 konsolebox joined 05:46 mcmillhj left 05:48 konsolebox left 05:50 khw left 05:51 konsolebox joined 05:55 troys left 06:01 evalable6 left 06:02 evalable6 joined 06:04 cdg joined 06:06 mcmillhj joined 06:07 aindilis` left 06:08 aindilis` joined, cdg left 06:10 jeromelanteri joined 06:11 jeromelanteri left, R0b0t1 left, mcmillhj left, jeromelanteri joined 06:19 aindilis` left 06:20 mcmillhj joined 06:23 pierre__ joined 06:25 mcmillhj left 06:28 konsolebox left, mcmillhj joined, konsolebox joined 06:30 wigner joined 06:33 mcmillhj left, eliasr left 06:35 laaa joined 06:36 mcmillhj joined 06:38 konsolebox left 06:40 cdg joined 06:41 mcmillhj left, konsolebox joined 06:42 wigner left 06:44 jeromelanteri left, cdg left 06:54 konsolebox left 06:56 konsolebox joined 06:57 jeromelanteri joined 07:01 konsolebox left 07:02 konsolebox joined, mcmillhj joined 07:07 wigner joined 07:08 mcmillhj left, mcmillhj joined 07:13 mcmillhj left 07:14 wigner left 07:15 wigner joined 07:16 cdg joined, laaa left 07:17 laaa joined 07:20 konsolebox left 07:21 cdg left, konsolebox joined 07:29 konsolebox left 07:31 konsolebox joined 07:36 wigner left, wigner joined 07:37 konsolebox left 07:39 konsolebox joined 07:41 mcmillhj joined 07:46 laaa left, mcmillhj left 07:52 cdg joined 07:57 cdg left, wamba joined 07:58 imcsk8 left, imcsk8 joined 08:00 mcmillhj joined 08:06 mcmillhj left 08:13 konsolebox left 08:16 konsolebox joined, agwind left 08:18 agwind joined 08:20 andrzejku joined, wigner left 08:23 darutoko joined 08:26 konsolebox left
ZzZombo s: &self, \() 08:27
SourceBaby ZzZombo, Something's wrong: ␤ERR: ===SORRY!=== Error while compiling -e␤Undeclared routine:␤ self used at line 6␤␤
08:27 konsolebox joined
ZzZombo err 08:27
s: self
SourceBaby ZzZombo, Something's wrong: ␤ERR: ===SORRY!=== Error while compiling -e␤'self' used where no object is available␤at -e:6␤------> put sourcery(<HERE> self )[1];␤ expecting any of:␤ argument list␤ term␤
ZzZombo Why do the docs say self is a function?? 08:28
08:28 cdg joined 08:30 Zoffix joined
Zoffix ZzZombo: on which page do they say that? 08:30
08:30 mcmillhj joined
ZzZombo docs.perl6.org/routine/self 08:31
routine
"(Mu) method self"
Zoffix ZzZombo: "routine" means method, submethod, or sub
m: say Method ~~ Routine
camelia True
Zoffix s: 42, 'self', \() 08:32
SourceBaby Zoffix, Sauce is at github.com/rakudo/rakudo/blob/1340.../Mu.pm#L11
Zoffix s: Failure.new, 'self', \()
SourceBaby Zoffix, Sauce is at github.com/rakudo/rakudo/blob/1340...re.pm#L105
08:33 cdg left
Zoffix and Regex is also Routine 08:34
08:35 konsolebox left 08:36 mcmillhj left
ZzZombo `method self{self}` is not what I'm after. Where actually does the symbol "self" get installed? 08:36
08:37 konsolebox joined
ZzZombo And why is `self` here `Mu`? 08:37
m: sub look{my &m;my $i=2;while !&m && try callframe($i++) -> $f {given $f.code {when Method {say $f.my.map({.key=>.value});&m=$_};when Sub {last}}};$i.say;&m};class A {method m{}};class B is A {method m{my $a=123;look.say}};B.new.m
camelia ($_ => (Any) $/ => Nil self => (Mu) %_ => (Mu) $*DISPATCHER => (MethodDispatcher) $! => Nil $a => 123 $¢ => Nil)
3
m
Zoffix It's installed by the core Actions/Grammar 08:39
08:42 konsolebox left
Zoffix m: BEGIN $?LANG.refine_slang: 'MAIN', role { token term:sym<self> { ['♥'||<sym>] <.end_keyword> { $*HAS_SELF || self.typed_sorry('X::Syntax::Self::WithoutObject') } } }; class Foo { has $.b = 42; method z { ♥.b } }.new.z.say 08:44
camelia 5===SORRY!5=== Error while compiling <tmp>
Bogus statement
at <tmp>:1
------> 3 }; class Foo { has $.b = 42; method z {7⏏5 ♥.b } }.new.z.say
expecting any of:
prefix
term
Zoffix wonder why it doesn't wanna pick it up
m: BEGIN $?LANG.refine_slang: 'MAIN', role { token term:sym<self> { ['♥'||<sym>] { $*HAS_SELF || self.typed_sorry('X::Syntax::Self::WithoutObject') } } }; class Foo { has $.b = 42; method z { ♥.b } }.new.z.say 08:45
camelia 42
Zoffix ^_^
08:47 Zoffix left, mcmillhj joined, konsolebox joined 08:52 mcmillhj left 09:00 mcmillhj joined 09:01 Ulti left 09:03 setty1 joined 09:05 mcmillhj left 09:07 Ulti joined 09:10 konsolebox left 09:12 konsolebox joined 09:16 mcmillhj joined 09:17 konsolebox left 09:21 mcmillhj left, konsolebox joined 09:28 mcmillhj joined 09:29 sena_kun joined, konsolebox left, konsolebox joined 09:31 imcsk8 left 09:32 mcmillhj left 09:38 jeromelanteri left, mcmillhj joined 09:39 jeromelanteri joined 09:40 rindolf joined 09:41 cdg joined 09:44 mcmillhj left 09:46 cdg left 09:53 mcmillhj joined 09:57 isBEKaml joined, mcmillhj left 09:58 mcmillhj joined 09:59 konsolebox left 10:01 konsolebox joined, ChoHag joined 10:03 mcmillhj left 10:05 mcmillhj joined 10:10 mcmillhj left 10:11 konsolebox left 10:12 konsolebox joined, cdg joined 10:13 mcmillhj joined 10:16 isBEKaml left 10:17 cdg left 10:19 mcmillhj left 10:22 konsolebox left
Geth doc/master: 22 commits pushed by (JJ Merelo)++
review: github.com/perl6/doc/compare/b1b10...db93ff0c9c
10:22
10:22 mcmillhj joined 10:23 konsolebox joined 10:29 pierre__ left 10:31 mcmillhj left
ZzZombo s: &term:<rand>,\() 10:39
SourceBaby ZzZombo, Something's wrong: ␤ERR: ===SORRY!=== Error while compiling -e␤Undeclared routine:␤ term:<rand> used at line 6. Did you mean 'term:<time>', 'term:<now>'?␤␤
ZzZombo s: &term:<now>,\()
SourceBaby ZzZombo, Sauce is at github.com/rakudo/rakudo/blob/835b...nt.pm#L121
ZzZombo s: &rand,\()
SourceBaby ZzZombo, Sauce is at github.com/rakudo/rakudo/blob/835b...um.pm#L519
10:40 espadrine_ joined, eroux joined 10:51 AndroUser joined, konsolebox left 10:52 boop joined
boop Rakudo 10:52
10:53 Ven`` joined, boop left, konsolebox joined 10:54 Ven`` left 10:55 AndroUser left 10:56 Ven`` joined, nexysno joined 11:07 cdg joined
ZzZombo Why this doesn't work? 11:08
m: package A {my package EXPORTHOW::DECLARE {constant test=class TestHOW is Metamodel::ClassHOW {method compose(|c){c.say;nextsame}}}};import A;test B {};say B.new.a
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared name:
B used at line 1
Undeclared routine:
test used at line 1
11:12 cdg left 11:16 kybr joined 11:22 pmurias joined 11:37 setty1 left 11:48 cdg joined 11:53 cdg left 11:58 pierre__ joined 12:01 markong joined 12:02 AlexDaniel joined 12:09 TEttinger left
Geth doc: 6869aa01c2 | (Aleks-Daniel Jakimenko-Aleksejev)++ | .travis.yml
Simplified travis file
12:11
12:13 nebuchadnezzar left 12:14 travis-ci joined
travis-ci Doc build errored. Aleks-Daniel Jakimenko-Aleksejev 'Simplified travis file' 12:14
travis-ci.org/perl6/doc/builds/340110665 github.com/perl6/doc/compare/db93f...69aa01c288
12:14 travis-ci left
buggable [travis build above] ☠ Did not recognize some failures. Check results manually. 12:14
12:15 pmurias left
Geth doc: 1356c719c1 | (Aleks-Daniel Jakimenko-Aleksejev)++ | .travis.yml
OK, whatever

That didn't work and I have no idea why.
12:19
12:26 zeddy_k joined 12:30 andrzejku left 12:36 travis-ci joined
travis-ci Doc build passed. Aleks-Daniel Jakimenko-Aleksejev 'OK, whatever 12:36
travis-ci.org/perl6/doc/builds/340112168 github.com/perl6/doc/compare/6869a...56c719c1f2
12:36 travis-ci left 12:45 konsolebox left 12:52 zakharyas joined, konsolebox joined 13:01 pierre__ left 13:02 pierre__ joined 13:06 pierre__ left 13:17 pierre__ joined 13:21 a3f left, a3f joined 13:27 zakharyas left 13:28 Ven`` left 13:32 andrzejku joined 13:41 eliasr joined 13:43 zeddy__k joined 13:46 zeddy_k left 13:48 zakharyas joined 13:51 ChoHag left
SmokeMachine m: proto bla(--> Hash()) {*}; multi bla {a => 1, b => 2}; sub ble(-->Hash()) {a => 1, b => 2}; bla.^name; ble.^name 13:54
camelia ( no output )
SmokeMachine m: proto bla(--> Hash()) {*}; multi bla {a => 1, b => 2}; sub ble(-->Hash()) {a => 1, b => 2}; say bla.^name; say ble.^name 13:55
camelia List
Hash
SmokeMachine shouldn't blame and bye return the same type?
s/blame and bye/bla and ble/ 13:56
Geth whateverable: a1ddbea155 | (Aleks-Daniel Jakimenko-Aleksejev)++ | 2 files
Add releases: shortcut

I used this myself many times only to realize that it does not work.
13:56 committable6 left, committable6 joined
Geth whateverable: fc82a6653d | (Aleks-Daniel Jakimenko-Aleksejev)++ | bin/Committable.p6
Use “releases” instead of hardcoding it to 6c

This is going to work better once we move to v6.d.
13:58
13:58 committable6 left, committable6 joined, ChanServ sets mode: +v committable6 14:00 AddGotoStatement joined, AddGotoStatement left 14:10 pierre__ left 14:13 pierre__ joined 14:21 Praise left, ChoHag joined 14:24 Ven`` joined 14:25 zakharyas left
ZzZombo Anybody to answer my question? 14:25
14:26 eserte joined
AlexDaniel answerable: are you ready? 14:27
14:28 mcmillhj joined
AlexDaniel ZzZombo: just ask and we'll see if somebody can help :) 14:28
ZzZombo Why this doesn't work?
m: package A {my package EXPORTHOW::DECLARE {constant test=class TestHOW is Metamodel::ClassHOW {method compose(|c){c.say;nextsame}}}};import A;test B {};say B.new.a
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared name:
B used at line 1
Undeclared routine:
test used at line 1
AlexDaniel ZzZombo: ok… I don't really know, but shouldn't it be “constant test is export = …” ? 14:31
14:33 mcmillhj left 14:35 zakharyas joined 14:36 mcmillhj joined
jnthn ZzZombo: Pretty sure you need your meta-type in a different file, and to `use` it`, for that to work. 14:37
yoleaux 10 Feb 2018 18:54Z <Zoffix> jnthn: Wrote down a proposal for how I imagine type constraints on constants working, if you wanted to comment. This is basically clarification to 6.c spec rather than anything new: github.com/rakudo/rakudo/blob/mast...8-02-10.md
14:38 pierre__ left 14:40 zakharyas left 14:45 mcmillhj left 14:56 pecastro left 14:57 pecastro joined 15:01 pecastro left 15:06 nebuchadnezzar joined 15:15 statisfiable6 left, squashable6 left, unicodable6 left, nativecallable6 left 15:16 greppable6 left, squashable6 joined, statisfiable6 joined, ChanServ sets mode: +v statisfiable6, nativecallable6 joined, unicodable6 joined, greppable6 joined, ChanServ sets mode: +v greppable6
AlexDaniel benchable6: uptime 15:16
benchable6 AlexDaniel, 17 hours, 28 minutes, and 4 seconds, 878.917969MiB maxrss. This is Rakudo version 2018.01-174-gef1d22f4c built on MoarVM version 2018.01-82-g296620e86 implementing Perl 6.c.
15:21 pierre__ joined 15:29 mcmillhj joined 15:30 Ven`` left 15:34 mcmillhj left 15:36 andrzejku left
Voldenet SmokeMachine: I might be mistaken, but I think proto can't define return types, or rather it won't work as you think 15:38
m: proto bla(--> int) {*}; multi bla {a => 1, b => 2}; sub ble(-->Hash()) {a => 1, b => 2}; say bla.^name; say ble.^name 15:39
camelia List
Hash
15:43 pierre__ left, mcmillhj joined
Voldenet and if I understand correctly, it can be checked in a proto 15:45
15:45 Ven`` joined
Voldenet m: proto bla(--> Hash) { my $h = {*}; die("Hash expected, got " ~ $h.WHAT) if $h !~~ Hash; }; multi bla {a => 1, b => 2}; bla.WHAT.say 15:46
camelia Use of uninitialized value of type List in string context.
Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful.
in sub bla at <tmp> line 1
Hash expected, got
in sub bla at <tmp> line 1
in block <u…
Voldenet m: proto bla(--> Hash) { my $h = {*}; die("Hash expected, got " ~ $h.^name) if $h !~~ Hash; }; multi bla {a => 1, b => 2}; bla.WHAT.say 15:47
camelia Hash expected, got List
in sub bla at <tmp> line 1
in block <unit> at <tmp> line 1
Voldenet m: proto bla(--> Hash) { my $h = {*}; die("Hash expected, got " ~ $h.^name) if $h !~~ Hash; }; multi bla { { a => 1, b => 2 }}; bla.WHAT.say
camelia Type check failed for return value; expected Hash but got Slip (Empty)
in sub bla at <tmp> line 1
in block <unit> at <tmp> line 1
Voldenet m: proto bla(--> Hash) { my $h = {*}; die("Hash expected, got " ~ $h.^name) if $h !~~ Hash; $h }; multi bla { { a => 1, b => 2 }}; bla.WHAT.say
camelia (Hash)
Voldenet ugh, this kind of works, you might also just do this: 15:48
m: proto bla(--> Hash) { {*}.Hash }; multi bla {a => 1, b => 2}; bla().WHAT.say
camelia (Hash)
Voldenet m: proto bla(--> Hash) { {*}.Hash }; multi bla { 42 }; bla().WHAT.say
camelia Odd number of elements found where hash initializer expected:
Only saw: 42
in sub bla at <tmp> line 1
in block <unit> at <tmp> line 1
Voldenet and it will kind of fail 15:49
15:49 mcmillhj left
Voldenet in a way you might not expect 15:49
15:58 mcmillhj joined 16:02 john_parr left, mcmillhj left
titsuki bisectable: say sprintf("%lf",10); 16:06
bisectable6 titsuki, Bisecting by output (old=2015.12 new=00af9ce) because on both starting points the exit code is 1
titsuki, bisect log: gist.github.com/7369e66bb57817b924...a63d26f2ba
titsuki, (2016-03-16) github.com/rakudo/rakudo/commit/ad...1088605184
titsuki Why doesn't Per6 treat %lf same as %f? 16:10
*Perl6
16:12 mcmillhj joined
ZzZombo then another unanswered question, why does this fail as well: 16:13
m: class A is Hash[Int] {}
camelia 5===SORRY!5=== Error while compiling <tmp>
Cannot resolve caller trait_mod:<is>(A, Hash, Array); none of these signatures match:
(Mu:U $child, Mu:U $parent)
(Mu:U $child, :$DEPRECATED!)
(Mu:U $type, :$rw!)
(Mu:U $type, :$…
ZzZombo m: class A is Hash[Int] {} 16:14
camelia 5===SORRY!5=== Error while compiling <tmp>
Cannot resolve caller trait_mod:<is>(A, Hash, Array); none of these signatures match:
(Mu:U $child, Mu:U $parent)
(Mu:U $child, :$DEPRECATED!)
(Mu:U $type, :$rw!)
(Mu:U $type, :$…
ZzZombo damn
m: class A {};class B is A[] {}
camelia 5===SORRY!5=== Error while compiling <tmp>
Cannot resolve caller trait_mod:<is>(B, A, Array); none of these signatures match:
(Mu:U $child, Mu:U $parent)
(Mu:U $child, :$DEPRECATED!)
(Mu:U $type, :$rw!)
(Mu:U $type, :$nat…
16:16 mcmillhj left 16:17 skids joined 16:22 john_parr joined 16:26 mcmillhj joined 16:27 setty1 joined 16:31 espadrine_ is now known as espadrine 16:33 khw joined 16:35 mcmillhj left 16:39 ChoHag_ joined 16:40 ChoHag left 16:42 mcmillhj joined 16:45 Ven`` left 16:53 pecastro joined 16:59 Rawriful joined
timotimo ZzZombo: because "is Blah(123)" is syntax for giving parameters to a trait, just like "is repr('CStruct')" or so 16:59
hm, is that actually what your question is about? 17:00
ZzZombo That's bad, what I want is actually this: 17:01
m: role R[|] {};class A is R['test'] {}
camelia 5===SORRY!5=== Error while compiling <tmp>
Cannot resolve caller trait_mod:<is>(A, R, Array); none of these signatures match:
(Mu:U $child, Mu:U $parent)
(Mu:U $child, :$DEPRECATED!)
(Mu:U $type, :$rw!)
(Mu:U $type, :$nat…
timotimo mhm
well, in that case you have to use "does" anyway 17:02
ZzZombo but I want autopun it
and then, I want users of my class to be able to write `A is MyParametricClass[]`. 17:03
17:03 zakharyas joined
timotimo m: role R[|] {};class A is (R['test']) {} 17:03
camelia 5===SORRY!5=== Error while compiling <tmp>
Invalid name
at <tmp>:1
------> 3role R[|] {};class A is7⏏5 (R['test']) {}
17:04
17:04 nexysno left 17:14 pecastro_ joined 17:15 zakharyas left, pecastro left 17:29 ChoHag_ left
AlexDaniel titsuki: I don't know, perhaps open a ticket for that? 17:33
17:34 lizmat_ joined 17:36 lizmat left 17:40 ChoHag joined 17:42 Ven`` joined 17:46 ChoHag left 17:47 s0me0ne-unkn0wn joined
titsuki AlexDaniel: I found that there aren't any tickets for this behavior. Should I issue a ticket? 17:48
17:50 Kaiepi left, isBEKaml joined 17:51 s0me0n3-unkn0wn left
SmokeMachine m: role R[$bla] {method bla {$bla}}; multi trait_mod:<is>(Mu:U \clazz, R, @args) { clazz.^add_parent: R[|@args].^pun }; class C is R[42] {}; say C.bla # it’s not beautiful, but... 18:00
camelia 42
SmokeMachine ZzZombo: ☝️ 18:01
18:05 stmuk joined 18:08 stmuk_ left
titsuki AlexDaniel: ok. I issued: github.com/rakudo/rakudo/issues/1514 18:13
Geth doc: 704f835499 | (JJ Merelo)++ | 2 files
Fixes trailing whitespace problems

Mainly introduced by myself, actually. Refs #1766
18:14
doc: 4501e5bb46 | (JJ Merelo)++ | .travis.yml
Merge branch 'master' of github.com:perl6/doc
doc: e01b3ca7bb | (JJ Merelo)++ | doc/Language/list.pod6
Eliminates one warning

But this is style more than a bug. Actually, there were no errors in the code with the latest version of Rakudo, so this closes #1766
synopsebot Link: doc.perl6.org/language/list
18:16 natrys joined 18:17 zeddy__k left 18:26 g- left 18:30 zakharyas joined 18:37 Ven`` left 18:39 g- joined
buggable New CPAN upload: PDF-Class-0.0.7.tar.gz by WARRINGD cpan.metacpan.org/authors/id/W/WA/...0.7.tar.gz 18:52
18:52 darutoko left
Geth whateverable: 50f4a0204e | (Aleks-Daniel Jakimenko-Aleksejev)++ | lib/Misc.pm6
Escape | in markdown

Rhesolves #230 and #275, but there has to be a better way.
19:09
19:13 releasable6 left, releasable6 joined, ChanServ sets mode: +v releasable6 19:19 Skarsnik joined, Skarsnik left 19:28 aindilis joined 19:34 zakharyas left, jstevens joined 19:35 zakharyas joined 19:36 zakharyas left, zakharyas joined 19:38 zakharyas left 19:39 jstevens left 19:41 Ven`` joined 19:48 Kaiepi joined 19:54 cdg joined 19:55 andrzejku joined 20:05 lelf joined 20:15 sena_kun left 20:21 Ven`` left 20:28 cdg left 20:29 cdg joined 20:33 cdg left
lelf (Inside grammar) can you pass a rule as an argument to another rule? 20:39
moritz should be possible, but not trivial 20:40
let me cook up an example...
lelf I'm totally lost in syntax for that :) 20:42
moritz perlpunks.de/paste/show/5a80aafc.3a4f.1ae first shot 20:43
I guess rules are not optimized for higher-level programming 20:44
lelf hmm 20:50
20:55 TEttinger joined
lelf I need to “parameterize” part of grammar (think, expr over Int / expr over one-letter variable). I can totally do that with grammar inheritance. Just searching for a less verbose way. 20:56
jnthn self.^lookup('a') is a bit less to type 20:57
And I think it could be called as <&param> 20:58
If you want to use regex syntax in the target
moritz token x(&param) { <&param> }
dies with
Undeclared routine:
param used at line 10
jnthn :/ 20:59
What about just &param without the <...> around it?
moritz doesn't error, but doesn't match either
jnthn Or just $param in both places I think should work failing that
Curious, wonder why 21:00
moritz just $param works
perlpunks.de/paste/show/5a80aef0.75e5.3af works
parameterizing rules is something that I left out in my book 21:01
guess there's always options for v2 :-)
jnthn Guess it's hard to cover everyting 21:02
*everything
moritz wasn't the goal either :)
jnthn That sounds wise. :-) 21:04
21:06 natrys left
lelf Ha. I even tried that (token x($arg))... Now I know why it didn't work. Because I was trying to guess syntax for method lookup 21:07
moritz m: grammar A { token x(&a) { &a } } 21:08
camelia ( no output )
moritz m: grammar A { token x(&a) { <&a> } }
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared routine:
a used at line 1
moritz that is a bug, right?
jnthn Yeah, surely 21:09
moritz I opened github.com/rakudo/rakudo/issues/1516 21:14
21:17 pmurias joined
MasterDuke committable6: releases grammar A { token x(&a) { <&a> } } 21:19
committable6 MasterDuke, ¦releases (27 commits): «04===SORRY!04=== Error while compiling /tmp/YN6tJVU8iB␤Undeclared routine:␤ a used at line 1␤␤ «exit code = 1»»
21:25 Sgeo_ left
AlexDaniel m: say 42 21:35
camelia 42
AlexDaniel m:say 42
evalable6 42
21:37 Sgeo joined 21:38 zeddy_k joined 21:48 Sgeo_ joined 21:50 Sgeo__ joined, Sgeo left 21:52 Sgeo_ left 22:15 evalable6 left, evalable6 joined, andrzejku left 22:19 dct_ joined 22:49 Thrush joined 22:56 eroux left
Thrush Hi, guys! I was wondering if there's a certain module available in Rakudo Star, and if not, if it could be part of its standard modules. 22:58
It's a module to convert filename wildcards from "*/*/*.txt" to a list of filenames that it matches. Just like glob() in Perl5, Dir[] in Ruby, and the "import" module in Python. I don't know of one in Perl6 that's standard. Or is there one I don't know about? 23:00
...I meant: ...and the "glob" module in Python. (Not "import".) 23:01
MasterDuke buggable: eco glob 23:02
AlexDaniel Thrush: something like github.com/zostay/perl6-IO-Glob ?
buggable MasterDuke, Found 3 results: IO::Glob, IO::Glob, Module::Does. See modules.perl6.org/s/glob
AlexDaniel fwiw I don't see it in github.com/rakudo/star/blob/master...ODULES.txt 23:03
Thrush IO::Glob might be what I'm looking for, but neither IO::Glob, IO::Glob, nor Module::Does comes standard with the Rakudo Star I downloaded. (Maybe it's out-of-date?) 23:05
AlexDaniel no, it's not included in rakudo star 23:06
Thrush I think it would be good to make it a standard module, since Perl is supposed to be a language that works well with file operations, and so an IO::Glob module would pretty much be expected.
geekosaur I think the problem is globbing has inherent OS dependencies 23:08
Thrush I know the people maintain Rakudo Star probably get lots of requests to make a module standard, but I think IO::Glob deserves to be part of every Perl 6 distribution. Otherwise, Perl 6 lacks a very useful feature, present in just about every other scripting language (including Perl 5).
geekosaur: Maybe, but that doesn't stop the other languages from having something similar. 23:09
jnthn Thrush: Perhaps file an issue on the Rakudo Star distro: github.com/rakudo/star/issues 23:10
23:10 cdg joined
jnthn (Since I don't think anyone who decides what goes into it is here right now) 23:11
Thrush jnthn: Thanks. Do I need a github account to submit a New Issue? 23:12
23:13 lelf left, rindolf left
AlexDaniel Thrush: for that particular repo yes 23:13
23:14 evalable6 left, evalable6 joined 23:15 cdg left 23:17 setty1 left 23:20 pmurias left 23:29 wamba left
Geth whateverable: f908495295 | (Aleks-Daniel Jakimenko-Aleksejev)++ | t/lib/Testable.pm6
Fix uptime test

I have no idea why this is still not committed. The change happened a long time ago.
23:30
whateverable: 177b77cb2e | (Aleks-Daniel Jakimenko-Aleksejev)++ | 2 files
Add a gazillion of ways to trigger Evalable

When camelia is not around.
23:30 evalable6 left 23:33 evalable6 joined, ChanServ sets mode: +v evalable6 23:34 jstevens joined 23:41 jstevens left