Re: Another socket repl

2009-01-23 Thread Phil Hagelberg
Craig McDaniel writes: >> I wonder if it wouldn't be a good idea to move the call to binding >> fromsocket-replinto accept-fn. It seems like a reasonable default to >> rebind *in* and *out* for the duration of the accepting function; the >> example uses this as does my application. > > I'm not s

Re: Another socket repl

2009-01-21 Thread Craig McDaniel
> I wonder if it wouldn't be a good idea to move the call to binding > fromsocket-replinto accept-fn. It seems like a reasonable default to rebind > *in* and *out* for the duration of the accepting function; the example > uses this as does my application. I'm not sure that rebinding *in* and *ou

Re: Another socket repl

2009-01-20 Thread Phil Hagelberg
Craig McDaniel writes: > On Jan 19, 11:45 am, Phil Hagelberg wrote: >> I noticed that very little of this code is specific to the REPL; the >> bulk of it is just dealing with creating and doing things with server >> sockets. Perhaps it could be included in clojure-contrib as a >> generalized se

Re: Another socket repl

2009-01-19 Thread Stephen C. Gilardi
On Jan 19, 2009, at 2:15 PM, Craig McDaniel wrote: Thanks, that's a good point. I'm posting a new file server-socket.clj that is more generic and includes the REPL as an example case. I checked in server_socket.clj - thanks! --Steve smime.p7s Description: S/MIME cryptographic signature

Re: Another socket repl

2009-01-19 Thread Craig McDaniel
On Jan 19, 11:45 am, Phil Hagelberg wrote: > I noticed that very little of this code is specific to the REPL; the > bulk of it is just dealing with creating and doing things with server > sockets. Perhaps it could be included in clojure-contrib as a > generalized server-sockets library if instead

Re: Another socket repl

2009-01-19 Thread Phil Hagelberg
"Stephen C. Gilardi" writes: > That looks really nice, Craig. I see you're a registered > contributor. Would you be up for including this in clojure-contrib? I noticed that very little of this code is specific to the REPL; the bulk of it is just dealing with creating and doing things with serve

Re: Another socket repl

2009-01-19 Thread Rich Hickey
On Jan 19, 2009, at 10:59 AM, Stephen C. Gilardi wrote: > > On Jan 19, 2009, at 10:45 AM, Rich Hickey wrote: > >> It's very important to follow the protocol that patches only come >> from >> registered contributors and are posted *by them* as patches through >> the issue system. Only in that w

Re: Another socket repl

2009-01-19 Thread Craig McDaniel
I am a registered contributor...even though I haven't contributed anything so far. I opened an issue on clojure-contrib and attached the file. Let me know if that is not the correct procedure. -Craig --~--~-~--~~~---~--~~ You received this message because you are

Re: Another socket repl

2009-01-19 Thread Stephen C. Gilardi
On Jan 19, 2009, at 10:45 AM, Rich Hickey wrote: It's very important to follow the protocol that patches only come from registered contributors and are posted *by them* as patches through the issue system. Only in that way is their contribution recorded. So to get Craig's socket-repl.clj into

Re: Another socket repl

2009-01-19 Thread Rich Hickey
On Jan 19, 9:55 am, "Stephen C. Gilardi" wrote: > On Jan 19, 2009, at 9:38 AM, Craig McDaniel wrote: > > > In case this is of use to anybody else, I thought I'd share my version > > of a socket REPL:http://clojure.googlegroups.com/web/socket-repl.clj > > > Unlike the socket repl on the Wiki Exa

Re: Another socket repl

2009-01-19 Thread Craig McDaniel
Well, somehow that link points to an old version. I guess the delete and rename functions in Google groups do some strange things. Just look for the file in the Files section. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Re: Another socket repl

2009-01-19 Thread Craig McDaniel
On Jan 19, 9:55 am, "Stephen C. Gilardi" wrote: > Would you be up for including this in clojure-contrib? If so, and if   > we hear no objection here, could you please put on the appropriate EPL   > license header and your copyright notice (see other contribs for   > examples) and I'll be happy t

Re: Another socket repl

2009-01-19 Thread Craig McDaniel
Correction: http://clojure.googlegroups.com/web/socket-repl+(2).clj --~--~-~--~~~---~--~~ 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 To unsubscribe from t

Re: Another socket repl

2009-01-19 Thread Stephen C. Gilardi
On Jan 19, 2009, at 9:38 AM, Craig McDaniel wrote: In case this is of use to anybody else, I thought I'd share my version of a socket REPL: http://clojure.googlegroups.com/web/socket-repl.clj Unlike the socket repl on the Wiki Example page, it does the following: - uses the repl from clojure.

Another socket repl

2009-01-19 Thread Craig McDaniel
In case this is of use to anybody else, I thought I'd share my version of a socket REPL: http://clojure.googlegroups.com/web/socket-repl.clj Unlike the socket repl on the Wiki Example page, it does the following: - uses the repl from clojure.main - keeps track of connections, closing the sockets