Side-effect free AOT compilation (Was: Re: Compilation with Java class files)

2009-10-19 Thread Manuel Woelker
On Fri, Oct 16, 2009 at 8:28 AM, Christophe Grand wrote: > Hi, > > On Wed, Oct 14, 2009 at 8:50 PM, Manuel Woelker > wrote: >> >> Hi all, >> >> after digging around a bit in the clojure code, trying to get the >> compile to work, I found out that cla

Re: Circular dependencies (Clojure and Java)

2009-10-15 Thread Manuel Woelker
On Thu, Oct 15, 2009 at 9:43 PM, Laurent PETIT wrote: > 2009/10/15 Manuel Woelker >> >> On Thu, Oct 15, 2009 at 5:48 AM, jng27 wrote: >> > >> > The following seems like it could be a common scenario when attempting >> > to re-write parts

Re: Compilation with Java class files

2009-10-15 Thread Manuel Woelker
On Thu, Oct 15, 2009 at 9:16 PM, Laurent PETIT wrote: > 2009/10/15 Manuel Woelker >> >> > How about the compiler just loads classes in a SecurityManager context >> > that >> > won't allow some naughtiness like System.exit()? Then you

Re: Circular dependencies (Clojure and Java)

2009-10-15 Thread Manuel Woelker
On Thu, Oct 15, 2009 at 5:48 AM, jng27 wrote: > > The following seems like it could be a common scenario when attempting > to re-write parts of an existing Java application in Clojure. > > Let's say there exists Clojure code and Java code in the same > 'project'. > The Clojure code depends on the

Re: Compilation with Java class files

2009-10-15 Thread Manuel Woelker
> How about the compiler just loads classes in a SecurityManager context that > won't allow some naughtiness like System.exit()? Then you'd get a > CompilerException caused by ExceptionInInitializerError caused by > SecurityException rather than have your REPL, IDE, or whatever blow up from > code

Compilation with Java class files

2009-10-14 Thread Manuel Woelker
c to the surrounding execution context. Cheers - Manuel Woelker --~--~-~--~~~---~--~~ 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

Re: api html page not working in firefox?

2009-10-12 Thread Manuel Woelker
On Sun, Oct 11, 2009 at 11:29 PM, Raoul Duke wrote: > > it seems to get chopped off part way down the page for me, of late. > (it doesn't get chopped off in ie for me.) > As another datapoint, it's chopped of for me too, at "(last coll)". If I'd have to guess I'd say it's a firefox issue though,

Re: Statics in clojure.lang.RT

2009-10-12 Thread Manuel Woelker
On Mon, Oct 12, 2009 at 11:41 AM, Christophe Grand wrote: > > You can: simply load them using different class loaders -- this way you'll > have several RT. Yeah, that might work. I had hoped to get around dealing with multiple classloaders and calling the RT methods via Reflection, but I guess t

Statics in clojure.lang.RT

2009-10-11 Thread Manuel Woelker
sure that would work. Is there any hope the RT could become a proper object? It would probably mean passing it to all involved classes (Compiler, Namespace, etc. ). I hope I am not committing a cardinal sin asking for objects for a functional language... Cheers -