Regarding those... 

Some time ago I created a project containing only the persistent data 
structures for use with Java et al. 

https://github.com/krukow/clj-ds

It is the data structures only so no bootstrap penalty. There are also Java'ish 
"improvements" like basic Generics and improved performance on the iterator 
pattern.

It's still on Clojure 1.3 (As far as I recall), but I am planning on taking 
another iteration.

TODO:

- better Generics support
- more data structures  (tries, RRB-trees)
- include the reducers library support for parallelism

given this is a spare time project, I welcome everyone interested to contribute.

/Karl

On 02/06/2012, at 23.00, Philip Potter wrote:

> Yes it can! It's just a jar file after all, so you can use the classes in 
> your java program if you like.
> 
> However, clojure data structures typically do not use static typing as java 
> uses it. For example, PersistentVector is a collection of Objects and not 
> genericized. Getting things out of such a vector will no doubt require 
> typecasting, just like the old 1.4 days.
> 
> Phil
> 
> On Jun 2, 2012 9:25 PM, "Qihui Sun" <qihui....@gmail.com> wrote:
> Hi,the Thoughtworks technology radar mentioned below:
> 
> http://www.thoughtworks.com/articles/technology-radar-march-2012
> 
> Functional programming continues its slow but steady ascent into developer 
> mind share and, increasingly, code bases. New languages like Clojure, Scala, 
> and F# offer great new features. Now libraries such asFunctional Java, 
> TotallyLazy and LambdaJ are back porting some functional language 
> capabilities, particularly around higher-order functions and collections, 
> into Java. We like this trend because it previews common capabilities of 
> future languages yet allows developers to stay in their comfort zone. 
> 
> So I am interested,if Clojure can be used like a general library in Java,it 
> will beat above libraries and be awesome !
> 
> -- 
> Solomon
> HUAWEI
> Google+: Qihui Sun
> 
> 
> 
> 
> -- 
> 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 from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> 
> -- 
> 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 from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
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 from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to