Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2008-03-10

Perl 6 | Reference Documentation | Rakudo

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:34 justatheory joined #perl6
00:40 mncharity joined #perl6
00:40 alester joined #perl6
00:41 mncharity Had a power outage all day. :/  So nothing done.  Back at it tomorrow.
00:41 mncharity &
00:56 ikeda joined #perl6
01:12 lyokato_ joined #perl6
01:14 ikeda joined #perl6
01:15 ikeda joined #perl6
01:17 justatheory joined #perl6
01:27 ikeda_ joined #perl6
01:36 ikeda joined #perl6
02:15 peepsalot joined #perl6
02:18 luqui joined #perl6
02:26 jferrero joined #perl6
02:34 alc joined #perl6
03:56 TimToady joined #perl6
04:20 RayMagini joined #perl6
05:02 lyokato_ joined #perl6
05:35 kst` joined #perl6
06:16 devogon joined #perl6
06:35 zamolxes joined #perl6
06:42 iblechbot joined #perl6
07:54 meppl joined #perl6
07:55 Aankhen`` joined #perl6
08:03 [particle] joined #perl6
09:02 ebassi joined #perl6
09:17 xinming_ joined #perl6
09:23 meppl joined #perl6
09:25 masak joined #perl6
10:08 smtms joined #perl6
10:26 iblechbot joined #perl6
10:26 ruoso joined #perl6
10:27 fullermd joined #perl6
10:27 wknight-away joined #perl6
11:05 spx2_ joined #perl6
11:27 pugs_svnbot r20092 | ruoso++ | [smop] updating the sm0p canonical grammar (not the KP6 implementation), so maybe it can be tested with other implementation.
11:27 pugs_svnbot diff: http://dev.pugscode.org/changeset/20092
11:27 lambdabot Title: Changeset 20092 - Pugs - Trac
11:28 ruoso [particle], sm0p has been implemented in KP6 to make the preprocessing of the sm0p blocks... but I'm facing some troubles with KP6 and I wonder if nqp or rakudo already support writing that grammar..
11:28 lambdabot ruoso: You have 1 new message. '/msg lambdabot @messages' to read it.
11:32 ruoso [particle], the grammar is http://svn.pugscode.org/pugs/v6/smop/sm0p/Grammar.pm
11:51 cmarcelo joined #perl6
12:04 ruoso joined #perl6
12:15 thepler joined #perl6
12:20 lichtkind joined #perl6
12:30 penk left #perl6
12:46 peepsalot joined #perl6
12:52 jferrero joined #perl6
13:34 wknight-away joined #perl6
13:41 [particle] ruoso: seems to me that grammar is easily translatable to rakudo or nqp
13:42 [particle] ruoso: we'd likely take the closures out of the rules, though
13:52 ebassi joined #perl6
13:53 jhorwitz joined #perl6
13:57 spx2 joined #perl6
13:58 FurnaceBoy joined #perl6
14:16 [particle1 joined #perl6
14:19 rdice joined #perl6
14:25 ruoso [particle], even if the closures are simply string substitution?
14:26 [particle1 we don't have a return statement yet
14:27 [particle1 hrmm, perhaps implicit return of last statement would be good enough
14:27 ruoso hmm... I'm not sure if that's ok for that matter
14:27 ruoso "make" must set the return to be that instead of the match
14:27 ruoso in theory, implicit return don't change the return value of the match
14:28 [particle1 we do have a make statement, just not return
14:28 ruoso I'm only using 'make'
14:28 ruoso (except for one place I'm misusing return
14:28 ruoso )
14:29 [particle1 right :)
14:29 * ruoso fixed that
14:30 [particle] aha
14:30 pugs_svnbot r20093 | ruoso++ | [smop] sm0p/Grammar.pm use make instead of return...
14:30 pugs_svnbot diff: http://dev.pugscode.org/changeset/20093
14:30 lambdabot Title: Changeset 20093 - Pugs - Trac
14:32 ruoso [particle], so, what changes would be needed to get the Grammar working in nqp or rakudo?
14:32 ruoso if you like, you can svn cp Grammar.pm Rakudosm0p.p6 and make the changes ;)
14:32 [particle] simple things, s/<identifier>/<ident>/g
14:33 [particle] i wonder, can you support <.ws> ?
14:33 [particle] there's no reason to capture the whitespace
14:33 ruoso but you do realise that identifier in my grammar is not Perl 6 identifier....
14:33 ruoso it's sm0p identifier
14:33 [particle] ah, sorry
14:33 ruoso the grammar is in theory a completely self-contained string substitution
14:33 [particle] yes, now i see
14:34 [particle] ok, i get it, no inheriting other grammars
14:34 ruoso a macro expander
14:34 [particle] fine, it should work
14:34 ruoso (except for \d, \s and the like...)
14:34 [particle] sure
14:35 ruoso http://svn.pugscode.org/pugs/v6/smop/sm0p/sample.sm0p
14:35 ruoso that's a sample sm0p code...
14:35 [particle] i'd like to have a sm0p compiler step, so you can do source -> parse -> sm0p
14:35 ruoso ahm?
14:36 [particle] sorry, a PCT::HllCompiler step
14:36 ruoso ok... that's probably what I'm calling s1p
14:36 ruoso which compiles Perl 6 code to a set of sm0p blocks
14:36 ruoso http://www.perlfoundation.org/perl6/index.cgi?smop_s1p_language
14:36 lambdabot Title: SMOP s1p Language / Perl 6
14:36 ruoso see the example in the end
14:37 ruoso and the sm0p grammar should turn the sm0p blocks into bare C code...
14:37 ruoso (actually a single really long line)
14:37 ruoso (for each block)
14:38 ruoso btw... s1p is not implemented yet...
14:38 ruoso and I would really appreciate any implementation :)
14:39 Zygo joined #perl6
14:42 [particle] yes, i see that, even from timtoady :)
14:42 ruoso heh
14:45 ruoso [particle], but getting back to the sm0p grammar... do you think it would just work? or would it need adjustments?
14:51 [particle] yes, i think it'll work
14:51 [particle] do you have a recent parrot trunk?
14:51 * ruoso updatign right now
14:53 * ruoso running make...
14:54 [particle] tools/dev/mk_language_shell.pl
14:55 ruoso but, do I need to create a language for that?
14:56 ruoso Can't I just run it as a standalone script (which in fact the Grammar.pm file already is)
14:56 ruoso ?
14:57 [particle] ah, you mean as a perl 6 script
14:58 [particle] i'm not sure we've implemented 'grammar' yet
14:58 ruoso I mean... I just need to run that grammar taking some input and producing some output
14:59 ruoso using whatever means needed.
14:59 [particle] sure, ok. i'm rebuilding parrot now
14:59 [particle] first thing to do would be to make sure the file parses
15:00 ruoso Ok, should I try it with rakudo or nqp?
15:00 [particle] cd languages/perl6 && make perl6 && perl6 --target=parse <filename>
15:04 ruoso [particle], hmmm... it stopped at line 3...
15:05 ruoso it doesn't seems to recognize grammar and token
15:05 * [particle] updates pugs
15:09 Southen_ joined #perl6
15:12 chris2 joined #perl6
15:12 jferrero joined #perl6
15:20 xinming joined #perl6
15:27 [particle] ruoso:
15:27 ebassi joined #perl6
15:27 [particle] ruoso: i think it's the bare semicolon on line three
15:29 * ruoso wonders if pugs can be compiled with 6.6.1-2
15:29 ruoso [particle], could you try it with ';' instead?
15:29 [particle] c:\usr\local\parrot\clean\languages\perl6>..\..\parrot perl6.pbc -e "grammar sm0p { token frame { <ws> <identifier> <ws> '=' <ws> 'q:sm0p' <ws> '{' <ws> <nodes> <ws> '}' <ws> ';' } }; say 1;"
15:29 [particle] 1
15:31 [particle] ok, here's one difference
15:31 [particle] rakudo requires {{ }} around closures
15:31 [particle] rather than { }
15:31 ruoso hmm
15:32 [particle] it's not to spec
15:33 ruoso hmm... I can't get the closure to be parsed... even with the double {
15:34 ruoso h,,
15:34 ruoso ok... {{ without spaces...
15:34 ruoso it parsed
15:34 [particle] {{ make $<identifier> ~
15:34 [particle] parses fine here
15:35 alester joined #perl6
15:35 ruoso yeah... I think i'm getting closer...
15:41 ruoso [particle], nice... rakudo parses the grammar
15:41 pugs_svnbot r20094 | ruoso++ | [smop] adding a rakudo implementation of the sm0p grammar... it parses already... but fails when trying to execute...
15:41 pugs_svnbot diff: http://dev.pugscode.org/changeset/20094
15:41 lambdabot Title: Changeset 20094 - Pugs - Trac
15:41 ruoso http://svn.pugscode.org/pugs/v6/smop/sm0p/RakudoGrammar.pm
15:42 ruoso [particle], it still fails when trying to execute...
15:42 [particle] yep, probably fails when running 'module main'
15:42 ruoso should I try to remove the "module" thing entirely?
15:42 [particle] give it a shot
15:43 ruoso well it didn't express a linked-list corruption anymore
15:43 [particle] c:\usr\local\parrot\clean\languages\perl6>..\..\parrot perl6.pbc -e "module main
15:43 [particle] { say 1 }"
15:43 [particle] 1
15:43 ruoso it now just failed
15:43 ruoso Null PMC access in invoke()
15:43 [particle] yep, i see that
15:43 [particle] i'm trying to track it down
15:44 [particle] funny, --target=pir isn't working
15:44 [particle] hrmm
15:44 ruoso I need to go to the doctor now... I should be back in a couple hours or so...
15:45 [particle] ~~
15:46 ruoso ah... how can I call the match then
15:46 ruoso ?
15:47 * ruoso doc &
15:48 riffraff joined #perl6
15:57 ebassi joined #perl6
15:58 [particle1 joined #perl6
16:12 [particle2 joined #perl6
16:55 marmic joined #perl6
17:02 kyrbe joined #perl6
17:03 kyrbe left #perl6
17:08 Lorn_ joined #perl6
17:14 meppl joined #perl6
18:00 lichtkind_ joined #perl6
18:07 ruoso [particle2, I'm back... so... if I got right, the problem is in the calling convention for the match... so... how is it supposed to be called in rakudo?
18:08 [particle2 we need to examine the pir
18:09 Psyche^ joined #perl6
18:10 Daveman joined #perl6
18:13 ruoso [particle], hmm... it seems to be stopping in the first block.. it gives me the PC, but how do I know which statement is that?
18:15 wtgee joined #perl6
18:16 ruoso rakudo: grammar foo { token bar { 'baz' }; my $a = "baz"; say bar($a) };
18:16 exp_evalbot OUTPUT[baz␤]
18:16 ruoso rakudo: grammar foo { token bar { 'baz' }; my $a = slurp; say bar($a) };
18:16 exp_evalbot OUTPUT[Null PMC access in invoke()␤current instr.: 'parrot;foo;_block15' pc 48 (EVAL_12:29)␤called from Sub 'parrot;PCT::HLLCompiler;evalpmc' pc 723 (src/PCT/HLLCompiler.pir:425)␤called from Sub 'parrot;PCT::HLLCompiler;compile' pc 440 (src/PCT/HLLCompiler.pir:291)␤called from Sub
18:16 exp_evalbot ..'parrot;PCT::HLLCompiler;eval' pc 755 (src/PCT/HLLCompiler.pir:45...
18:16 ruoso hmmm
18:16 ruoso the problem is with slurp :)
18:17 [particle] ah. there is no slurp.
18:17 ruoso it seems that slurp is not defined
18:17 ruoso any way to achieve the same effect?
18:18 [particle] hrmm
18:18 [particle] i suppose we could implement it
18:18 [particle] ...in pir
18:21 barney joined #perl6
18:25 [particle] gimme a minute to finish my lunch, and i'll start coding
18:26 ruoso :)
18:26 pugs_svnbot r20095 | ruoso++ | [smop] as slurp is not yet implemented in rakudo, I am using a sample code inline, but the parser still seems to be failing...
18:26 pugs_svnbot diff: http://dev.pugscode.org/changeset/20095
18:27 lambdabot Title: Changeset 20095 - Pugs - Trac
18:27 ruoso [particle], anyway... I've set the string inline, but the match still seems to be failing...
18:27 ruoso is there some easy way to debug the match?
18:28 [particle] hrmm, i wonder if module main knows about the grammar
18:28 [particle] try adding token testing { {{ say "testing" }} }
18:28 [particle] and call that
18:29 [particle] '' ~~ <smop::testing>
18:29 [particle] or whatever
18:29 ruoso I've already added the code inside the grammar package, and called the token by name
18:29 ruoso rakudo: grammar foo { token bar { 'baz' }; my $a = slurp; say bar($a) };
18:29 exp_evalbot OUTPUT[Null PMC access in invoke()␤current instr.: 'parrot;foo;_block15' pc 48 (EVAL_12:29)␤called from Sub 'parrot;PCT::HLLCompiler;evalpmc' pc 723 (src/PCT/HLLCompiler.pir:425)␤called from Sub 'parrot;PCT::HLLCompiler;compile' pc 440 (src/PCT/HLLCompiler.pir:291)␤called from Sub
18:29 exp_evalbot ..'parrot;PCT::HLLCompiler;eval' pc 755 (src/PCT/HLLCompiler.pir:45...
18:29 ruoso like that
18:29 ruoso rakudo: grammar foo { token bar { 'baz' }; my $a = 'baz'; say bar($a) };
18:29 exp_evalbot OUTPUT[baz␤]
18:32 IllvilJa joined #perl6
18:32 ruoso hmm...
18:32 ruoso there seems to be another harder issue....
18:32 ruoso rakudo: grammar foo { token bar { 'baz' {{ make 'foo' }} }; my $a = 'baz'; say bar($a) };
18:32 ruoso ouch
18:33 [particle] ah. crud
18:35 ruoso and it seems that exp_evalbot won't ressurect itself
18:35 ruoso rakudo: say 1
18:45 [particle] i'm tracking down the error code
18:46 [particle] it's *not* a GC bug
18:47 justatheory joined #perl6
18:58 qmole joined #perl6
19:07 rindolf joined #perl6
19:15 marmic joined #perl6
19:45 ispy_ joined #perl6
20:01 ebassi joined #perl6
20:01 dduncan joined #perl6
20:05 Chillance joined #perl6
20:22 lidden joined #perl6
20:28 buchetc joined #perl6
20:50 buchetc TimToady, audreyt, since a few weeks I try to reanimate S17. Could you please review my attempt and stop/correct me if I'm walking the run way. Concurrency.pod and some t/spec tests are checked in. I also update smoke server frequently.
21:08 gbacon joined #perl6
21:14 lambdabot joined #perl6
21:24 pbuetow joined #perl6
21:51 TimToady buchetc: okay, thanks, I'll try to get to that soonish, though some kind of anemia is making it rather difficult for me at the moment. will know more by the end of the week
21:56 buchetc TimToady: Don't hurry. I'll be afk at least one week starting at friday. Hope you will defeat this anemia soon...
21:57 TimToady I was just at a concurrency summit on friday, so that will help.  well, not the anemia...
21:58 TimToady which is consistent with B12 deficiency, but could also have other reasons
21:59 TimToady (I'm at risk for B12 deficiency in any case, since I am missing part of my stomach...)
22:00 TimToady ought to have occurred to me sooner, but hypoxia makes one stupid...
22:00 [particle] monthly injections are an easy cure for that
22:00 TimToady yeah, regardless of the actual mechanism
22:00 TimToady but could be internal bleeding too, which I also have a history of, so we'll see...
22:01 TimToady I just feel like I am at 10000' altitude when I'm really at sea level.
22:02 [particle] i hope you don't get vertigo, too
22:02 TimToady well, I have that too, off and on, and the blood pressure medication certainly doesn't help that...
22:03 TimToady eventually you just get to where all the doctors tell you contradictory advice, at which point it's time to shuffle off...
22:03 TimToady :)
22:05 TimToady speaking of which, I'd better go get my wife's oil changed :)
22:05 [particle] sheesh, you two and your maintenance!
22:08 pugs_svnbot r20096 | Darren_Duncan++ | ext/Muldis-DB/ : for now, the Perl 5 v of Muldis DB is the only main version, not the Perl 6 v
22:08 pugs_svnbot diff: http://dev.pugscode.org/changeset/20096
22:08 lambdabot Title: Changeset 20096 - Pugs - Trac
22:13 Gruber joined #perl6
22:14 lidden joined #perl6
22:14 marmic joined #perl6
22:14 devogon joined #perl6
22:14 ilogger2_ joined #perl6
22:14 c9s joined #perl6
22:14 jrockway joined #perl6
22:14 pjcj joined #perl6
22:14 zev joined #perl6
22:14 wolverian joined #perl6
22:14 jnthn joined #perl6
22:14 awwaiid joined #perl6
22:14 yves joined #perl6
22:14 mofino joined #perl6
22:14 Yappo_ joined #perl6
22:14 ingy joined #perl6
22:14 perlbot joined #perl6
22:15 dduncan left #perl6
22:32 pugs_svnbot r20097 | buchetc++ | [t\spec] smartlink issues
22:32 pugs_svnbot diff: http://dev.pugscode.org/changeset/20097
22:32 lambdabot Title: Changeset 20097 - Pugs - Trac
22:34 Limbic_Region joined #perl6
22:40 cognominal_ joined #perl6
22:40 lichtkind joined #perl6
22:41 lichtkind is there anywhere a current precompiled parrot?
22:41 lichtkind for win32
22:46 buchetc do you already have checked http://sourceforge.net/projects/parrotwin32/
22:54 lichtkind buchetc: no thanks
22:55 lichtkind its great
22:58 lichtkind buchetc: whats your interest in perl6 ?
23:03 buchetc lichtkind: I love perl :-)
23:03 lichtkind buchetc: thats always a very god reason :)
23:04 buchetc perl6 will be a big step for modern programming languages
23:04 lichtkind ähm good
23:04 lichtkind buchetc: yeah there is no languange nearly as shiny as perl 6
23:04 lichtkind perl 5 is on 5 or 6 for me
23:05 lichtkind buchetc:  and your also just a lurker or?
23:06 buchetc lichtkind: lurker??
23:06 lichtkind buchetc: someone who just looks
23:08 lichtkind or i ask the other way would you ne interested to help out with an perl 6 tutorial
23:09 buchetc lichtkind: Tutorials are not my favourite task :/. I currently work at S17 and concurrency issues for perl6
23:11 lichtkind ah you are that i heard it on channel today
23:13 lichtkind ther perl6.exe doesnt seems to work
23:13 lichtkind gives a shitload on error for an simple say statement
23:15 buchetc bad news. I've had build pugs yesterday at win32. I'll try it tomorrow for parrot and let you know
23:15 buchetc at home I've had no win running
23:15 buchetc s/had//
23:16 lichtkind thanks a lot
23:16 buchetc sorry, time to sleep now&
23:16 lichtkind nop & good night
23:17 Chillance joined #perl6

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

Perl 6 | Reference Documentation | Rakudo