pugscode.org/ | nopaste: sial.org/pbot/perl6 | pugs: [~] <m oo se> (or rakudo:, kp6:, elf: etc.) (or perl6: for all) | irclog: irc.pugscode.org/
Set by Tene on 29 July 2008.
00:03 bacek joined 00:08 ruoso_ joined 00:18 meppl left 00:24 larsen_ left 00:40 kanru left 00:45 BinGOs_ joined 00:47 hercynium joined 00:48 BinGOs left 00:51 ting joined 01:09 Lorn joined
pugs_svn r22036 | ruoso++ | [smop] starting the sketch on the sample compiled s1p code... 01:10
01:24 ggoebel joined 01:31 xinming_ joined 01:43 xinming left, ruoso_ left 01:53 ggoebel left 01:55 kanru joined 02:15 Limbic_Region left 02:29 eternaleye_ left 02:50 Auzon left 02:57 wknight8111 left 03:12 eternaleye_ joined 03:17 |alanhaggai| joined 03:19 alanhaggai left, |alanhaggai| is now known as alanhaggai 03:25 alester_ joined 03:51 alanhaggai left, alanhaggai joined 04:01 hcchien left 04:24 hcchien joined 04:30 evan joined
evan could anyone point me to any info on how parrot does/will do profiling? 04:31
04:39 BinGOs joined 04:40 Maghnus joined, sri_work joined 04:43 BinGOs_ left 05:21 dhruvakm joined
dhruvakm I am still not able to build a usable version of perl6 on windows XP. I earlier had issues on using ActiveState perl as it uses msvc compiler. I am not using strawberry perl and the build goes through but fails on running a simple inline script 05:23
05:33 Psyche^ joined
dhruvakm The error I get: .\perl6.exe -e"say 'Hello, world.'" 05:37
Null PMC access in get_string()
05:42 xinming joined 05:45 Patterner left, Psyche^ is now known as Patterner 05:50 xinming_ left
dhruvakm i guess no help here! 05:52
05:53 dhruvakm left 06:10 ashizawa joined, alanhaggai left 06:12 xinming_ joined 06:15 zamolxes left 06:24 Alias_ joined
moritz_ @tell dhruvakm try #parrot on irc.perl.org 06:25
lambdabot Consider it noted.
06:27 xinming left, meteorjay joined 06:31 turrepurre left 06:32 masak joined 06:34 pochi left 06:47 alester_ left 07:07 pmurias joined 07:17 agentzh left 07:21 agentzh joined 07:27 pmurias left 07:28 penk joined 07:35 zamolxes joined 07:48 BinGOs left 07:49 iblechbot joined 08:00 alanhaggai joined 08:03 BinGOs joined 08:16 larsen_ joined 08:22 pmurias joined
masak @tell moritz_ all tests pass now, except for that one with the ESCAPE attribute. I might have some time late tonight to expand/implement the tests enough to make the new HTML::Template a viable replacement for the old one. 08:35
lambdabot Consider it noted.
moritz_ is back from the dentist 08:37
lambdabot moritz_: You have 1 new message. '/msg lambdabot @messages' to read it.
08:37 pmurias_ joined
masak Perl 6 grammars are already very nice to work with 08:39
there's pain avoided in every efficient line of code, compared to writing one's own lexer/AST generator 08:40
with the advent of {*}, it will be twice as wonderful
moritz_ but it would be nice if some of the errors produced nicer messages
masak indeed. if you have time to experiment, I can paste you the latest version of the module 08:41
08:41 Gruber is now known as Grrrr
moritz_ or just use a branch in git 08:41
whatever you prefer ;)
masak branch-in-git is clearly the Right Thing 08:42
I'll try :)
moritz_ btw I've got an email from someone in Belarus asking for permission to translate my blog posts to Russian ;)
masak might be the same person whose Russian Perl 6 blog I subscribe to 08:44
moritz_ Andrew Shitov 08:46
masak same one. 08:47
Андрей Шитов
Russian++ # much saner consonants 08:48
actually, Cyrillic++, rather
08:52 pmurias left 08:56 pmurias_ left
masak moritz_: github.com/viklund/november/tree/ne...l-template 09:03
lambdabot Title: viklund's november at new-html-template — GitHub
moritz_ how do I fetch remote branches with git? 09:05
09:05 bacek left
masak moritz_: git checkout new-html-template 09:06
(I think)
no, that will probably not work... hold on 09:07
moritz_ error: pathspec 'new-html-template' did not match any file(s) known to git.
and git-branch doesn't show that branch
masak moritz_: try git checkout -b new-html-template
you might need to `git pull` before
or maybe even `git pull origin new-html-template` 09:08
I dunno
moritz_ error: Entry 'p6w/t/html-template.t' would be overwritten by merge. Cannot merge. 09:09
masak moritz_: you working on an unclean tree again? :)
moritz_ dunno
masak time to test that `git clean` you mentioned yesterday, methinks
`git status` answers questions about the state of files 09:10
09:10 larsen_ left
masak seems to me a simple `rm -r p6w/t` would solve your current problem, however 09:10
moritz_ ok, after a 'git reset ...' I could pull
masak ah.
git embraces TMTOWTDI, for sure 09:11
moritz_ but after 'git pull origin new-html-template' I still don't see a new-html-template branch
masak does `git checkout new-html-template` do anything useful? 09:12
moritz_ same as before
masak hm :/
what about if you clone the new branch directly?
moritz_ in a new repository? 09:13
masak yes 09:14
not optimal, but until we grok git :P
moritz_ I'll ask in #git
09:15 wknight8111 joined
masak good idea. 09:15
IRC++
09:20 elmex joined
moritz_ omg, #git is even larger than #perl6 09:22
(but very helpful)
masak just as #perl6 :) 09:23
moritz_ ;)
09:26 jferrero joined
masak moritz_: actually, I would guess that the bigger number of inhabitants in #git compared to #perl6 is commensurate with the number of users of the respective softwares -- or if not, probably to folks-on-#perl6's advantage 09:29
09:32 dr_df0 joined, dr_df0 left
moritz_ digests the sentence 09:37
probably, yes ;)
and we have more bots ;) 09:38
masak I, for one, welcome our new git-using, Perl 6-driven, IRC-dewlling overlords 09:41
moritz_ ;) 09:42
if I manage to understand git at some point, I will too 09:43
have you thought about a simple test harness already?
masak moritz_: besides Test.pm? no. 09:44
moritz_ if prove can be made to run a different program than perl, that's all we need 09:45
masak there's prove6 in the Pugs repo
...perhaps indication that prove can't be made to run a different program 09:46
s/indication/indicating/
moritz_ prove6 is a bit pugs specific
but certainly a good place to start stealing from ;)
masak :) 09:48
10:05 eternaleye_ left
moritz_ dev.perl.org/perl6/faq.html talks about "active metadata on values, variables, subroutines, and types" - any idea what's meant by that? 10:14
lambdabot Title: Perl 6 FAQ - perl6
moritz_ is that the .WHAT and .HOW stuff?
10:17 wknight8111 left 10:36 wknight8111 joined 10:46 ggoebel joined 11:00 sri_work left 11:13 a-jing joined, a-jing left 11:23 Arathorn left 11:34 dr_df0 joined 11:57 c1sung_ left 11:59 tcliou left 12:02 meppl joined 12:30 c1sung joined, ruoso joined 12:37 redicaps joined, sri_work joined 12:38 redicaps left 12:42 cggoebel joined, c1sung left, c1sung joined 12:50 pmurias joined
pmurias ruoso: hi 12:50
ruoso hi pmurias
pmurias ruoso: are you blocking on anything? 12:54
ruoso: i yhink is should add context support to mold, is adding it to the method call a good idea? 12:56
12:58 ashizawa left, ggoebel left
pmurias is it possible to call a function with arbitary context in Perl 6? 13:03
moritz_ I think so, yes
pmurias moritz_: how? 13:04
my $context=:($ is rw); ???
moritz_ pmurias: by using the appropriate listop
or prefix, or whatever it is 13:05
pmurias moritz_: i meant in a generall way instead of using a (propably infinite if chain) or eval 13:06
* general 13:07
moritz_ pmurias: that I don't know 13:09
13:10 alanhaggai left 13:26 c1sung left 13:27 alanhaggai joined 13:34 _ggoebel_ joined 13:42 pmurias left 13:47 a-jing joined, a-jing left 13:48 jferrero left, hercynium left 13:50 penk left 13:53 cggoebel left 13:58 alc joined
moritz_ masak: #58372 is actually "autovivification doesn't work" or something along these lines 14:04
14:04 cggoebel joined 14:06 kanru left
masak moritz_: you're right. 14:08
feel free to add that
14:08 dr_df0 left
masak or even change the bug title 14:08
14:09 dr_df0 joined
moritz_ otoh I don't know if $/ is allowed to autovivify, since it might be immutable (unless the regex was matched with 'is rw') 14:09
masak moritz_: btw, are you sure that long hashing chains autovivify? 14:10
moritz_ I'll just reply to the ticket
in perl 5 $h{a}{b} autovivifies $h{a}
it doesn't make sense to autovivify on the last indexing level, since you can always just assign to it 14:11
oh wait, I think in Perl 6 only write accesses autoviv
14:12 meteorjay left
moritz_ so 'defined $/<a><b>' shouldn't, but '%h<a><b> = $stuff' should 14:12
masak moritz_: ISTR that too
what it shouldn't do is halt the program
hence the current title of the bug
moritz_ agreed
14:12 iblechbot left
moritz_ is quite suprised, because he's seen some autovivification code in actions.pm 14:13
perhaps one of the features that weren't tested, and thus bitrotted 14:14
14:14 rindolf joined, _ggoebel_ left
masak moritz_: but actions.pm is nqp, innit? 14:16
moritz_ masak: I mean PAST initialization code which handles autovivification 14:17
just search for :vivibase 14:18
masak ach so
yes, I also recall previous discussions about it 14:19
14:24 _ggoebel_ joined 14:27 Alias_ left 14:32 cggoebel left 14:33 ggoebel joined 14:37 _ggoebel_ left 14:44 TJCRI joined 14:46 cggoebel joined
ruoso @tell pmurias, I'm starting to sketch the output of s1p... I'm kinda blocking on that because I'd use some help... you can see a file in doc/ 14:47
lambdabot Consider it noted.
14:49 cmarcelo joined
dr_df0 rakudo: my @a=(1,2,3); my @b=(0,2); say @a[@b] 14:57
p6eval rakudo 29834: OUTPUT[3␤]
14:57 kanru joined
moritz_ rakudo doesn't do slices yet :( 14:57
14:57 zamolxes left
dr_df0 :( 14:58
14:58 hercynium joined
masak the implementor in me says "bah -- slices are sugar. they're nice, but you can work around not having them" 14:59
that said, they would sure be nice to have
moritz_ the implementor in me has looked at the code generation for slices, and sees that it might be a PCT thing
but I'm not quite sure 15:00
dr_df0 what's PCT?
moritz_ Parrot Compiler Tools
masak what does it mean, in this case, that it might be a PCT thing? 15:01
15:01 ggoebel left
moritz_ dr_df0: the IRC logs at irclog.perlgeek.de/perl6/today automatically anotate some abbreviations with their meaning (just FYI, it's fine to ask here also) 15:01
lambdabot Title: IRC log for #perl6, 2008-08-26
moritz_ masak: method postcircumfix looks like that to me (but not sure) 15:02
masak oki
moritz_ it just generates a a PAST::Var node 15:04
from the semilist inside the subscript
but I don't find the place where that is actually turned into a hash or array lookup 15:05
the term postcircumfix only appears actions.pm, grammar.pg and the PIR files that are generated from those two 15:06
moritz_ wonders if it should be done in method variable 15:08
15:09 alester left
masak I wouldn't know. 15:09
moritz_ probably not, the only postcircumfix stuff it handles is $<foo> (ie acceess to $/)
masak ah. 15:10
15:15 barney joined 15:19 larsen_ joined 15:22 cggoebel left 15:25 dr_df0 left 15:26 alester joined 15:27 pochi joined 15:30 Chillance joined
moritz_ @tell TimToady S09:1209 uses exists as a function. Maybe the example should use defined() in both p5 and p6 15:43
lambdabot Consider it noted.
15:44 Exodist joined 15:46 cjfields joined 15:50 iblechbot joined 15:54 cotto_w0rk joined 16:04 zamolxes joined 16:10 evan left, cotto_work left 16:13 alanhaggai left, masak left 16:17 alc left, abra joined
bennymack-work this is probably a silly question but "Int"s do not get automatically converted to "Num"s? 16:26
moritz_ they should, I think
bennymack-work I had a sub that takes a Num but I sent it a 3 and it died. Change the prototype to Int and it worked 16:27
moritz_ that's a bug in rakudo
bennymack-work rakudo: sub foo(Num $x) { say $x; } foo(2};
p6eval rakudo 29834: OUTPUT[Statement not terminated properly at line 1, near "foo(2};"␤current instr.: 'parrot;PGE::Util;die' pc 120 (runtime/parrot/library/PGE/Util.pir:82)␤]
bennymack-work oh ok 16:28
moritz_ you need a ; after the } if it's not followed by a newline
bennymack-work rakudo: sub foo(Num $x) { say $x; }; foo(2};
p6eval rakudo 29834: OUTPUT[Statement not terminated properly at line 1, near "(2};"␤current instr.: 'parrot;PGE::Util;die' pc 120 (runtime/parrot/library/PGE/Util.pir:82)␤]
moritz_ rakudo: sub foo(Num $x) { say $x; }; foo(2) 16:29
p6eval rakudo 29834: OUTPUT[Parameter type check failed␤current instr.: 'foo' pc 132 (EVAL_15:55)␤]
bennymack-work ahh, my bad
moritz_ it's a known rakudo bug
problem is, the numeric types don't fit well into the general type system
16:31 alanhaggai joined
bennymack-work I just tried to run this from your perl-5-to-6 blog: say "Rest: @rest[]"; and it printed "Rest: @rest[]" 16:35
moritz_ that's also a known bug in rakudo :(
pugs: my @a = 1, 2, 3; say "@a[]"
p6eval pugs: OUTPUT[1 2 3␤]
moritz_ pugs does it right 16:36
(the tests are in t/spec/S02-literals/array-interpolation.t )
pugs_svn r22037 | moritz++ | [t/spec] more tests for hash interpolation 16:45
16:48 alanhaggai left 16:49 alanhaggai joined 16:51 mofino left
rindolf pugs: my ($x, $y) ; $x, $y = 5, 6; [ $x, $y] 16:54
p6eval pugs: RESULT[\(undef, 5)]
17:05 abra left
bennymack-work rakudo: multi sub frob(Str $s) { say "Frobbing String $s"; }; frob("x"); 17:10
p6eval rakudo 29834: OUTPUT[No applicable methods.␤current instr.: '_block11' pc 24 (EVAL_13:13)␤]
moritz_ another rakudo bug, and another bogus error message 17:11
bennymack-work eep
works on Int though
moritz_ yes 17:12
17:12 Khisanth left
moritz_ types based MMD with Str somehow fails. 17:12
17:15 khisanth_ joined 17:16 khisanth_ is now known as Khisanth
bennymack-work For lesson 6 I'm getting: You passed an initialization parameter that does not have a matching attribute. 17:17
17:18 REPLeffect left
moritz_ which code snippet? 17:18
bennymack-work In the SYNOPSIS
moritz_ d'oh, I have two lesson 6 ;)
bennymack-work i thought it was odd that it skipped lesson 05 17:19
perlgeek.de/blog-en/perl-5-to-6/05-...asses.html
lambdabot Title: blog | Perlgeek.de Blog, tinyurl.com/5ccj9l
moritz_ in case it's not clear, I didn't limit my examples to stuff that works at the moment ;/ 17:20
bennymack-work ok. but there's no way to make this particular example work? 17:21
moritz_ I guess it complains about the inherited attribute 17:22
so by removing the colour from the initialization at least the rest should work
bennymack-work ok, yes that does work. 17:23
I also had to comment out the "method area" in Shape otherwise I get this: Missing '}' at line 4, near "... } #"
moritz_ rakudo doesn't do '...', and it sometimes requires a ; after a } although that's not officially needed 17:27
17:56 pmurias joined 18:01 alanhaggai left 18:03 alanhaggai joined
pmurias ruoso: i would rather have s1p emit m0ld instead of C as gcc is sluggish and we can load mold directly or as bytecode in the future 18:06
18:08 jhorwitz joined 18:22 jferrero joined 18:28 Myoma left 18:29 larsen_ left 18:31 Myoma joined 18:34 Maghnus left 18:35 Maghnus joined
pmurias ruoso: we shouldn't use ¢ in places where the root namespace is avalible 18:37
18:44 rdice joined, cotto_w3rk joined 18:49 cotto_work joined 18:53 rindolf left 18:56 REPLeffect joined 18:57 Myoma left 18:58 Myoma joined 19:01 cotto_w0rk left 19:04 cotto_w3rk left 19:05 pmurias left 19:10 barney left 19:19 sri_work left 19:28 lambdabot left 19:29 jhorwitz_ joined 19:30 hcchien_ joined, lambdabot joined 19:31 jhorwitz left, pochi left, hercynium left, hcchien left, jhorwitz_ is now known as jhorwitz 19:33 pochi joined 19:37 TJCRI left 19:40 calin joined 19:41 hercynium joined 19:58 aindilis left 19:59 aindilis joined, Auzon joined 20:07 eternaleye_ joined 20:27 dr_df0 joined 20:32 iblechbot_ joined 20:34 jan_ left 20:37 jan joined 20:46 iblechbot left 20:52 rdice left 20:53 perl7 joined 20:56 cjfields left 20:57 krzys joined
krzys pugs: my @array = (3,7,9,11); say @array[0..1,2,3] 20:59
p6eval pugs: OUTPUT[37911␤]
20:59 iblechbot_ left
krzys pugs: { my @array = ((11,12,13,14,15)(21,22,23,24,25)); my @slice = ((0,4)(0,4); say @array(@slice); } 21:02
p6eval pugs: OUTPUT[*** ␤ Unexpected "@slice"␤ expecting "=", term postfix, operator, ")", context, ":" or "("␤ at /tmp/julJz4IK84 line 1, column 54␤]
21:03 dr_df0 left, krzys is now known as dr_df0
moritz_ )( is illegal 21:03
dr_df0 pugs: { my @array = ((11,12,13,14,15),(21,22,23,24,25)); my @slice = ((0,4),(0,4)); say @array(@slice); } 21:04
p6eval pugs: OUTPUT[*** Cannot cast from VList [VInt 11,VInt 12,VInt 13,VInt 14,VInt 15,VInt 21,VInt 22,VInt 23,VInt 24,VInt 25] to Pugs.AST.Types.VCode (VCode)␤ at /tmp/Zj4woO5Uxx line 1, column 83-97␤]
dr_df0 pugs: { my @array = ((11,12,13,14,15),(21,22,23,24,25)); my @slice = ((0,4),(0,4)); say @array[@slice] } 21:05
p6eval pugs: OUTPUT[11151115␤]
dr_df0 moritz_ )( ... i missed that 21:06
21:08 jhorwitz left 21:20 BinGOs_ joined 21:27 BinGOs left 21:29 BinGOs_ left 21:32 BinGOs joined 22:07 Lichtkind joined
Lichtkind does "file.name".:X work? 22:07
22:18 kst joined 22:20 perl7 left
TimToady STD thinks (1,2,3)(1,2,3) is just fine 22:20
moritz_ TimToady: yes, but it's not what dr_df0 would expect (most likely) 22:21
TimToady it just doesn't mean multiple dimensions :)
moritz_ it's a postcircumfix:<( )> on a list, right?
Lichtkind TimToady: does :r also match do literals? 22:25
22:25 pengrate_ left 22:26 pengrate joined
moritz_ imagines TimToady waking up, opening irssi with sleepy eyes, and being DDOSed by #perl6 ;) 22:26
22:30 larsen_ joined
TimToady suspects moritz_ is correct on both points 22:33
Lichtkind: I think :r would be pretty useless if it didn't work on literals 22:35
Lichtkind TimToady: true but i ask because all the examples in spec where with var 22:36
TimToady it's a little odd that it means that the methods are defined in Str 22:37
assuming they are true methods, which is the latest thinking
or maybe they live in Any and coerce to Str 22:38
moritz_ it seems weird to have a method with the name of pair
TimToady it does kinda reserve a little namespace for such methods
moritz_ how would you define such a thing? method postfix:':r' { ... } ? 22:39
TimToady which we have also made use of with .:delete and whatever .:exists ends up being called
moritz_ is that a trigil? ;-) 22:40
22:40 explorer__ joined
TimToady we could do worse than the postfix declaration 22:41
originally I was thinking just method :r, but making trait notation a variant of pair notation mades it a problem
moritz_ but do we really need a grammatical construct for every file test operator? 22:42
is $fn ~~ :r such a bad huffman coding, as compared to $fn.:r?
TimToady yeah, and I'm not sure that $file:r is a good construct 22:43
originally we had all the :r things interpreted by another method
well, I don't make decisions when I've just woken up and been DDOS'd :) 22:44
moritz_ ;)
Lichtkind TimToady: thanks i really didnt say goodbye in kobenhavn 22:45
22:45 Limbic_Region joined
moritz_ slowly wanders off towards bed... 22:45
TimToady Lichtkind: if everyone at a conference said goodbye to everyone else we'd have to schedule an extra week
fullermd But with an extra week, you'd run into people you'd already said goodbye to, so you'd need extra time to re-bye... 22:46
moritz_ O(n²)
22:46 jferrero left
Lichtkind true 22:46
22:47 hercynium left 22:50 idemal left 22:57 aindilis left, aindilis joined 22:58 Exodist left 23:06 kanru left
Lichtkind www.youtube.com/watch?v=bLiX5d3rC6o 23:14
lambdabot Title: YouTube - Meet "Emily" - Image Metrics Tech Demo
Lichtkind ups wrong channel
23:16 jferrero joined 23:22 jfredett left 23:27 BinGOs left 23:29 explorer__ left 23:39 BinGOs joined 23:51 cmarcelo left