Java 6 can be thought of as the minimum version of the JVM that Clojure
supports.

Regarding NIO2, it's worth pointing out that Clojure itself only has
minimal wrapping around blocking streams, and nothing for NIO1. Using Java
APIs directly in Clojure is not uncommon.

Incidentally, java.lang.AutoCloseable should already be compatible with
clojure.core/with-open.

A cleaner way of interacting with Java's lambdas would be nice, but I
haven't come across any difficulties personally as of yet.

- James


On 7 August 2015 at 12:27, Morten Christensen <m...@41concepts.com> wrote:

> I am new to Clojure which I am evaluating using Clojure for a Java 8 based
> framework with code in clojure, java and possibly other jvm based languages
> that all need to interoperate.
>
> Clojure has many smart features which I like but there is at least one
> drawback. I could be wrong (?) but it appears to me that feature-wise it is
> limited to a legacy version of java - Java version 6 from 2008.
>
> Happily Clojure tolerate running under Java 7/8 but I have found no
> specific support for Java 7/8 features. In particular there is no support
> for NIO 2.0 or interoperability support for @FunctionalInterface,
> java.lang.AutoCloseable, Method parameter reflection, java.util.stream etc.
>
> I could do my own Clojure wrapper for NIO 2 but it seems to be quite hard
> for that particular tech (other people in the community have tried without
> being 100% complete and could not find anything that is actively
> maintained). All the other stuff seems like something that need in Clojure
> itself along with invokedynamic and other optimizations.
>
> Is there any plans for actively supporting Java 7/8 ?
>
> /Morten
>
> --
> 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 unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to