Experimental IRC log happs-2008-02-18

Available formats: content-negotiated html turtle (see SIOC for the vocabulary)

Back to channel and daily index: content-negotiated html turtle

These logs are provided as an experiment in indexing discussions using IRCHub.py, Irc2RDF.hs, and SIOC.

21:46:47<Saizan>Lemmih: happs' webserver supports what these days is called comet, right?
21:49:03<Saizan>i.e. long lived connections to push data to the client
22:05:08<Lemmih>Saizan: I think so.
22:30:28<inimino>darcs get --partial --tag=0.9.2 http://happs.org/repos/HAppS-HTTP
22:30:30<inimino>darcs: Couldn't find a tag matching "tag-name 0.9.2"
22:32:32<Saizan>inimino: 0.9.2 is not out yet, you can just remove the --tag part or try 0.9.1
22:33:30<inimino>ok, thanks
22:47:02<Lemmih>The TODO list for 0.9.2 is nearing its end.
22:50:13<Saizan>where is it?
22:50:34<Lemmih>Kinda here: http://code.google.com/p/happs/issues/list?updated=36&ts=1203032510
22:51:00<Lemmih>Not all of those have to be fixed, though.
22:51:30<Saizan>those with no milestone?
22:53:05<Lemmih>Not really.
22:54:06<mightybyte>Hmmm, I'm having more troubles with missing instance declarations for NormalizeD and XmlD.
22:54:35<Lemmih>mightybyte: Yeah, sorry about that.
22:54:53<mightybyte>Any suggestions? I'll paste the code.
22:55:10<inimino>sp ghc -isrc src/Main.hs --make --run --http-port=5000 # also from the home page
22:55:25<mightybyte>http://hpaste.org/5738
22:55:43<mightybyte>I got it to compile and run without the startSystemState call.
22:56:06<mightybyte>But of course that gives me an error. So when I add that call, I get the instance errors again.
22:56:44<Lemmih>mightybyte: You can drop the 'Default a' constraint.
22:56:54<mightybyte>Ok
22:57:15<Lemmih>And Sessions need to be an instance of Serialize.
22:57:52<mightybyte>Ok, I thought I had that at one point in time. Let me add it back.
22:58:20<Lemmih>HAppS defaults to Xml serialization if you leave out the instance.
22:58:46<Lemmih>We're working on removing that feature.
22:59:48<mightybyte>Ok.
23:00:04<Lemmih>There's TH for deriving Serialize in HEAD.
23:00:15<Lemmih>$(deriveSerialize ''Sessions)
23:00:18<Saizan>Lemmih: isn't it as easy as removing an instance from HAppS.State.Serialize ?
23:00:55<Lemmih>Saizan: Yeah, that and updating a bunch of code that depends on the instance.
23:01:35<mightybyte>Ok, is that TH function new?
23:01:44<Lemmih>Yes.
23:01:58<mightybyte>And would SessionData need to be an instance of Serialize also?
23:02:28<Lemmih>Only if you use it in Sesssions.
23:02:46<Saizan>$(deriveSerialize ''Sessions (Version 0) NoPriorVersion) btw
23:02:51<Lemmih>That's a yes.
23:03:06<mightybyte>Lemmih: Yeah, I intended to have SessionData be the parameter for Sessions
23:03:06<Lemmih>Saizan: Nope, $(deriveSerialize ''Sessions).
23:03:17<Lemmih>Saizan: That was the old TH code.
23:03:35<Lemmih>(old = last week, new = really new)
23:03:59<Saizan>mmh i pulled today, have the repos moved?
23:04:45<Lemmih>Saizan: new == from a few hours ago.
23:06:26<Saizan>k
23:08:05<mightybyte>Now it's complaining about missing a Default instance on SessionData.
23:08:22<mightybyte>Then, when I added one, it's missing DefaultD
23:08:33<Saizan>did you deriveSerialize for it?
23:08:47<mightybyte>Yeah
23:10:17<Lemmih>mightybyte: instance Version Sessions
23:10:30<Lemmih>and: instance Version SessionData
23:10:46<Lemmih>(No instance body, the defaults will do)
23:11:02<mightybyte>Ok
23:11:46<mightybyte>Aha! Compiles.
23:12:05<Lemmih>Yay.
23:13:14<mightybyte>Now let me put it in my actual test environment.
23:16:38<mightybyte>Hmmm, it appears that these deriveSerialize and instance Version declarations are order sensitive. Is that correct?
23:16:47<Lemmih>Yes.
23:16:54<Lemmih>Version above Serialize.
23:17:46<mightybyte>And do those two have to be above "instance Component"?
23:17:53<Lemmih>Yes.
23:19:39<Lemmih>Hah, compiled the base libraries in 6 minutes.
23:21:56<mightybyte>Hmmmm, now it's complaining about instance Default SessionData.
23:22:21<Lemmih>Did you remove the 'Default a =>' part?
23:22:22<mightybyte>And again, when I put that in, it complains about DefaultD.
23:22:48<Lemmih>Don't put it back.
23:23:01<Lemmih>SessionData shouldn't be a component.
23:23:09<mightybyte>Oh, ok.
23:24:00<Lemmih>And 'Serialize a =>' is better than 'Serialize (Sessions a) =>'.
23:24:13<mightybyte>Ahh
23:25:55<mightybyte>Oh, the (Default a) had crept back in.
23:28:09<mightybyte>Server error: Emitted event to unknown component. Ev: App.Session.NewSession [Char]
23:28:49<Lemmih>You used 'newSession ""' instead of 'newSession (SessionData "")'.
23:29:05<mightybyte>Ahhh, yes.
23:31:40<mightybyte>Excellent. Looks like I'm in business.
23:31:52<mightybyte>Cookies are being created and read.
23:31:55<mightybyte>Thanks a lot.
23:32:00<Lemmih>You're welcome.
23:32:28<mightybyte>Once I get all the core auth functionality working, I'll put up another tutorial.
23:33:35<mightybyte>Although I should probably wait until the next release.
23:33:44<mightybyte>Any idea when that is going to happen?
23:33:50<Lemmih>Soon.
23:34:07<mightybyte>Ok, I'll see how it goes.
23:34:10<Lemmih>That is, when Alex says so.
23:34:20<mightybyte>Heh
23:35:02<Lemmih>The big issues are out of the way. We're just polishing the details now.

Back to channel and daily index: content-negotiated html turtle