Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2008-12-06

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:14 tewk joined #perl6
00:14 apeiron joined #perl6
00:14 spx2 joined #perl6
00:32 eternaleye joined #perl6
00:39 bacek joined #perl6
00:50 smg joined #perl6
00:53 bacek pugs: token CommentContent { .* }; token Comment { '(:' <CommentContent>? ':)' }; say "(: Hi :)" ~~ / <Comment> /; say ~$/
00:53 p6eval pugs: OUTPUT[Error eval perl5: "if (!$INC{'Pugs/Runtime/Match/HsBridge.pm'}) {␤    unshift @INC, '/home/evalenv/pugs/perl5/Pugs-Compiler-Rule/lib';␤    unshift @INC, '/home/evalenv/pugs/third-party/Parse-Yapp/lib';␤    eval q[require 'Pugs/Runtime/Match/HsBridge.pm'] or die $@;␤}␤'Pugs::Runti...
00:53 bacek perl6: token CommentContent { .* }; token Comment { '(:' <CommentContent>? ':)' }; say "(: Hi :)" ~~ / <Comment> /; say ~$/
00:53 p6eval rakudo 33527: OUTPUT[␤␤]
00:53 p6eval ..pugs: OUTPUT[Error eval perl5: "if (!$INC{'Pugs/Runtime/Match/HsBridge.pm'}) {␤    unshift @INC, '/home/evalenv/pugs/perl5/Pugs-Compiler-Rule/lib';␤    unshift @INC, '/home/evalenv/pugs/third-party/Parse-Yapp/lib';␤    eval q[require 'Pugs/Runtime/Match/HsBridge.pm'] or die $@;␤}␤'Pugs::Runti...
00:53 p6eval ..elf 24166: OUTPUT[Can't locate object method "cb__RegexDef" via package "EmitSimpleP5" at ./elf_f line 1612.␤]
00:55 slavik rakudo is better at grammars and such ;)
00:57 bacek slavik: but I expect different result...
00:57 bacek perl6: token CommentContent { \.* }; token Comment { '(:' <CommentContent>? ':)' }; say "(: Hi :)" ~~ / <Comment> /; say ~$/
00:57 p6eval rakudo 33527: OUTPUT[␤␤]
00:57 p6eval ..pugs: OUTPUT[Error eval perl5: "if (!$INC{'Pugs/Runtime/Match/HsBridge.pm'}) {␤    unshift @INC, '/home/evalenv/pugs/perl5/Pugs-Compiler-Rule/lib';␤    unshift @INC, '/home/evalenv/pugs/third-party/Parse-Yapp/lib';␤    eval q[require 'Pugs/Runtime/Match/HsBridge.pm'] or die $@;␤}␤'Pugs::Runti...
00:57 p6eval ..elf 24166: OUTPUT[Can't locate object method "cb__RegexDef" via package "EmitSimpleP5" at ./elf_f line 1612.␤]
01:07 thei0s weird.. afaik this should work, i've written far more complexer working things in rakudo
01:11 eternaleye joined #perl6
01:12 bacek rakudo: token CommentContent { <- [ '(:' | ':)']>* }; token Comment { '(:' <CommentContent>? ':)' }; say "(: Hi :)" ~~ / <Comment> /; say ~$/
01:12 p6eval rakudo 33527: OUTPUT[(: Hi :)␤(: Hi :)␤]
01:12 bacek this better :)
01:12 JohnDrago joined #Perl6
01:13 thei0s oh, i see where the problem lies... tokens are not backtracking
01:13 bacek rakudo: token CommentContent { <- [ '(:' | ':)']>* }; token Comment { '(:' <CommentContent>? ':)' }; say "(: Hi: There :)" ~~ / <Comment> /;
01:13 thei0s (by definition)
01:13 p6eval rakudo 33527: OUTPUT[␤]
01:13 bacek thei0s: indeed
01:14 thei0s token CommentContent { .* <before ':)'> }; token Comment { '(:' <CommentContent>? ':)' }; say "(: Hi :)" ~~ / <Comment> /; say ~$/;
01:14 thei0s rakudo: token CommentContent { .* <before ':)'> }; token Comment { '(:' <CommentContent>? ':)' }; say "(: Hi :)" ~~ / <Comment> /; say ~$/;
01:14 p6eval rakudo 33527: OUTPUT[␤␤]
01:16 thei0s rakudo: token CommentContent { .*? <before ':)'> }; token Comment { '(:' <CommentContent>? ':)' }; say "(: Hi :)" ~~ / <Comment> /; say ~$/;
01:16 p6eval rakudo 33527: OUTPUT[(: Hi :)␤(: Hi :)␤]
01:16 thei0s here it is
01:17 thei0s imho thats the way to do it if you dont want to use regex
01:18 bacek thei0s: yeah. Much cleaner
01:29 JohnDrago left #Perl6
01:46 zamolxes joined #perl6
01:49 eternaleye_ joined #perl6
02:05 hercynium_ joined #perl6
02:45 slavik joined #perl6
02:51 jfredett joined #perl6
03:11 Psyche^ joined #perl6
03:20 rakudo_svn r33533 | pmichaud++ | [rakudo]:  Convert an :init vtable to run at :load :init instead.
04:02 elmex joined #perl6
04:23 slavik how do I get a length of a list?
04:40 rakudo_svn r33537 | coke++ | [perl6] add a Configure.pl for perl6; use this to regenerate the Makefile.
04:40 rakudo_svn r33537 | coke++ | - also, regen MANIFEST.
04:41 slavik perl6: say ?{0 == 1}
04:41 p6eval pugs, rakudo 33535: OUTPUT[1␤]
04:41 p6eval ..elf 24166: OUTPUT[0␤]
04:41 slavik perl6: say ?{0 === 1}
04:41 p6eval pugs, rakudo 33535: OUTPUT[1␤]
04:41 p6eval ..elf 24166: OUTPUT[0␤]
04:41 slavik perl6: say ?{0 =:= 1}
04:41 p6eval pugs, rakudo 33535: OUTPUT[1␤]
04:41 p6eval ..elf 24166: OUTPUT[0␤]
04:41 slavik perl6: say ?{1 == 1}
04:41 p6eval elf 24166, pugs, rakudo 33535: OUTPUT[1␤]
04:42 slavik elf: say "yay" if ("abcabcabc" ~~ /abc/);
04:42 p6eval elf 24166: OUTPUT[yay␤]
04:56 [particle]1 joined #perl6
05:35 apeiron joined #perl6
05:40 rakudo_svn r33538 | coke++ | [perl6] - ignore more generated files (OS X)
05:46 eternaleye_ joined #perl6
06:00 rakudo_svn r33539 | coke++ | [perl6] Convert src/gen_builtins.pir to be .include instead of inline copies.
06:00 rakudo_svn r33539 | coke++ | (This makes IMCC report line numbers you can fix instead of lines in a copy of a file you shouldn't edit.)
06:00 rakudo_svn r33539 | coke++ |
06:00 rakudo_svn r33539 | coke++ | Only issue preventing this was a missing =cut tag in one of the builtins.
06:00 rakudo_svn r33539 | coke++ |
06:00 rakudo_svn r33539 | coke++ | Also fixup manifest.
06:07 rhr joined #perl6
06:10 rakudo_svn r33540 | coke++ | [CAGE] pass t/distro/*meta*
06:19 justatheory joined #perl6
06:50 rakudo_svn r33541 | infinoid++ | [CAGE] Remove trailing whitespace from 5 source files.
06:52 pugs_svn r24167 | hinrik++ | [util/perl6.vim] more keywords, improvements to operator and variable highlighting
07:00 rakudo_svn r33543 | infinoid++ | [CAGE] Fix a linelength.t failure in perl6multisub.pmc
07:12 eternaleye_ joined #perl6
07:17 f00li5h meow
07:18 eternaleye joined #perl6
07:40 rakudo_svn r33546 | duff++ | [rakudo] Add :nth() and :x() flags to .subst($str,$repl) and .subst($regex,$repl)
07:45 tcliou|A1ay joined #perl6
07:45 c1sung joined #perl6
07:45 LCamel_ joined #perl6
08:24 araujo joined #perl6
08:42 iblechbot joined #perl6
08:43 eternaleye joined #perl6
08:45 eternaleye joined #perl6
08:47 slavik moritz_: are you around?
08:47 eternaleye joined #perl6
09:25 ejs joined #perl6
09:55 ihrd joined #perl6
09:55 ihrd hi
09:55 ejs joined #perl6
09:55 ihrd I have sent bugreport http://rt.perl.org/rt3/Public/Bug/Display.html?id=61078
09:56 ihrd but do not see it in the list, and addons to it (I have sent it letter) do not attached to it in RT
09:56 ihrd mail-list I mean
09:57 ihrd that is lost debug
09:57 ihrd ./perl6/src/builtins/any-list.pir:68:say "in join"
09:57 ihrd ./perl6/src/builtins/any-list.pir:76:say "in join2"
09:57 ihrd ./perl6/src/gen_builtins.pir:5394:say "in join"
09:57 ihrd ./perl6/src/gen_builtins.pir:5402:say "in join2"
10:12 thei0s joined #perl6
10:21 ihrd so. that fixed in 33546
10:21 ihrd thank you some one
10:22 moritz_ ihrd: RT takes very long sometimes to forward the mails
10:23 ihrd hai
10:23 ihrd yes
10:23 ihrd and look like that some one is I am
10:23 ihrd bug still there in any-list.pir
10:24 ihrd I just remove it in my repo and forgot
10:25 ihrd svn do not croak when I pull, as git
10:25 moritz_ I've removed these lines, and now I'm running spectest
10:25 moritz_ if all is good, i'll commit the fix
10:27 meppl joined #perl6
10:28 ihrd thank you very much
10:35 kane_ joined #perl6
10:37 riffraff joined #perl6
10:39 riffraff hi everyone
10:40 rakudo_svn r33548 | moritz++ | [rakudo] remove debugging output. Closes RT #61078. ihrd++
10:42 riffraff I think I found a problem in the parser  generated from parrot/tools/dev/mk_language_shell
10:42 riffraff admittedly, it is a stub so it should not be feature complete
10:43 riffraff but I guess that the rules to match integers and string literals should be "token"
10:43 riffraff otherwise, by default, say "ok", " ", "foo" swallows the whitespace declaration
10:46 riffraff if someone can confirm I'm not dumb I'll submit a patch :)
10:47 pmurias joined #perl6
10:58 moritz_ riffraff: confirmed
11:00 riffraff to parrotbug@ ?
11:01 moritz_ @parrotcode.org, or https://trac.parrot.org/parrot/newticket
11:01 lambdabot Unknown command, try @list
11:14 riffraff oh thrre is a trac?
11:15 DemoFreak joined #perl6
11:16 riffraff argh, the subject got cut
11:17 riffraff I'm too stupid.
11:17 thei0s it is always good to click preview :)
11:19 riffraff but gmail does not have preview :)
11:19 riffraff I hope they'll soon implement something that reads your subject and tells you if it makes sense or not and warn you "oh, i guessyou missed something". It may require sufficiently advanced magic, but it would be really useful
11:21 thei0s hm, not magic, sufficiently complex grammar :)
11:22 riffraff I thought it as the same thing
11:22 riffraff ;)
11:23 riffraff (it seems impossible to change the ticket's subject once posted via email.. I'll live with it it seems)
11:23 riffraff btw: parrot's default REPL routine lacks, well, the "P" part?
11:25 zamolxes joined #perl6
11:26 riffraff the 'interactive' sub in HLLCompiler.pir seems to call '_dumper'($P0, target) if target is defined
11:28 riffraff but, I do not understand what target is , nor dumper. Or anyway, why it's not set to some default so that for example if I run perl6 in ineractive mode i can see that 1+1 = 2 withouth prefixing everything with "say"
11:35 IRSeekBot joined #perl6
12:01 justatheory joined #perl6
12:21 dmq joined #perl6
12:28 moritz_ riffraff: maybe target is an IO pmc?
12:28 moritz_ anyway, if you ask such questions on #parrot your chances are better to get answer
12:29 riffraff you'r right I should ask there thanks, it's just that I started at the perl6 repl and drifted off :)
12:44 pugs_svn r24168 | hinrik++ | [util/perl6.vim] complete Pod support, highlights S26-documentation.pod very nicely
12:47 [particle] joined #perl6
12:50 rakudo_svn r33550 | moritz++ | [cage] trailing whitespaces
12:56 masak joined #perl6
12:59 [particle]1 joined #perl6
13:00 rakudo_svn r33554 | moritz++ | [cage] clean up two Configure.pl's  (svn id, copyright)
13:01 ihrd hai
13:01 ihrd can I get dir files list in Rakudo today somehow?
13:02 ihrd mb using inline pir?
13:02 moritz_ maybe :-)
13:03 drbean joined #perl6
13:04 ihrd I use ugly workaround for list all pages in November wiki, just put it name in another one file. And just hope I can do that another way.
13:05 ihrd Where I can find something about how to do that in PIR?
13:06 pugs_svn r24169 | hinrik++ | [util/perl6.vim] reclassify one keyword, update timestamp
13:06 moritz_ ihrd: maybe ask in #parrot?
13:07 ihrd ok
13:07 masak ihrd: greetings, compatriot.
13:11 ihrd mortiz_: only two person on #parrot. my and lu_zero :(
13:12 ihrd masak: hi! I wright some question to you on #november-wiki
13:12 masak ah, missed that.
13:12 masak replying.
13:13 vixey joined #Perl6
13:17 riffraff ihrd, I guess you want #parrot@irc.perl.org ?
13:17 riffraff actually, I know that from the source files, but I think it's not advertised on the parrotcode.org website
13:17 ruoso joined #perl6
13:20 ruoso Hello!
13:20 ihrd riffraff: oh, thank you, I just miss server :)
13:20 bacek joined #perl6
13:21 riffraff pleased to be helpful
13:28 pmurias ruoso: hi
13:30 pugs_svn r24170 | hinrik++ | [util/perl6.vim] support embedded comments (e.g. #[ ])
13:37 broquaint masak++ # A month of November.
13:38 masak broquaint: humble thanks.
13:38 jnthn masak: I often read them too, was nice. :-)
13:38 masak woot
13:38 * jnthn isn't sure he could keep up with blogging every day
13:39 masak it was a bit stressful, yes.
13:39 masak but I'll try to do it again next year.
13:40 jnthn In November? ;-)
13:43 masak jnthn: of course. :)
13:46 ruoso hi pmurias
13:47 [particle] joined #perl6
13:47 moritz_ masak: in case you haven't noticed, your use.perl.org is now on planetsix
13:48 masak moritz_: I hadn't noticed. that's good to know, thank you.
13:48 moritz_ (pmichaud++ took care of that, I think)
13:49 * ruoso wonder if TimToady had some time to review S07...
13:49 moritz_ iirc he's traveling these days
13:49 ruoso hmm
13:50 ruoso pmurias, have you seen Map.pm?
13:50 pmurias vaguely, looking again
13:51 ruoso pmurias, I'm considering moving it to src-s1p as "smop official prelude'
13:52 ruoso just rework it a little to look more like actual code
13:54 rindolf joined #perl6
13:54 pmurias ruoso: being able to have the things in the Prelude loaded would be nice
13:55 ruoso we need to have it compilable first ;)
14:02 pugs_svn r24171 | ruoso++ | [mildew][smop] Moving Map.pm to src-s1p, generic item iterator, lazy list and array iterator moved to their own files...
14:03 pmurias ruoso: btw. you have any ideas what smop-related thing i could implement which would count as a project for my C class?
14:04 ruoso well the PCL thing should worth you a A++
14:04 ruoso (or, in Brazillian terms, a 10)
14:06 pugs_svn r24172 | ruoso++ | [smop] "use" statements in src-s1p will be used to find out dependencies between the files...
14:07 rindolf Does Rakudo have line numbers in run-time errors already?
14:07 pmurias a course is propably the better term as i'm at university now
14:07 pmurias s/the/a/
14:08 ruoso the PCL thing will probably be able to cause a good impression to any teacher
14:10 pmurias is really getting round to implementing it now... ;)
14:10 ruoso ;)
14:10 riffraff rindolf, it seems so
14:11 rindolf riffraff: let me see.
14:11 ruoso is there a standard way of naming failures/
14:11 ruoso ?
14:11 ruoso I've just realized I had used the Java idiom on that...
14:11 ruoso OutOfItemsException
14:12 riffraff nothingmuch, I retreat, I was wrong
14:12 riffraff s/nothingmuch/rindolf
14:12 rindolf riffraff: OK.
14:20 pmurias ruoso: is requiring a SMOP_CALLBACK_END() in functions passed to SMOP__S1P__PCLCoro_create ok?
14:22 ruoso well... don't you have a wrapper function already?
14:22 ruoso it could be done in that, after the actual function returns
14:23 * ruoso bbiab&
14:25 pmurias ruoso: i don't have a wrapper function yet, i'm considering makeing the wrapper optional
14:27 pugs_svn r24173 | hinrik++ | [util/perl6.vim] a few more keywords
14:32 ruoso pmurias, if that makes SMOP_CALLBACK_END a requirement, I'd rather make the wrapper a requirement
14:33 ruoso pmurias, remember... the most important use case for that is the XS modules
14:33 ruoso s/is/are/
14:33 ruoso better if we could use them without modifications
14:37 pmurias i can always layer a wrapper providing function on top of the more general one
14:38 TimToady joined #perl6
14:38 zamolxes joined #perl6
14:38 meteorjay joined #perl6
14:38 kanru joined #perl6
14:38 dalek joined #perl6
14:38 lizsac joined #perl6
14:38 simcop2387 joined #perl6
14:38 p6eval joined #perl6
14:38 zostay joined #perl6
14:39 pugs_svn r24174 | hinrik++ | [util/perl6.vim] more keyword stuff
14:41 literal will Perl 6 have anything like carp/croak?
14:42 masak literal: that seems likely.
14:44 literal or will warn/die automagically act like that inside methods?
14:44 literal masak: which part? :)
14:45 pmurias literal: doesn't carp/croak report errors from the perspective of the caller
14:45 pmurias ?
14:45 literal yeah
14:46 masak literal: I don't think warn/die will act like that automagically. sometimes you want the default Perl 5 behaviour.
14:47 literal true
14:47 TimToady joined #perl6
14:47 zamolxes joined #perl6
14:47 meteorjay joined #perl6
14:47 kanru joined #perl6
14:47 dalek joined #perl6
14:47 lizsac joined #perl6
14:47 simcop2387 joined #perl6
14:47 p6eval joined #perl6
14:47 zostay joined #perl6
14:50 pugs_svn r24175 | pmurias++ | [smop]
14:50 pugs_svn r24175 | pmurias++ | calling a simple c function which doesn't call back as a c routine works
14:50 pugs_svn r24175 | pmurias++ | added test 39
14:52 pmurias literal: error reports are a bit implementation specific opening up the debugger would be a valid behaviour under some circumstances
14:53 iblechbot joined #perl6
14:55 adc_penner joined #perl6
15:08 pugs_svn r24176 | pmurias++ | [smop] switching between mold and pcl works
15:11 pmurias ruoso: the PCL is GPL'ed
15:13 ruoso that's ok... Perl is usually dual-licensed
15:13 ruoso but we should probably make it optional later
15:16 pmurias where should the PCL-smop syntax sugar live in?
15:19 pmurias smop_pcl.h?
15:27 justatheory joined #perl6
15:28 pugs_svn r24177 | pmurias++ | [smop] added a skeleton smop_pcl
15:29 [particle] joined #perl6
15:33 ft joined #perl6
15:36 [particle]1 joined #perl6
15:42 [particle] joined #perl6
15:59 [particle]1 joined #perl6
16:06 jhorwitz joined #perl6
16:13 kisu joined #perl6
16:18 justatheory joined #perl6
16:19 ihrd left #perl6
16:25 mberends joined #perl6
16:40 rakudo_svn r33568 | pmichaud++ | [rakudo]: spectest-progress.csv update: 228 files, 4708 passing
16:50 DemoFreak joined #perl6
16:51 pugs_svn r24178 | moritz++ | [t] move blocks/sub_arg_errors.t to spec/, with some corrections
16:59 riffraff joined #perl6
17:08 pugs_svn r24179 | moritz++ | [t/spec] fudge S06-signature/errors.t for rakudo
17:19 pugs_svn r24180 | moritz++ | [t] move blocks/defaults.t to spec/, add one test
17:20 rakudo_svn r33571 | moritz++ | [rakudo] add regression tests for errors in signatures
17:20 smg joined #perl6
17:28 pugs_svn r24181 | moritz++ | [t] move blocks/closure.t to spec/
17:30 pugs_svn r24182 | moritz++ | [t/spec] fudge binding-closure.t for rakudo
17:40 rakudo_svn r33573 | moritz++ | [rakudo] add test file to spectest.data (binding of closures to &variables)
17:58 jferrero joined #perl6
18:12 mberends joined #perl6
18:16 vixey joined #Perl6
18:19 spx2 joined #perl6
18:38 adc_penner2 joined #perl6
19:23 [particle] joined #perl6
19:28 Chillance joined #perl6
19:44 thei0s hm, what is the difference between $bar1 and $bar2 in this case? : class foo { has $!bar1; my $bar2; }
19:49 thei0s oh, I remember.. my shares between instances
19:50 pmurias my $bar2 declares a normal lexical
20:12 mj41 joined #perl6
20:21 aindilis` joined #perl6
20:38 ejs joined #perl6
20:52 masak joined #perl6
21:22 slavik joined #perl6
21:22 slavik moritz_: u der?
21:34 moritz_ re
21:35 masak 're' is Latin for 'thing, affair'
21:35 masak that's why reply-mails are prefixed "Re: "
21:35 slavik I thought re meant regarding
21:36 masak slavik: many people think that.
21:36 slavik moritz_: how do I do web dev with perl6?
21:36 masak slavik: is there anything I can help you with?
21:36 slavik is it done with here-docs like with perl5?
21:36 slavik masak: I want to setup mod_perl6 and a test page in perl6 :)
21:37 masak slavik: well, heredocs aren't implemented in Rakudo yet.
21:37 masak slavik: have you taken a look at November wiki?
21:37 slavik masak: I've seen the wiki itself, but not the code
21:37 masak it's not using mod_perl6 yet, but soon
21:37 slavik oh
21:37 slavik masak: what does it use? fastcgi?
21:37 masak slavik: well, in the code is the answer to how you _can_ do web dev in Perl 6, at least. :)
21:38 masak slavik: right now, nothing.
21:38 slavik masak: so, how does november work?
21:38 masak slavik: read from input, write to output.
21:38 slavik masak: but how does apache know to call rakudo for perl6 pages?
21:38 masak you have to set that up manually right now with apache.
21:39 masak it calls a script in the p6w/ dir
21:39 masak and the script executes Rakudo
21:39 masak a shell script
21:39 slavik I see
21:39 slavik brb, but keep typing info :)
21:39 masak mod_perl6 will improve on that state of affairs
21:40 masak slavik: well, check out http://github.com/viklund/november/tree/master/p6w/wiki.sh.in
21:40 masak that's basically it.
21:45 pmurias masak: i thought a bare re refered to the re-  prefix
21:46 masak pmurias: I have not seen such a case.
21:46 masak in emails, it does mean the Latin word.
21:46 slavik err, perl6.pbc? is that rakudo?
21:46 masak slavik: it is.
21:47 slavik masak: so if I have /usr/local/bin/perl6, I can just make a handler for p6 to call perl6 on it, right?
21:47 slavik like, in terminal I can do: perl6 code.p6
21:47 pmurias masak: i meant a bare re in irc
21:47 masak pmurias: that might be. I'm not very down with IRC lingo.
21:48 masak slavik: sure, I guess. we chose this method to be as general as possible.
21:48 pmurias neither am i
21:48 slavik k
21:48 slavik now, I need to figure out how to make apache do it :)
21:50 masak I wish I knew more about that part. :) viklund++ did that.
21:55 jhorwitz slavik: very easy to do with mod_perl6
21:55 masak yay! slavik, jhorwitz++ can help you.
21:58 slavik jhorwitz: how do I set up apache to run perl6 code?
21:58 slavik and where can I get mod_perl6?
21:58 slavik and how well does it work?
21:58 slavik and such
21:58 jhorwitz LOL
22:00 jhorwitz first, install parrot and mod_parrot (https://trac.parrot.org/parrot/wiki/ModParrot)
22:00 jhorwitz fyi, i will likely release mod_parrot 0.5 next week
22:00 slavik k
22:00 jhorwitz if mod_parrot's test all pass, mod_perl6 is easy.
22:01 slavik k
22:01 jhorwitz i'll have more detailed docs in the release, but i'm happy to help you along until then.
22:01 slavik k, well, I have parrot and perl6 installed
22:01 slavik so, we got that :)
22:02 jhorwitz and apache and the apache dev environment (includes, apxs, etc.)
22:03 Aisling joined #perl6
22:03 slavik jhorwitz: the dev packages?
22:04 jhorwitz yes
22:04 slavik k
22:05 slavik looks like I'll be leaving soon, jhorwitz, I got a text editor open, let's run down the most basic stuff
22:05 slavik so: indstalled apache and the dev packages. working parrot/perl6
22:05 slavik next?
22:06 slavik checkout mod_parrot?
22:06 jhorwitz check out mod_parrot from subversion
22:06 slavik compile it and such?
22:06 jhorwitz read the README
22:06 jhorwitz yes
22:06 jhorwitz if make test passes all tests, you should be good to go and we can work on mod_perl6
22:06 jhorwitz btw, what OS?
22:06 slavik Linux, of course
22:06 slavik Ubuntu to be specific
22:07 slavik 8.10
22:07 jhorwitz then you should have no problem
22:07 jhorwitz my development platform is debian
22:07 slavik awesome
22:07 slavik the sane apache defaults ;)
22:07 jhorwitz well, i build my own... ;-)
22:07 slavik apache?
22:07 * jhorwitz trusts no one
22:07 jhorwitz yeah
22:07 slavik heh
22:07 slavik ok
22:07 slavik jhorwitz: should use gentoo then, but anycase
22:08 jhorwitz heh
22:08 slavik so, build mod_parrot ... then what?
22:08 jhorwitz make test
22:08 jhorwitz if ANY tests fail, there's a big problem
22:08 slavik make test && make; ??
22:08 jhorwitz make install
22:09 jhorwitz then make modperl6, which will precompile the mod_perl6 modules
22:09 slavik next
22:09 masak @ask TimToady I'm reading S12, where it is specced that dispatch can take place on arrays containing code objects. can the array also contain arrays, and have structural recursion happen?
22:09 lambdabot Consider it noted.
22:09 slavik k
22:09 slavik next
22:09 jhorwitz that's it -- need to configure it.  there's no installation process for mod_perl6 yet.  i'm ripping it out of mod_parrot after 0.5.
22:09 slavik k
22:10 slavik wait, make modperl6, where will it place mod_perl6?
22:10 slavik or you have to move it manually?
22:10 jhorwitz nowhere -- it's just compiling the .pm files to parrot bytecode
22:10 slavik k
22:10 jhorwitz you can configure apache to load it in place
22:10 * jhorwitz digs up a config
22:10 slavik awesome
22:10 slavik jhorwitz: also, sample page? ^^
22:11 jhorwitz actually, look in eg/perl6 in mod_parrot
22:11 masak rakudo: my $locator = method { .<here> }; my %h = { here => "foo" }; say %h.$locator
22:11 p6eval rakudo 33575: OUTPUT[get_pmc_keyed() not implemented in class 'Undef'␤current instr.: '_block18' pc 191 (EVAL_15:73)␤]
22:12 slavik ty
22:12 slavik jhorwitz: I'll pm my e-mail to you for the config, ok?
22:12 jhorwitz sounds good
22:12 slavik ty :)
22:13 slavik also, there is a DBI module in perl6 right?
22:13 jhorwitz no
22:13 slavik :(
22:13 slavik so, connecting to a DB is not doable?
22:13 jhorwitz lathos hacked up a DBDI module last week, but nothing official
22:14 masak slavik: there was some NCI work earlier this fall with SQL.
22:14 jhorwitz it's doable, just not via an official interface yet...
22:14 masak slavik: it's somewhere in the Parrot repo.
22:14 masak very early work, IAUI
22:14 masak AIUI
22:14 slavik I see postgres
22:14 slavik masak: how does november do DB lookups and such?
22:15 masak slavik: we're using files right now.
22:15 slavik ok
22:15 jhorwitz slavik: some mod_perl6 configs are in eg/perl6
22:15 slavik k
22:15 slavik hmm, what if there was an external tool thaqt would connect to DB and such?
22:15 slavik could be like: `mysql --runquery "select blah from blah, etc."`
22:15 slavik or something
22:16 * masak thinks mysql does that
22:16 masak it even outputs XML.
22:16 slavik k
22:16 masak slavik: may I be so bold as to ask what it is you're building? :)
22:17 slavik masak: Wordpress that doesn't suck :P
22:17 masak slavik: ah, a blog engine.
22:17 slavik masak: no
22:17 slavik masak: "article" engine
22:17 masak slavik: and the difference?
22:17 slavik where you don't have "posts and pages" that are different yet stored in the same tables
22:18 slavik basically, something closer to what slashdot is
22:18 masak I see.
22:18 masak slavik: best of luck to you, sir.
22:18 masak slavik: you might want to talk to ihrd eventually. he's planning to do a blog engine.
22:18 slavik masak: on my blog, it is close to what I want, but I want the homepage to display the latest published stuff, like a feed basically
22:20 slavik also, articles can be children of other articles and such
22:20 slavik so that you can have like howtos and such
22:20 slavik anyway, I'll be back ...
22:20 masak slavik: what would the child-parent relationship imply for articles?
22:20 slavik masak: just hierarchy
22:20 masak ah.
22:21 slavik so you can markup on the current page: print this articles children
22:21 slavik and such
22:21 slavik so you get like a book type thing, where there is a page for a chapter and it includes the sections of that chapter
22:21 slavik masak: look on my "blog" now, it's the Dive into Perl6 tab
22:21 slavik bcacm.org/~slavik
22:21 slavik soemthing like that
22:21 slavik actually, exactly that
22:22 masak http://bcacm.org/~slavik # so I can click on it from the IRC window :)
22:22 slavik heh
22:22 slavik sorry
22:22 masak np
22:22 masak still loading very slowly over here.
22:22 masak I can't see it.
22:22 slavik masak: I even put up my grammar for URLs there :)
22:22 slavik yeah, it does, my college network :(
22:22 masak sounds interesting.
22:22 slavik see if there is a google cache or something
22:23 masak slavik: um. ok.
22:23 masak slavik: you really should consider switching server. I can reach most every other page on the web.
22:23 slavik k
22:32 jferrero joined #perl6
22:39 Limbic_Region joined #perl6
22:40 jnthn masak: If you didn't already, please rakudobug the anonymous method failure.
22:41 masak jnthn: I already did.
22:41 jnthn I haven't done anything to explicitly make it work, but I can't think of any reasons why it wouldn't either...
22:41 jnthn Ah, great. You are efficient. :-)
22:41 masak jnthn: hai!
22:41 jnthn OH HAI
22:42 masak (instead of sleeping last night like I should, I typed a lot of things from S12 into Rakudo, trying to find holes. so you have five incoming rakudobugs right now.)
22:43 jnthn Great.
22:43 * jnthn is trying to get as much of S12 done as possible
22:43 masak also great.
22:43 jnthn There's a LOT in that synopsis.
22:43 masak mhm.
22:43 jnthn So far I've been working on it for the last year. ;-)
22:44 masak 哈哈
22:44 jnthn It was about a year ago when I first started hacking on Rakudo.
22:44 jnthn And it wasn't long before I dug into S12 things.
22:45 jnthn Of course, it's not been a solid year of working on it. But more weeks than not.
22:45 masak aye.
22:45 jnthn (As in, more weeks I've hacked on Rakudo than not...)
22:45 jnthn It's kinda crazy thinking how much has been done, and realizing how much there is left to do...
22:45 masak :)
22:46 masak I must say that it feels amazing to be part of this project, though.
22:46 masak so many things are falling in place these days.
22:46 masak just think when we'll have macros! :O
22:47 jnthn Oh yes, I'm really happy I got involved.
22:48 masak I should hit the sack now, and maybe read some more S12.
22:49 jnthn Reading S12 is one thing I haven't done in bed.
22:49 masak I have serious sleep rythm deviations right now.
22:50 masak so I get a lot of reading in bed done. :/
22:50 jnthn :-|
22:50 jnthn Yeah, I'm not sleeping exactly normal hours.
22:50 jnthn Getting up at 8:30am tomorrow is going to suck.
22:51 masak yes, I'll try to make it to church tomorrow. don't know if I'll succeed.
22:51 jnthn I didn't make it last week, and really want to see my friends there.
22:51 jnthn (Didn't make it last week through having a weekend in the UK)
22:51 masak :/
22:52 masak well, good luck tomorrow then.
22:52 jnthn Thanks! Hopefully I make it. :-)
22:52 masak how does one say "good bye" or "good night" in Slovak?
22:52 ab5tract joined #perl6
22:52 jnthn dobru noc
22:52 masak that's good night.
22:52 jnthn The c is pronounced as you'd say "ts" in English
22:52 jnthn Yes.
22:53 masak jnthn: yes, I figured :)
22:53 jnthn Slovak pronunciation, the soft sounds aside, is not so bad.
22:53 masak Japan fans:Japanese::masak:slavic languages
22:54 jnthn The morphology and grammar, OTOH, is rather tricky.
22:54 masak jnthn: no dualis, as in Slovenian? :)
22:54 jnthn No, thankfully not those!
22:55 masak :)
22:55 jnthn And no vocative case, as in Czech and Ukrainian.
22:55 masak enough cases to go around anyway, I guess.
22:55 pbuetow joined #perl6
22:55 jnthn Yes, six is enough.
22:55 masak which ones? nominative, ack, dat, loc, instr...?
22:55 jnthn Especially when you multiply them out with three genders, with masculine divided into animate and inanimate.
22:56 jnthn genitive too
22:56 masak right, forgot that one.
22:56 jnthn That's the six.
22:56 jnthn Maps closely to Russian.
22:56 masak same as Latin then, except for s/instr/abl/
22:56 masak but those are similar.
22:56 jnthn Apart from no loc, it's called the prepositional, IIRC.
22:57 masak aha
22:57 jnthn Ah, I never did look closely at Latin.
22:57 masak anyhoo, dobru noc.
22:57 jnthn dobru noc :-)
23:08 ruoso joined #perl6
23:14 simcop2387 joined #perl6
23:30 LimbicRegion joined #perl6
23:33 calin joined #perl6

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

Perl 6 | Reference Documentation | Rakudo