Re: Road to Clojure Survey



* Vend [2009-02-20 22:26+0100] writes:

FSet is a library, not a language.
If I understand correctly, native immutable collections are just one
feature of Clojure, and it integrates well with other features
(polymorphic collection manipulation and concurrency control).

I'm confused by this whole discussion.

Aren't Clojure's collection classes just a library and the Clojure
compiler/language treats them just like any other Java class? Is there
a reason why those classes could not be used in normal Java programs?

I also don't understand how those collections can improve concurrency
control beyond ordinary Java libraries. It seems to me that those
classes fall in the same category as the java.util.concurrency package.
Useful for sure, but claiming that those classes "ensure clean, correct,
multithreaded designs" seems a bit far fetched. Especially, since "Java
interop" has high priority and hence Clojure has to live with the
existing designs of Java frameworks and can't change those
after-the-fact.

Helmut.
.



Relevant Pages

  • Re: Road to Clojure Survey
    ... (polymorphic collection manipulation and concurrency control). ... Aren't Clojure's collection classes just a library and the Clojure ... a reason why those classes could not be used in normal Java programs? ...
    (comp.lang.lisp)
  • Re: Road to Clojure Survey
    ... Java offers low level building material. ... Immutability is the default in Clojure. ... The hard concurrency problem does not go away. ...
    (comp.lang.lisp)
  • Re: Road to Clojure Survey
    ... (polymorphic collection manipulation and concurrency control). ... Aren't Clojure's collection classes just a library and the Clojure ... a reason why those classes could not be used in normal Java programs? ...
    (comp.lang.lisp)
  • Re: Road to Clojure Survey
    ... I am several orders of magnitude more productive with Lisp than with Java for the kinds of things I am interested in. ... Clojure, or better (if you want to do ... We will now see if functional programming can do better. ... Because Clojure has the same access to all libs that Java also has, ...
    (comp.lang.lisp)
  • Re: Clojure vs Java speed
    ... vectors in C/C++ and Java. ... The JIT can't, but the coder can. ... You cannot write code that is both that short and that efficient in Clojure. ... You are on the JVM to interoperate with Java. ...
    (comp.programming)