Hi,

   Thanks a lot for your reply. I thought Java interoperability was
one of the key points for Clojure "a language for the JVM", having a
pure Clojure version that limits interoperability in the JVM isn't
quite in this spirit.

   The first project (clj-ds) seems quite what I need now, but I would
like to be able to use the libraries shipped with Clojure. They are
more likely to be around for the long run. Do you know how can I
"bootstrap" Clojure before using any Clojure specific data structure
(from Java or Jython)? The 1 second start-up time and slower
performance for large structure, when compared to clj-ds, aren't an
issue for me right now.

On Nov 1, 9:24 pm, Mikhail Kryshen <mikh...@kryshen.net> wrote:
> Consider using some implementation of persistent data structures that
> does not depend on Clojure.
>
> Clojure's data structures modified for use outside of 
> Clojure:http://github.com/krukow/clj-ds
>
> Persistent analogue of the Java Collections 
> Framework:http://code.google.com/p/pcollections/
>
> On Fri, 29 Oct 2010 07:41:17 -0700 (PDT)
>
>
>
> Dilvan<dil...@gmail.com> wrote:
> >   Hi,
>
> >    It was possible in clojure 1.0.0 to include clojure Persistent
> > collections in Jython:
>
> > jython -Dpython.path=<clojure_dist>/clojure_1.0.0/clojure-1.0.0.jar
>
> > >>>from clojure.lang import PersistentList
> > >>>b= PersistentList.create([7, 8, 2])
> > >>>b
> > (7 8 2)
>
> >    But with clojure 1.1.0 or 1.2.0 I get:
>
> > jython -Dpython.path=<clojure_dist>/clojure-1.2.0/clojure.jar
>
> > >>> from clojure.lang import PersistentList
> > >>> b= PersistentList.create([7, 8, 2])
> > >>> b
> > Traceback (most recent call last):
> >   File "<stdin>", line 1, in <module>
> > java.lang.ExceptionInInitializerError
> >    at clojure.lang.ASeq.toString(ASeq.java:20)
> >    at org.python.core.PyJavaType$5.__call__(PyJavaType.java:542)
> >    at org.python.core.PyObjectDerived.__repr__(PyObjectDerived.java:63)
> >    at org.python.core.PySystemState.displayhook(PySystemState.java:1190)
> >    at org.python.core.PySystemStateFunctions.__call__(PySystemState.java:
> > 1257)
> >    at org.python.core.PyObject.invoke(PyObject.java:3583)
> >    at org.python.core.Py.printResult(Py.java:1748)
> >    at org.python.pycode._pyx5.f$0(<stdin>:1)
> >    at org.python.pycode._pyx5.call_function(<stdin>)
> >    at org.python.core.PyTableCode.call(PyTableCode.java:165)
> >    at org.python.core.PyCode.call(PyCode.java:18)
> >    at org.python.core.Py.runCode(Py.java:1204)
> >    at org.python.core.Py.exec(Py.java:1248)
> >    at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:181)
> >    at
> > org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter.java:
> > 89)
> >    at
> > org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java:
> > 70)
> >    at
> > org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java:
> > 46)
> >    at org.python.util.InteractiveConsole.push(InteractiveConsole.java:
> > 110)
> >    at
> > org.python.util.InteractiveConsole.interact(InteractiveConsole.java:
> > 90)
> >    at org.python.util.jython.run(jython.java:316)
> >    at org.python.util.jython.main(jython.java:129)
> > Caused by: java.lang.RuntimeException: java.io.FileNotFoundException:
> > Could not locate clojure/core__init.class or clojure/core.clj on
> > classpath:
> >    at clojure.lang.RT.<clinit>(RT.java:305)
> >    ... 21 more
> > Caused by: java.io.FileNotFoundException: Could not locate clojure/
> > core__init.class or clojure/core.clj on classpath:
> >    at clojure.lang.RT.load(RT.java:412)
> >    at clojure.lang.RT.load(RT.java:381)
> >    at clojure.lang.RT.doInit(RT.java:416)
> >    at clojure.lang.RT.<clinit>(RT.java:302)
> >    ... 21 more
>
> > java.lang.ExceptionInInitializerError:
> > java.lang.ExceptionInInitializerError
>
> >    Any clues?
>
> --
> Mikhail

-- 
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