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