Camelia, the Perl 6 bug

IRC log for #november-wiki, 2009-03-29

| Channels | #november-wiki index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
03:55 ihrd joined #november-wiki
04:11 Tene_ joined #november-wiki
07:16 ihrd left #november-wiki
10:52 mj41 joined #november-wiki
12:01 masak joined #november-wiki
12:01 masak OH HAI
12:01 zarah hello masak, you fantastic person you
12:01 masak zarah: hi, dear.
12:01 zarah hello masak :)
12:01 masak memory of a goldfish... :)
12:21 sri_kraih joined #november-wiki
12:43 ihrd joined #november-wiki
12:43 ihrd hi
12:43 zarah saluton ihrd
12:44 ihrd dear zarah, I am happy, because I know you
12:45 ihrd masak, how are you?
12:45 masak ihrd: hello ihrd.
12:46 ihrd hai
12:46 masak I am fine. I have less time for Perl 6 than I would wish.
12:46 masak but life is otherwise good.
12:46 masak ihrd: how's with you?
12:46 ihrd I am move forward, but still slow
12:47 ihrd I add asterisk branch to HTML::Template
12:47 masak cool.
12:47 ihrd and have fun with it
12:47 masak my next step with Web.pm is getting Lobster to work.
12:48 masak I don't think that'll be hard.
12:48 masak just a matter of filling in all the holes along the way.
12:48 ihrd blocked again on the 'for_statement' this time
12:48 masak same as last time?
12:48 masak you are welcome to try and explain the blockage to me.
12:48 ihrd I will try
12:49 ihrd Jonathan++ explain my how works with make and {*}
12:49 masak ok.
12:50 masak I sort of half-know how it works.
12:50 ihrd and I start to use that, and implement if, insert
12:50 masak mm.
12:50 ihrd you can see my code in my clone of HTML::Template repo
12:51 * masak goes looking
12:51 ihrd http://github.com/ihrd/html-template/​blob/5274dd2fb5fb825c932b1bcb1ba74435​49a051b8/lib/HTML/Template/Action.pm
12:51 zarah ihrd's link is also http://tinyurl.com/dzekhs
12:52 ihrd I used make to put text result on the match tree
12:52 masak ok.
12:53 masak what does %meta contain?
12:53 ihrd this is my approach to implement that, as I do in old HTML::Template
12:54 masak aye, I recognize the variable names.
12:54 ihrd I was put datd into %meta, and use it in loops
12:54 masak not sure I understand.
12:55 ihrd if you have {foo => [1,2,3]} in data
12:55 ihrd templater put this into meta and use as... data for loop
12:55 masak ok.
12:56 masak I see.
12:56 ihrd this is how it works in old HTML::Template
12:58 ihrd see http://github.com/ihrd/html-template/​blob/4491a5619acc5fce314fadb0e1e45086​629e1233/lib/HTML/Template.pm#L99-119
12:58 zarah ihrd's link is also http://tinyurl.com/dj53br
12:59 masak aye.
12:59 masak I remember reviewing that code while watching "Mary Poppins" :)
13:00 masak hm, we have //= now instead of 'unless defined'...
13:00 ihrd ah, yes
13:01 ihrd so, my problem in asterisk -- I can`t make it works this way
13:01 ihrd because I cant change %params in action 'for_statement' first
13:02 masak why not?
13:02 ihrd because stetement within it`c <contents> call actions first
13:02 masak ah.
13:02 masak right.
13:03 masak and the inner <contents> will have possibly different values for each iteration...
13:03 masak I see the problem.
13:03 ihrd yes
13:03 masak seems to me you have to have a for loop in for_statement, where you set some variables somewhere.
13:03 ihrd I feel I do not understand something important
13:03 masak and then call the <contents> AST nodes again somehow.
13:04 masak and the first-generated <constents> must simply be ignored.
13:04 masak it's slightly suboptimal, but it works.
13:05 ihrd I understand this way, but it looks wrong for my
13:05 masak implementations like Rakudo don't have this probalem, because they don't generate N different pieces of content if the for loop loops N times.
13:05 masak ihrd: it might be that it is wrong, and that there is a better way.
13:05 masak I don't know.
13:05 ihrd hm
13:05 masak I'm sure pmichaud would like to hear about this.
13:05 masak he might have a solution, even.
13:06 ihrd I am waiting for Jhonathan, to ask him
13:06 masak ok.
13:06 ihrd but if you like -- ask pm
13:06 masak yes, he's probably quite knowledgeable about this too.
13:06 masak but pmichaud wrote this stuff.
13:07 masak I'll ask him.
13:07 ihrd let me know if you find out how we can make it works
13:08 masak sure.
13:10 ihrd a looking on the Lobster
13:10 ihrd this is just joke?
13:10 masak no, it's a "hello world"-like application.
13:11 masak not so much a joke as a minimal demonstration.
13:11 masak btw, I plan to replace the lobster with something else, because I think we don't need to steal their mascot.
13:12 ihrd Camelia :)
13:12 masak haha
13:12 masak sure, why not?
13:16 ihrd I need to go, see you!
13:16 masak see you.
13:17 ihrd left #november-wiki
15:25 ihrd joined #november-wiki
16:48 ihrd deep night, agian :( argh.
16:48 ihrd bb
16:48 ihrd left #november-wiki
17:16 Tene joined #november-wiki
20:57 sri_kraih_ joined #november-wiki

| Channels | #november-wiki index | Today | | Search | Google Search | Plain-Text | summary