On Mon, Mar 21, 2011 at 2:15 PM, James Reeves <jree...@weavejester.com> wrote: > On 21 March 2011 13:14, Chas Emerick <cemer...@snowtide.com> wrote: >> I think we're in violent agreement. Here's a sample nREPL exchange from >> https://github.com/clojure/tools.nrepl: > > Ah, I did look through that REPL exchange, but I misunderstood the > syntax the first time I read it. I now realise that the integer at the > beginning of each exchange refers to the number of key/value pairs > being transferred. > > This seems a little odd, as it's halfway between explicitly specifying > the size of the input (as in bencode or netstrings), and using an > explicit delimiter (as in Stomp or HTTP). I can't think of any > advantage to doing it this way, instead of using either a delimiter or > an initial byte-count.
and there are numerous disadvantages, including the inability to separate possibly blocking extraction of a single message from the byte-stream from parsing of a single message -- And what is good, Phaedrus, And what is not good— Need we ask anyone to tell us these things? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en