»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'perl6: say 3;' or rakudo:, niecza:, std:, or /msg p6eval perl6: ... | irclog: irc.perl6.org/ | UTF-8 is our friend!
Set by sorear on 4 February 2011.
lue rakudo's .write(Buf) method currently returns True (which I assume means "all bytes written"), instead of the number of bytes written like it's supposed to. Is this a known bug? 00:40
s/it's/its/ 00:41
flussence the True value is hardcoded, which I'm pretty sure is a bug. Can't find anything in RT about it though 00:44
felher night, #perl6 :) 00:56
sorear night felher 00:58
colomon has the Niecza MP3 tools working again! 02:21
sorear yay! 02:29
colomon Just a matter of getting taglib talking to mono again, not really a big deal. dunno why it gave me trouble last time I tried it. 02:30
dalek rl6-bench: 7f8ae16 | (Geoffrey Broadwell)++ | timeall:
Stop forcing nqp timing dir to the old directory
04:45
rl6-bench: dab496f | (Geoffrey Broadwell)++ | timeall:
Dial back rc-man-or-boy-test to 9 to avoid recursion depth errors across all implementations
grondilu rn: my @x = 0 xx 5; @x[2, 4]++; say @x 05:04
p6eval niecza v24-12-g8e50362: OUTPUT«Unhandled exception: cannot increment a value of type Parcel␤ at <unknown> line 0 (ExitRunloop @ 0) ␤ at /home/p6eval/niecza/lib/CORE.setting line 270 (Mu.succ @ 9) ␤ at <unknown> line 0 (ExitRunloop @ 0) ␤ at /tmp/kA4kLeBK13 line 1 (mainline @ 4) ␤ a…
..rakudo 13e805: OUTPUT«No such method 'succ' for invocant of type 'Parcel'␤ in sub postfix:<++> at src/gen/CORE.setting:1616␤ in block at /tmp/dBqyxVM3oR:1␤␤»
grondilu rn: my @x = 0 xx 5; @x[2, 4]»++; say @x 05:05
p6eval rakudo 13e805, niecza v24-12-g8e50362: OUTPUT«0 0 1 0 1␤»
dalek pan style="color: #395be5">perl6-examples: 9bd229a | (L. Grondin)++ | rosalind/lrep-grondilu-p5.pl:
[rosalind] LREP, Perl5 version, to be translated
05:42
hoelzro morning #perl6 09:32
hbg morning
:)
Kharec morning:)
FROGGS_ morning o/ 09:34
FROGGS better 09:35
moritz \o 10:00
hoelzro good going on the better Rakudo errors in 2012.12, Rakudo team! 10:53
(Rakudo Team)++
jnthn phenny: tell [Coke] doubles are fine. _n implies double, _i implies long, _s implies String, in general. 10:54
phenny jnthn: I'll pass that on when [Coke] is around.
jnthn phenny: tell pmurias yes, just reading the binary data is probably best. It's what I shall do for the JVM implementation. 10:56
phenny jnthn: I'll pass that on when pmurias is around.
jnthn is out for most of the day &
pmurias jnthn: I'm experimenting with reading the binary data on the javascript side 11:34
phenny pmurias: 10:56Z <jnthn> tell pmurias yes, just reading the binary data is probably best. It's what I shall do for the JVM implementation.
pmurias jnthn: one (maybe crazy) idea is that if we serialize the QAST too we could represent compiled programs in a backend portable manner ;) 11:35
pmurias jnthn: is the description of the serialized format header correct? 11:55
jnthn: so entries seem duplicated?
hbg What do you think about redesigning perl6.org website? 12:01
#perl6
pmurias hbg: do you want to do that? 12:02
hoelzro what's the meaning of parameters on a token? 12:10
ex. token sibble($l, $lang2, @lang2tweaks?)
pmurias hoelzro: isn't the meaning the same as with normal methods? 12:12
hoelzro I have no idea
I just came across it in Grammar.pm, and this is the first I've seen of it
pmurias hoelzro: I think so, can't find it in spec 12:12
hoelzro what invokes a token, though? 12:13
hoelzro may just need a better understanding of the regex stuff
oh, I see 12:14
a rule can invoke a subrule via <subrule(...)>
interesting
hbg pmurias: I was disconnected so I didn't see any messages for a few minutes 12:15
So what do you think about redesigning perl6.org website?
pmurias that depends on what it's redesigned too ;)
s/too/to 12:16
hbg: do you want to redesign it or do you just dislike it? 12:17
hbg: personally I sort of like the layout but the page could be made more pretty 12:18
hbg pmurias: I like how simple it is now, I just just wanted to see what community think about idea that someone try to redesign website 12:19
pmurias: and I would be glad to help with redesign, to make it more modern and that could possible atract more people to get involved in project 12:20
pmurias: not just programmers but also designers and people who are interested in marketing,etc
pmurias I think nobody would protest a prettier/better website ;) 12:23
myself I don't have much graphic design skills so I can't help much
jnthn: re format, I now see the description was correct. I was mistaking extra offsets for data as duplication 12:26
hbg I was involved in other open source projects where I also worked on design so I wanted to see if I can help perl community with my skills 12:29
I can show you some examples of my work
just to get idea
Here is my work for LibreOffice project (link to my wiki page): wiki.documentfoundation.org/User:See 12:33
pmurias hbg: looks good ;) 12:39
lunch&
hbg tnx;) 12:43
masak today' autopun: i.imgur.com/EfgDd.png 12:48
today's* 12:52
hbg: I would say "go for it". I don't think anyone can promise that we'll switch over to a new design if someone makes it, but we would deinfitely consider it. 13:04
hbg Of course, thank you . As I said, just wanted to see what community think, I will start learning perl and learn more about community 13:11
hbg masak: I will follow perl6 community,I am still learning about people who are involved in project, and I hope in the future as language improves we will improve design with it 13:15
masak hbg: yes, let's hope so. 13:26
grondilu rn: say all("Is this a correct method to reckognize an ASCII string?".ords) < 128 13:34
p6eval niecza v24-12-g8e50362: OUTPUT«all(Bool::True, Bool::True, Bool::True, Bool::True, Bool::True, Bool::True, Bool::True, Bool::True, Bool::True, Bool::True, Bool::True, Bool::True, Bool::True, Bool::True, Bool::True, Bool::True, Bool::True, Bool::True, Bool::True, Bool::True, Bool::True, …
..rakudo 13e805: OUTPUT«all(True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, Tru…
grondilu rn: say so all("Is this a correct method to reckognize an ASCII string?".ords) < 128 13:35
p6eval rakudo 13e805, niecza v24-12-g8e50362: OUTPUT«True␤»
moritz rn: say so all('not quite æscii'.ords) < 128 14:18
p6eval rakudo 13e805, niecza v24-12-g8e50362: OUTPUT«False␤»
moritz bbi1d, have a good 2013 everybody! 15:53
gfldex r: macro infix:<<<->>($a, $b){ say 3 }; 1 <- 2; 15:56
p6eval rakudo 13e805: OUTPUT«3␤===SORRY!===␤too few positional arguments: 2 passed, 3 (or more) expected␤»
gfldex are operators supposed to be allowed as macros? 15:57
grondilu r: macro infix:[<-]($a, $b){ say 3 }; 1 <- 2; 16:04
p6eval rakudo 13e805: OUTPUT«===SORRY!===␤Unable to parse expression in quote words; couldn't find final '>'␤at /tmp/45jHeGuUG4:1␤------> cro infix:[<-]($a, $b){ say 3 }; 1 <- 2;⏏<EOL>␤ expecting any of:␤ colon pair␤ array composer␤ …
grondilu r: macro infix:«<-»($a, $b){ say 3 }; 1 <- 2;
p6eval rakudo 13e805: OUTPUT«3␤===SORRY!===␤too few positional arguments: 2 passed, 3 (or more) expected␤»
grondilu r: macro infix:«test»($a, $b){ say 3 }; 1 test 2;
p6eval rakudo 13e805: OUTPUT«3␤===SORRY!===␤too few positional arguments: 2 passed, 3 (or more) expected␤»
grondilu iirc this used to work 16:05
gfldex i will ask masak about it ... next year :) 16:09
grondilu when is next years for u guys? For me it's in 6 hours. 17:10
[Coke] nearly 12 here. 17:11
phenny [Coke]: 10:54Z <jnthn> tell [Coke] doubles are fine. _n implies double, _i implies long, _s implies String, in general.
[Coke] gets back to the jvm stuff and finds that eclipse has reformatted all of jnthn++'s files. bad eclipse. 18:20
doy r: class Foo { method bar (Foo $foo is alias:) { } } 18:50
p6eval rakudo 13e805: OUTPUT«===SORRY!===␤Cannot call 'trait_mod:<is>'; none of these signatures match:␤:(Mu:U $child, Mu:U $parent)␤:(Attribute:D $attr, :rw(:$rw)!)␤:(Attribute:D $attr, :readonly(:$readonly)!)␤:(Attribute:D $attr, :box_target(:$box_target)!)␤:(Routine:D $r, …
doy hmmm 18:51
r: say class Foo { method bar (Foo $foo is alias:) { } }
p6eval rakudo 13e805: OUTPUT«===SORRY!===␤Cannot call 'trait_mod:<is>'; none of these signatures match:␤:(Mu:U $child, Mu:U $parent)␤:(Attribute:D $attr, :rw(:$rw)!)␤:(Attribute:D $attr, :readonly(:$readonly)!)␤:(Attribute:D $attr, :box_target(:$box_target)!)␤:(Routine:D $r, …
doy that's producing a null pmc access for me locally
paste.tozt.net/2012-12-31oDyN8Mcu
FROGGS r: class Foo { method bar (Foo $foo is alias:) { } } 19:30
p6eval rakudo 13e805: OUTPUT«===SORRY!===␤Cannot call 'trait_mod:<is>'; none of these signatures match:␤:(Mu:U $child, Mu:U $parent)␤:(Attribute:D $attr, :rw(:$rw)!)␤:(Attribute:D $attr, :readonly(:$readonly)!)␤:(Attribute:D $attr, :box_target(:$box_target)!)␤:(Routine:D $r, …
rindolf Hi all. Happy new (civil) year. 19:43
What's up?
doy hmmm 20:45
how does CANDO work?
the synopsis isn't very clear 20:46
and there don't appear to be any spectests for it
is there anything else i can look at? 20:47
rindolf NOCANDO. 20:51
doy hmmm 21:23
is there a way to lie about type checks 21:26
perigrin doy: the trick is to be convincing ... just look them straight in the eye and say "I'm a String. Wanna let me in?" 21:44
[Coke] nqp: say($*OS); 22:18
p6eval nqp: OUTPUT«␤»
[Coke] nqp: say($*EXECUTABLE_NAME);
p6eval nqp: OUTPUT«␤»
[Coke] nqp: say($*PID);
p6eval nqp: OUTPUT«␤»
[Coke] How can I tell if I'm on windows from nqp? 22:19
[Coke] nqp: say($?VM) 22:19
p6eval nqp: OUTPUT«Null PMC access in get_string()␤current instr.: '' pc 849 (src/stage2/gen/NQPCORE.setting.pir:383) (src/stage2/NQPCORE.setting:403)␤» 22:20
[Coke] masak: ^^ 22:20
nqp: say(run('uname')); 22:21
p6eval nqp: OUTPUT«Could not find sub &run␤current instr.: '' pc 46 ((file unknown):38) (/tmp/xwzLMBpeak:1)␤»
[Coke] I'll just use parrot_config for now. 22:24
[Coke] nqp: say(pir::interpinfo__Si(30)); 22:35
p6eval nqp: OUTPUT«linux␤»
[Coke] anyone have a windows box and can tell me what that says for them? 22:36
FROGGS I can tell you in about 10 hours, must go to bed and then install rakudo 22:40
gnight 22:41
JJ_Brain Happy New Year! 22:42
May I ask if there is a P=NP expert here? I may have solved the problem. The problem is arXiv did not accept it. 22:44
[Coke] gets "make test" to work on non-windows for nqp-jvm-prep. 22:48
I've committed a few things to master in a fork of jnthn++'s repo - how can I make a pull request on github of one of those commits? 22:52
(it looks like when I hit "pull request" it wants to include all of them.)
ah, if I go to the commit first, that helps. 22:55
dalek rl6-roast-data: e356a35 | coke++ | / (3 files):
today (automated commit)
22:56
perl6-roast-data: c13106b | coke++ | / (3 files):
perl6-roast-data: today (automated commit)
[Coke] nqp: nqp::gcd_i(1000); 23:31
p6eval nqp: OUTPUT«error:imcc:syntax error, unexpected IREG, expecting '(' ('$I5003')␤ in file '(file unknown)' line 170070022␤␤»
[Coke] masak: ^^
sorear that's expected, itsn't it? 23:34
gcd_i isn't an instruction so imcc thinks it must be a function call
the parser and emitter get out of sync, hilarity ensues
doy r: class Foo { }; my $class = Foo; class Bar is $class { } 23:37
p6eval rakudo 13e805: OUTPUT«===SORRY!===␤Unable to parse class definition␤at /tmp/TWvDMcLsqL:1␤------> Foo { }; my $class = Foo; class Bar is ⏏$class { }␤ expecting any of:␤ postfix␤ infix or meta-infix␤ infix stopper␤ state…
doy how do i do this?
[Coke] sorear: ah, was hoping for a more friendly error, 23:39
sorear: where is nqp's gcd op? (trying to implement github.com/jnthn/nqp-jvm-prep/blob...cs/LHF.md)
nqp: nqp::bigint_gcd(1000,3234); 23:42
p6eval nqp: OUTPUT«Error while compiling block : Error while compiling op bigint_gcd: No registered operation handler for 'bigint_gcd'␤current instr.: '' pc 44393 (src/stage2/QAST.pir:15511) (src/stage2/QAST.nqp:2355)␤»
[Coke] kills some LHF from the nqp-jvm-prep file for jnthn++ 23:51