Re: Porting libraries to ClojureCLR

2010-11-25 Thread dmiller
On Nov 24, 1:24 pm, Ken Wesson wrote: > I gave some thought to the Integer vs. Int32 issue. > > I think what would help here is a way to alias classes when :importing them. > > It would require tweaking the ns macro and possibly parts of the > runtime. The outcome would be to allow something lik

Re: Porting libraries to ClojureCLR

2010-11-24 Thread Ken Wesson
I gave some thought to the Integer vs. Int32 issue. I think what would help here is a way to alias classes when :importing them. It would require tweaking the ns macro and possibly parts of the runtime. The outcome would be to allow something like (ns foo (:import (java.util.concurrent

Re: Porting libraries to ClojureCLR

2010-11-24 Thread nickik
I thought about that a little too. The thing is that clojure is doing something almost imposible. There is almost know way around writing you json library backand in clr interop. If we want to make clojure programm that run on the clr, the jvm and possibly in the browser we have to write pure cloj

Re: Porting libraries to ClojureCLR

2010-11-24 Thread David Jagoe
On 24 November 2010 02:11, JMatt wrote: > The easiest way to prevent divergence is to write and use native > clojure libraries. I totally agree. However because of clojure's excellent interop capabilities it is extremely common (in fact encouraged) for developers to directly use Java code. For ex

Re: Porting libraries to ClojureCLR

2010-11-23 Thread Tatiana Racheva
Not sure what "structuring imports" would entail. Do we need to use something like http://www.ikvm.net/devguide/net2java.html? On Tue, Nov 23, 2010 at 10:26 AM, Tatiana Racheva wrote: > Yeah, I was thinking the other day about the divergence of the CLR and the > JVM Clojures in general. > Let's

Re: Porting libraries to ClojureCLR

2010-11-23 Thread Tatiana Racheva
Yeah, I was thinking the other day about the divergence of the CLR and the JVM Clojures in general. Let's keep as many things as possible in common. On Tue, Nov 23, 2010 at 1:44 AM, David Jagoe wrote: > G'day all, > > I am using ClojureCLR (thanks everyone involved, clojure makes me > happy!) t

Porting libraries to ClojureCLR

2010-11-23 Thread David Jagoe
G'day all, I am using ClojureCLR (thanks everyone involved, clojure makes me happy!) to develop a Windows application. I need a json library (and don't really want to directly use the native C# one) so it seems like the best option will be to port an existing Clojure library to the CLR. Basically