nrepl's protocol is also very line reader centric, which is a drag, and the "integer" that prefixes messages is really just a variable length string and is not useful for allocating buffers to receive data in a client because it is a lines / 2 instead of a byte count. this makes writing a client that uses anything but a BufferedReader challenging. I am not advocating the slime protocol, but at least the slime protocol prefixes message with a fixed width representation of the count of bytes in the rest of the message.
I have been toying with a slime<->nrepl and using nio and polling to make it all run in single thread, the slime protocol is very easy to process like this, while I haven't been able to figure out a good way to parse the nrepl protocol without having a thread continuously loop around reading lines from the socket. On Sat, Mar 19, 2011 at 7:40 PM, Sean Corfield <seancorfi...@gmail.com> wrote: > On Sat, Mar 19, 2011 at 7:36 PM, Sean Corfield <seancorfi...@gmail.com> wrote: >> I guess I would need to be persuaded that either a) Slime/Swank is so >> unassailably good that all IDEs should implement it or b) there are >> inherent problems with nREPL and no IDEs should use it? > > As a follow on, the "Why another REPL implementation?" section of > https://github.com/clojure/tools.nrepl is good reading (and confirms > my suspicions about non-Emacs IDEs and Slime/Swank). > -- > Sean A Corfield -- (904) 302-SEAN > An Architect's View -- http://corfield.org/ > World Singles, LLC. -- http://worldsingles.com/ > Railo Technologies, Inc. -- http://www.getrailo.com/ > > "Perfection is the enemy of the good." > -- Gustave Flaubert, French realist novelist (1821-1880) > > -- > 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 -- 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