Re: A clojure server

2009-04-05 Thread christ...@mvonessen.de
On Apr 5, 5:39 pm, Christian von Essen wrote: > On Sat, Apr 04, 2009 at 11:50:57PM +0200, Meikel Brandmeyer wrote: > > I'm haven't tried, yet. But the gensymed namespace certainly will > > get in the way, since VimClojure relies on the namespace not > > going away between the runs, since there is

Re: A clojure server

2009-04-04 Thread christ...@mvonessen.de
> > I wonder if it is possible somehow to reload clojure.core. The main   > reason would be to reset the global hierarchy for multimethods. > I'm not sure I undestand what you want to do, but couldn't you just do (in-ns 'clojure.core) (def #^{:private true} global-hierarchy (make-hierarchy)

Re: A clojure server

2009-04-04 Thread christ...@mvonessen.de
On Apr 4, 12:58 pm, "christ...@mvonessen.de" wrote: > > I haven't tried Christian's Clojure-specific server yet, but if it   > > solves that problem, I'll probably adopt it. > > Temporary namespaces are working now. Yay! > (in-ns 'user) do

Re: A clojure server

2009-04-04 Thread christ...@mvonessen.de
> I haven't tried Christian's Clojure-specific server yet, but if it   > solves that problem, I'll probably adopt it. Temporary namespaces are working now. Yay! (in-ns 'user) doesn't work, as for every connection a new namespace name is gensym'ed. After the connection is closed, the namespace is

Re: A clojure server

2009-04-03 Thread christ...@mvonessen.de
On Apr 1, 6:21 pm, christ...@mvonessen.de wrote: > > What nailgun has (beside the way cooler name) is the ability to > map *err* to stderr and *out* to stdout, which are just merged > into one datastream in my code. > OTOH, my code is written in Clojure, so it wins by default :P

A clojure server

2009-04-01 Thread christ...@mvonessen.de
Hi, I wanted to use clojure for some scripting-like tasks (mostly experimenting with clojure's abilities). But I found, that clojure's startup time is too bad to do that. So I implemented a client-server architecture which works pretty much like clojure's default clojure.main. I'd be glad if you