Camelia, the Perl 6 bug

IRC log for #november-wiki, 2009-08-12

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

All times shown according to UTC.

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

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