Re: Exception while setting namespace from Java

2008-09-04 Thread Josip Gracin
On Thu, Sep 4, 2008 at 5:41 PM, Michael Reid <[EMAIL PROTECTED]> wrote: > On Thu, Sep 4, 2008 at 6:19 AM, Josip Gracin <[EMAIL PROTECTED]> wrote: >> Thanks, Mike! Works perfectly! (btw, only on Java 1.5 and not on 1.6. >> On 1.6 there's a problem with arguments to RT.map) > > Care to share? I've

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

2008-09-04 Thread Stephen C. Gilardi
On Sep 4, 2008, at 9:28 AM, Rich Hickey wrote: > After sleeping on it, I think what we have been calling ns should be > called defns instead, and ns should just set *ns*. Thus there should > be only one defns for any particular namespace, and (ns foo) can be > used to set the namespace for a file

Re: Exception while setting namespace from Java

2008-09-04 Thread Michael Reid
Hi, On Thu, Sep 4, 2008 at 6:19 AM, Josip Gracin <[EMAIL PROTECTED]> wrote: > Thanks, Mike! Works perfectly! (btw, only on Java 1.5 and not on 1.6. > On 1.6 there's a problem with arguments to RT.map) Care to share? I've been using Clojure on OpenJDK 1.6.0 for some time without trouble. This in

Re: Clojure Robustness

2008-09-04 Thread Stuart Sierra
On Sep 3, 11:53 am, noahr <[EMAIL PROTECTED]> wrote: > Any opinions on whether Clojure is solid enough to be used in actual > production systems? I have ~1000 lines of Clojure code at work (plus many more I'm no longer using), not exactly "production" but in regular use for batch jobs. The only

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

2008-09-04 Thread Rich Hickey
On Sep 4, 9:46 am, Chouser <[EMAIL PROTECTED]> wrote: > On Thu, Sep 4, 2008 at 9:28 AM, Rich Hickey <[EMAIL PROTECTED]> wrote: > > > After sleeping on it, I think what we have been calling ns should be > > called defns instead, and ns should just set *ns*. Thus there should > > be only one defns

Re: Does new ns macro work with add-classpath?

2008-09-04 Thread Rich Hickey
On Sep 4, 9:35 am, "Josip Gracin" <[EMAIL PROTECTED]> wrote: > Here's what happens: > > (add-classpath > "file:///home/gracin/src/workspaces/main/maven-cljexec-plugin/target/classes") > You need to put a trailing / on directories supplied to add-classpath. Rich --~--~-~--~~--

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

2008-09-04 Thread Chouser
On Thu, Sep 4, 2008 at 9:28 AM, Rich Hickey <[EMAIL PROTECTED]> wrote: > > After sleeping on it, I think what we have been calling ns should be > called defns instead, and ns should just set *ns*. Thus there should > be only one defns for any particular namespace, and (ns foo) can be > used to set

Does new ns macro work with add-classpath?

2008-09-04 Thread Josip Gracin
Here's what happens: (add-classpath "file:///home/gracin/src/workspaces/main/maven-cljexec-plugin/target/classes") Under target/classes there's fileutils/fileutils.clj file. (ns testing (:require fileutils)) Could not locate Clojure resource on classpath: fileutils/fileutils.clj [Thrown c

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

2008-09-04 Thread Rich Hickey
On Sep 3, 7:51 pm, Rich Hickey <[EMAIL PROTECTED]> wrote: > 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 t

Re: Exception while setting namespace from Java

2008-09-04 Thread Josip Gracin
On Wed, Sep 3, 2008 at 11:48 PM, Michael Reid <[EMAIL PROTECTED]> wrote: > The key is that you need to wrap the call to in-ns in > Var.pushThreadBindings(IPersistentMap) / Var.popThreadBindings(). Thanks, Mike! Works perfectly! (btw, only on Java 1.5 and not on 1.6. On 1.6 there's a problem with