Experimental IRC log happs-2007-11-14

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.

19:30:45<perspectivet`>Saizan_: you around?
19:32:14<perspectivet`>or does anyone else around here have experience using Data.Binary?
19:36:30<perspectivet`>hey alexj: do you have experience
19:36:30<perspectivet`> using Data.Binary?
19:37:34<alexj>not really.
19:38:32<perspectivet`>I'm can't really tell why the documentation says "For parsing and generating simple external binary formats (e.g. C structures), Binary may be used, but in general is not suitable for complex protocols. Instead use the Put and Get primitives directly."
19:39:41<perspectivet`>Deriving from binary makes specification of simple serialization methods really easy using SYB generics
19:41:17<perspectivet`>Looks like the easiest way and at the impl. level it seems to use the same techniques as one would use with the direct Put and Get primatives (Get prim is what Saizan_ has used so far).
19:42:26<perspectivet`>But it seems to me that if this were to be used for a generic IPC framework a la erlang simple message construction is essential
19:42:33<perspectivet`>(if the performance is there)
19:50:34<Saizan_>perspectivet: i think the point is essentially that deriving a Binary instance using preexistant ones doesn't give you much control on the serialization format
19:52:39<Saizan_>perspectivet: have you written anything for hspread? i'd like to finish it by the end of the week
19:53:38<perspectivet>I have written some stuff. If you're shooting to have it done by the end of the week you should probably start from scratch though.
19:53:42<perspectivet>It's not that far along.
19:54:23<Saizan_>nothing pushable?
19:55:07<perspectivet>just the start of the connect function. I've just started figuring out how to best encode the various connection messages required.
19:55:38<perspectivet>I could push it, but I don't know how much use it would be to you.
19:56:27<perspectivet>I was hoping to at least get the basic connection method working before pushing it.
20:00:06<perspectivet>It seems to me that Binary instance provides a nice interface and *enough* control for most messages
20:00:15<perspectivet>I was more worried about performance
20:00:30<perspectivet>*most spread messages
20:01:09<perspectivet>I'm also thinking down the road, derived Binary instances would be a nice interface for haskell2haskell ipc.
20:01:22<perspectivet>at least from my standpoint as a lazy programmer
20:03:25<Saizan_>well, if you put an Int, do you know if it takes 4 bytes? and in which order? there's no such guarantee in the lib iirc
20:04:08<Saizan_>however yes, Binary is almost like java's Serialize
20:04:18<Saizan_>*Serializable
20:07:13<perspectivet>just looking at how one might specify byte order...
20:20:58<perspectivet>hmmm.
20:21:28<perspectivet>Ok, yeah, looks like there are bigendian and little endian put primates
20:21:37<perspectivet>hehe, primitives
20:22:26<perspectivet>so you should be able to use those once you coerce your integral types to Word[8,16,32]
20:22:39<perspectivet>*Word[8,16,32,64]
20:23:20<perspectivet>So yeah, unless there is a performance hit, derived Binary instances seems like the way to go.
20:23:37<perspectivet>Especially since the spread messages are pretty simple
20:30:55<durdn>silly newbie error while following "how to make a blogger like applicatioin"
20:31:19<durdn>I launch: ../../apps/sp runhaskell -ihaskell haskell/Main.hs
20:31:31<durdn>the modules are downloaded correctly it seems
20:31:51<durdn>some warnings appear and then:
20:32:12<durdn>.haskell_cache/http_searchpath.org-default.map.cache/HAppS/StdMain/StartState.hs:67:0: parse error on input `$'
20:32:23<durdn>did I miss some very basic FAQ?
20:32:56<alexj>durdn: repos are broken right now. give it about 24 hours for patches to come inn.
20:33:27<durdn>ok, thank you very much, i was lost :)
20:46:30<perspectivet>Saizan_: so, what do you think?
20:54:24<perspectivet>alexj: any thoughts?
21:08:32<alexj>thoughts on?
21:08:57<perspectivet>using derived Binary instances given the above discussion
21:12:05<perspectivet>I guess if Saizan thinks he/she can get the spread binding finished by Friday without I should just let him/her go with whatever was planned.
21:27:34<Saizan_>perspectivet: i just don't think the format is enough regular to be derived from the haskell datatype
21:28:50<Saizan_>(by end of the week i meant sunday btw ^^)
21:29:14<perspectivet>ok.
21:29:43<Saizan_>also, i've yet written most of the code
21:30:09<perspectivet>you mean you still haven't written most of the code?
21:30:21<perspectivet>or you have written most of the code?
21:33:51<Saizan_>i've. the Get/Put code related to messages
21:36:24<perspectivet>If you want to go ahead with your own SpreadConnection for the end of the week, I'm fine with that.
21:36:35<perspectivet>I probably can't meet that schedule
21:37:49<perspectivet>I think I've almost got a Binary derived instance for the first message in the connect method
21:38:09<perspectivet>If I get it finished before you get your version working I'll put it in.
21:39:40<Saizan_>ok :)

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