Re: Clojure in Python

2012-03-02 Thread Timothy Baldridge
> On a similar note, are you using Python's approach to characters (they are > simply a string of length 1)? Yes, that's exactly what we're doing. As an aside note, the fact that Python is so dynamic allows us to do some really interesting things with sequences: https://github.com/halgari/clojure

Re: Clojure in Python

2012-03-02 Thread Daniel Gagnon
> > Well first of all, the real main drive, is that I don't know Java libs > nearly as well as Python libs. Secondly, there's a lot of cruft (imo) > in Clojure that doesn't need to exist in a dynamic VM. For instance, > there's no reason to new up something with (Foo. 1 2). In python > objects are

Re: Clojure in Python

2012-03-01 Thread David Jagoe
Hi Timothy, > Well first of all, the real main drive, is that I don't know Java libs > nearly as well as Python libs. Yes please!!! I'd love to be able to use Python libs from a Clojure. Great work - I'll be following this with interest and would love to get involved. I've done a lot of advanced

Re: Clojure in Python

2012-02-29 Thread Timothy Baldridge
>>How is performance looking so far? On CPython...well about as good as CPython is comared to Java. On PyPy however, we're pretty close to Clojure. Currently on a factorial example, clojure-jvm runs in about 15 sec. On clojure-py it's about 24 sec. But there's always room for more optimization.

Re: Clojure in Python

2012-02-29 Thread Mark Rathwell
> Currently we have about half of core.clj ported from JVM clojure to > python clojure. I know it's early, but have there been any thoughts/plans around interop and dependency management, possibly providing some sort of bridge between lein and pip/easy_install/virtualenv? And is performance the m

Re: Clojure in Python

2012-02-29 Thread Sean Corfield
On Wed, Feb 29, 2012 at 3:42 PM, Timothy Baldridge wrote: > The core.clj file is probably the best way to get an idea of how > clojure-py differs and is similar to clojure: > https://github.com/halgari/clojure-py/blob/master/clojure/core.clj > > Currently we have about half of core.clj ported from

Re: Clojure in Python

2012-02-29 Thread Timothy Baldridge
> Not sure how many people have seen this, looks interesting though: > > https://github.com/halgari/clojure-py The core.clj file is probably the best way to get an idea of how clojure-py differs and is similar to clojure: https://github.com/halgari/clojure-py/blob/master/clojure/core.clj Currentl