|
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 August 2009. |
|||
|
02:04
wayland76 joined
06:50
masak joined
07:09
szabgab joined
08:21
sri_kraih joined
11:07
szabgab joined
12:18
lichtkind joined
|
|||
| lichtkind | masak: was reading your mmporg article | 12:20 | |
| and now thinking about my role | 12:21 | ||
|
12:35
ruoso joined
|
|||
| masak | lichtkind: any insights? | 12:41 | |
| lichtkind | ruoso: hi | 12:49 | |
| masak: something like witch/scribe | 12:50 | ||
| masak | :) that was my suggestion, too | ||
| arthur-_ | hi. | 12:59 | |
| masak | arthur-_: o/ | ||
| arthur-_: when you have the time, it would be nice to do another session of Astaire work. | 13:01 | ||
| ruoso | hi lichtkind | ||
| masak | I need to JFDI my part and have a look at Web::Request and Web::Response, for example. | ||
| arthur-_ | masak: i'm ready when you are, not much work these few days | 13:03 | |
| masak | arthur-_: I was hoping you'd say that. :) ok, let's do a bit of it now. | 13:04 | |
| right now, I'm trying to un-bitrot the Nibbler. | |||
| (because that's the closest thing to be using Web::Request and Web::Response right, which is still not perfect) | 13:05 | ||
| arthur-_ | ok | ||
| masak | I'm getting 'Could not find non-existent sub !sub_trait' when I run it right now. investigating. | ||
| ah. old PIR files. | 13:06 | ||
| next problem: HTTP::Daemon has diverged. :) | |||
| masak loves this kind of stepwise debugging | |||
| English is a strange language. here's a commit message I just made: "[Makefile.in] removed removed .pm files" | 13:14 | ||
| arthur-_ | :) | 13:16 | |
| masak | hm, HTTP::Daemon has diverged, but I don't feel I have brain enough to sort it out right now. I'd better leave a message with mberends. | 13:19 | |
| ok, so for now I'm blocking on that. | 13:26 | ||
| arthur-_: did I understand correctly that you were blocking on Web::Request and Web::Response somehow? | |||
| masak starts by reading through the Astaire source code | 13:27 | ||
| arthur-_ | well I did not find how to use them ( and my attempts resulted in compilation errors ... ) | ||
| masak | I see. | 13:28 | |
| arthur-_ | so if they work, a 2-lines example is what I need' | ||
| masak | I still think our best bet is to start with spectests. | ||
| arthur-_: well, they do compile. :) I'll try to put together a good example of how to use them. | |||
| arthur-_ | nice | ||
| lichtkind | ruoso: hosit goin with SMOP? | 13:29 | |
| masak: you proclaimed to rewrite things in november but things i need are just small changes | 13:30 | ||
| masak | lichtkind: oh, absolutely. I'll get to your stuff long before those rewrites. | 13:31 | |
| lichtkind: it might seem to you that I've forgotten you, but the reality is that I've just been very busy up to YAPC::EU. it's getting better now. | 13:32 | ||
| arthur-_: actually, check out lib/Web/Nibbler.pm -- that's exactly how Web::Request and Web::Response should be used. | 13:42 | ||
| arthur-_: in the meantime, I'll do my best to make the Nibbler run again. :) | |||
| lichtkind | masak: most pressing i think is fixing the tag links because tags are not broken only the generated links to it | 13:48 | |
| masak | ok. | 13:49 | |
| lichtkind | masak: its already filed in github.com/viklund/november/issues#issue/18 | 13:56 | |
| zarah | lichtkind's link is also tinyurl.com/q77dpu | ||
| masak | lichtkind: thank you. | 13:57 | |
| lichtkind | masak: i now moved the open tasks in some sensible priority order | 14:02 | |
| masak | lichtkind++ | 14:03 | |
| arthur-_ | masak: here is where i fail ( probably language related, i'm new to perl6 ) | 14:56 | |
| i try to do : my Web::Request $req .= new({ "QUERY_STRING" => 'test' }); | 14:57 | ||
| and I get : invalid arg type in named portion of args | |||
| in method Web::Request::new (/home/arthur/dev/svn/canalsix/web/lib/Web/Request.pm:7) | |||
| masak | arthur-_: oh! | 14:58 | |
| arthur-_: no, that's bitrot... :/ | |||
| Object.bless takes two args nowadays. | |||
| masak fixes | |||
| arthur-_: there, pushed. | 15:05 | ||
| arthur-_ | masak: cool thanks | 15:06 | |
| masak: other problem, i don't find how to import your changes into my branch ... | 15:22 | ||
| ( i'm pretty sure i did it once ... I don't remind how ... strange ) | 15:23 | ||
| masak | arthur-_: 'branch'. do you mean your local checkout? | ||
| arthur-_ | I mean github.com/arthurwolf/web/tree/master | 15:24 | |
| zarah | arthur-_'s link is also tinyurl.com/ncpd9b | ||
| masak | ah. | ||
| your fork. :) | |||
| arthur-_ | that's the name :) | ||
| masak | if you have no outstanding changes, you could always delete it and re-fork. but I'm sure there are better ways. | ||
| maybe not through the web interfact, though. | 15:25 | ||
| arthur-_ | ok | ||
| masak | s/interfact/interface/ | 15:32 | |
| arthur-_ | sounds like help.github.com/forking/ is what I need | 15:44 | |
| zarah | arthur-_'s link is also tinyurl.com/lr7y5w | ||
| masak | ah, nice. | 15:48 | |
| right, it's done locally. I suspected that. | 15:49 | ||
|
20:06
masak joined
|
|||
| masak | I'm currently looking at how Rack::Handler works. | 20:06 | |
| having a real Web.pm stack requires pushing HTTP::Daemon down into a Web::Handler subclass. | 20:07 | ||
| glad to hear about the tests. maybe that means I should take an extra look at Rack::MockRequest as well. | |||
| arthur-_ | Web::Request followr Rack's style, yes ? | 20:08 | |
| get '/hi' means { "Hello World!" }; | 20:09 | ||
| masak | Web.pm core is meant to be a direct port of Rack. | 20:10 | |
| arthur-_ | ok | ||
| arthur-_ had to add .body to Web::Response | 20:11 | ||
| same name in Rack::Response, cool, nothing to change :) | 20:12 | ||
| masak | :) | ||
| seems it should be an rw array attribute. | |||
| arthur-_ | write(str) click to toggle source | 20:13 | |
| Append to body and update Content-Length. | |||
| NOTE: Do not mix write and direct body access! | |||
| masak | i.e. 'has @body is rw;' | ||
| arthur-_ | maybe perl6 has some way we can update $.length when @body is changed from the outside ... | 20:14 | |
| masak | yes, there are design details in Rack that I still don't fully understand. | 20:15 | |
| arthur-_: oh, for sure. | |||
| arthur-_ | that woul solve the problem | ||
| masak | aye. | ||
| but for now, we should probably focus on providing one of the solutions, such as .write -- and do the cool stuff later. :) | 20:16 | ||
| arthur-_ | yep | ||
| i'll note the cool thing in a comment | |||
| masak | I think it would require overriding STORE on @body, and that's likely not implemented yet. | ||
| comment -- excellent. | |||
| arthur-_ | masak: pull request :) | 20:21 | |
|
23:02
ihrd joined
23:03
ihrd left,
ruoso joined
|
|||