12:13pm] You changed the topic to "comm layers for fun and profit!". [2:34pm] mda_ joined the chat room. [2:34pm] mda_: hello [2:35pm] slightlyoff: heya [2:35pm] ttrenka joined the chat room. [2:35pm] slightlyoff: hey tom [2:35pm] ttrenka: ok, that worked [2:35pm] ttrenka: mercy buckets [2:36pm] slightlyoff: what, exactly, are mercy buckets? [2:36pm] ttrenka: that's bad bad American for "merci beaucoup" [2:36pm] slightlyoff: heh [2:36pm] mda_: so we are here to discuss rpc-style vs. MOM-style communication? [2:36pm] ttrenka: MOM style? [2:36pm] slightlyoff: heh [2:36pm] slightlyoff: I hope not = ) [2:37pm] slightlyoff: although I suppose that there's no telling how bad it can get [2:37pm] mda_: message-oriented-middleware. you negotiate publish-subscribe many-many mappings based on named rendezvous points. [2:37pm] ttrenka: oh ok [2:37pm] ttrenka: thanks [2:37pm] slightlyoff: the mailing list is down, or I would hae invited everyone over mail [2:38pm] slightlyoff: I think Tom and I started this discussion out of my personal confusion about what kind of interface to give things like repubsub [2:38pm] ttrenka: right [2:38pm] slightlyoff: (which, internally, always uses a MOM-style event interface) [2:39pm] slightlyoff: but at CodeCon last weekend, I got to talking with the maintainer of Nevow [2:39pm] dylanks joined the chat room. [2:39pm] slightlyoff: it's a Twisted python webapp thinger [2:39pm] dylanks: ok, I'm in [2:40pm] slightlyoff: and they do low-latency comm to the browser w/ an XMLHTTP request that never closes until the server has something to say (at which point, it opens a new one) [2:40pm] slightlyoff: (hey dylan) [2:40pm] ttrenka: hey dylan [2:40pm] dylanks: I assume you're talking about the thing we were discussing yesterday... the alternative modpubsub thinger [2:40pm] ttrenka: who's this now? [2:41pm] slightlyoff: Nevow [2:41pm] slightlyoff: let me find a link [2:41pm] ttrenka: going to look [2:41pm] slightlyoff: http://nevow.com/ [2:41pm] ttrenka: thanks [2:41pm] ttrenka: license on this? [2:41pm] slightlyoff: not sure [2:43pm] slightlyoff: huh, doesn't seem to have a license [2:43pm] slightlyoff: but I'm pretty sure it's LGPL-ish [2:43pm] ttrenka: doesn't seem to have an JS in it, either [2:43pm] slightlyoff: (I can check w/ donovan) [2:43pm] ttrenka: [2:44pm] mda_: what are our use cases that the library has to satisfy? a javascript-based chat client? [2:44pm] dylanks: http://www.divmod.org/ [2:44pm] slightlyoff: nevow/liveevil.py [2:44pm] ttrenka: anyways, for all...I was discussing with Alex the idea of using the URLRequest and Connection interfaces defined in the latest SVG1.2 spec [2:44pm] ttrenka: generic comm layer at this point [2:45pm] slightlyoff: right, so I think this falls into the second of two buckets [2:45pm] slightlyoff: the first is 1-to-1 request/response pairs [2:45pm] slightlyoff: the second is this kind of thing, where it might not be one-to-one [2:45pm] dylanks: right, here were my thoughts: it seems pretty good... I guess I have two questions after reading through it... [2:45pm] ttrenka: I'm figuring that we will be supporting both models [2:46pm] dylanks: 1) Can we support enough of this with XMLHttpRequest and getURL() (the latter is answered in their examples) ? [2:46pm] dylanks: 2) How does this compared with DOM 3 LS (Load/Save)? [2:46pm] ttrenka: you don't need to create an XML document to do comm [2:46pm] ttrenka: (I can't stand load/save;) [2:46pm] slightlyoff: (which is a plus in my book) [2:46pm] mda_: xmlhttp can work with xml or with txt [2:46pm] ttrenka: right [2:46pm] slightlyoff: yeah [2:46pm] slightlyoff: and that's really good [2:46pm] ttrenka: we'd be looking at the responseText property [2:46pm] slightlyoff: (IMO) [2:47pm] mda_: i'm unclear on how the xml can work for multiple messages, since there can only be one xml root, right? [2:47pm] ttrenka: yeah [2:47pm] mda_: ok, so just text. [2:47pm] slightlyoff: base64 encoding in a CDATA section = ) [2:47pm] dylanks: right I get that... not that you couldn't wrap text in a single xml tag if you needed to [2:47pm] ttrenka: heh [2:47pm] mda_: problem 2, is that last i checked, moz is broken in its state machine for notifications in xmlhttp [2:47pm] ttrenka: true [2:47pm] ttrenka: yeah [2:47pm] ttrenka: it is [2:47pm] slightlyoff: in what conditions? [2:47pm] ttrenka: afaik [2:47pm] ttrenka: it never fires the completed state, iirc [2:47pm] ttrenka: i could be wrong though [2:48pm] ttrenka: last i checked, it fires onload fine, but not onreadystatechange [2:48pm] slightlyoff: ...but you can check response text ahead of readyState == 4, right? [2:48pm] mda_: i've lost my notes, but either IE or moz won't tell you about partial responses until the socket is closed. [2:48pm] ttrenka: but those are implementation details [2:48pm] slightlyoff: I think that's IE [2:48pm] slightlyoff: (but I could just be iggnant) [2:48pm] ttrenka: that's actually inaccurate as well, but you can't from script [2:49pm] slightlyoff: right, stream return, etc [2:49pm] ttrenka: (other ready states are more aimed at accessing responseBody and responseStream from a COM+ platform) [2:49pm] slightlyoff: but I don't expect writing client-side C++ for Dojo = ) [2:49pm] ttrenka: I hope not [2:49pm] mda_: the alternative to xmlhttp is what, a hidden iframe that the server puts individual