Re: clojure/ns and gen-and-save-class

2008-09-03 Thread Rich Hickey
On Sep 3, 5:14 pm, Chouser <[EMAIL PROTECTED]> wrote: > On Wed, Sep 3, 2008 at 4:36 PM, Stephen C. Gilardi <[EMAIL PROTECTED]> wrote: > > > I saw some discussion of how to fix this on the IRC log but I can't get on > > at the moment. > > It looks like the current plan is to change "ns" to remove

Re: Clojure Robustness

2008-09-03 Thread Allen Rohner
> Any opinions on whether Clojure is solid enough to be used in actual > production systems? I have no data yet, but I'm planning on putting a webapp on the web using compojure just as soon as it's ready. Allen --~--~-~--~~~---~--~~ You received this message beca

Re: clojure/ns and gen-and-save-class

2008-09-03 Thread Matt Revelle
On Sep 3, 2008, at 4:59 PM, Chouser wrote: > > On Wed, Sep 3, 2008 at 4:36 PM, Stephen C. Gilardi > <[EMAIL PROTECTED]> wrote: >> I have been thinking recently that "(:refer ...)" would make a good >> supported reference argument. Instead of "(:refer-clojure ...)", I >> suggest >> "(:refer .

Re: clojure/ns and gen-and-save-class

2008-09-03 Thread Rich Hickey
On Sep 3, 6:09 pm, "Michael Reid" <[EMAIL PROTECTED]> wrote: > Hi, > > > Good point. It seems that :use would suffice except if both of the following > > are true for a particular namespace: > > - it's defined outside of a lib, > > - it's reasonable to want to refer to it. > > > I'm not aware of

Re: clojure/ns and gen-and-save-class

2008-09-03 Thread Rich Hickey
On Sep 3, 4:59 pm, Chouser <[EMAIL PROTECTED]> wrote: > On Wed, Sep 3, 2008 at 4:36 PM, Stephen C. Gilardi <[EMAIL PROTECTED]> wrote: > > > I have been thinking recently that "(:refer ...)" would make a good > > supported reference argument. Instead of "(:refer-clojure ...)", I suggest > > "(:re

Re: clojure/ns and gen-and-save-class

2008-09-03 Thread Michael Reid
Hi, > Good point. It seems that :use would suffice except if both of the following > are true for a particular namespace: > - it's defined outside of a lib, > - it's reasonable to want to refer to it. > > I'm not aware of any uses of namespaces that meet both of those criteria. > Does anyone else

Re: Exception while setting namespace from Java

2008-09-03 Thread Michael Reid
Hi Josip, Have a look in jvm/clojure/lang/Repl.java which demonstrates creating and entering the 'user namespace. The key is that you need to wrap the call to in-ns in Var.pushThreadBindings(IPersistentMap) / Var.popThreadBindings(). This is analogous to: (binding [*ns* *ns*] ;; bind a thread-

Re: clojure/ns and gen-and-save-class

2008-09-03 Thread Stephen C. Gilardi
On Sep 3, 2008, at 4:59 PM, Chouser wrote: > On Wed, Sep 3, 2008 at 4:36 PM, Stephen C. Gilardi > <[EMAIL PROTECTED]> wrote: >> >> :refer (when you know another namespace is already present and you >> want to >> bring some or all of it into this namespace with filters) > > Is there any reason

Exception while setting namespace from Java

2008-09-03 Thread Josip Gracin
Hi! Why is the following code throwing an exception? PushbackReader rdr = new PushbackReader( new StringReader( "(in-ns 'user)" ) ); Object input = LispReader.read(rdr, false, null, false ); clojure.lang.Compiler.eval( input ); java.lang.IllegalStateException: Can't change/establish

Re: clojure/ns and gen-and-save-class

2008-09-03 Thread Chouser
On Wed, Sep 3, 2008 at 4:36 PM, Stephen C. Gilardi <[EMAIL PROTECTED]> wrote: > I saw some discussion of how to fix this on the IRC log but I can't get on > at the moment. > It looks like the current plan is to change "ns" to remove the sensitivity > to "the namespace is already defined" and add "(

Re: clojure/ns and gen-and-save-class

2008-09-03 Thread Chouser
On Wed, Sep 3, 2008 at 4:36 PM, Stephen C. Gilardi <[EMAIL PROTECTED]> wrote: > I have been thinking recently that "(:refer ...)" would make a good > supported reference argument. Instead of "(:refer-clojure ...)", I suggest > "(:refer ...)" which acts like any other call to refer but doesn't requ

Re: clojure/ns and gen-and-save-class

2008-09-03 Thread Stephen C. Gilardi
I saw some discussion of how to fix this on the IRC log but I can't get on at the moment. It looks like the current plan is to change "ns" to remove the sensitivity to "the namespace is already defined" and add "(:refer- clojure ...)" to the list of supported reference arguments. The new ":

Re: Clojure Robustness

2008-09-03 Thread Chouser
On Wed, Sep 3, 2008 at 11:53 AM, noahr <[EMAIL PROTECTED]> wrote: > > Any opinions on whether Clojure is solid enough to be used in actual > production systems? So far, I've mostly used Clojure where I would have used a python, perl, or ruby script in the past. So far, that's only amounted to a

Re: Clojure Robustness

2008-09-03 Thread Chas Emerick
We've not gone to production with Clojure code yet, but that day is fast approaching. Every indication is that it's "ready for prime time", at least in our circumstances. And yes, being able to drop back into Java is a nice escape hatch to have (although we've only employed it once in a very con

Re: Clojure Robustness

2008-09-03 Thread Matt Revelle
Chas, Did that edge case ever come up on the list? If not, would you mind sharing now? -Matt On Sep 3, 2008, at 1:46 PM, Chas Emerick wrote: > > We've not gone to production with Clojure code yet, but that day is > fast approaching. Every indication is that it's "ready for prime > time", a

Clojure Robustness

2008-09-03 Thread noahr
Any opinions on whether Clojure is solid enough to be used in actual production systems? Obviously it's JVM based, which is, and hopefully any issues would be caught per normal testing, and fixed or worked- around, but wondering what general thoughts on the matter are. As a backup plan I figure lo