Re: Jython interop

2010-03-06 Thread rob
Since we had this discussion I've been using Jython in Clojure and I've been growing a little library to make things easier. I decided it was useful enough to make live (though probably far from complete, seeing as my use case has been solely on one python library, nltk). http://code.google.com/p

Re: Jython interop

2010-01-25 Thread rob
Thanks again Marc, I made a note of it on the StackOverflow thread. On Jan 25, 2:41 pm, Marc Downie wrote: > On Mon, Jan 25, 2010 at 5:34 PM, rob wrote: > > Thank you for these good ideas!  I'm going to try it.  My goal is to > > use the Natural Language Toolkit in Clojure.   I also posted the s

Re: Jython interop

2010-01-25 Thread rob
Thank you for these good ideas! I'm going to try it. My goal is to use the Natural Language Toolkit in Clojure. I also posted the same question here: http://stackoverflow.com/questions/2129253/clojure-jython-interop Rob On Jan 24, 7:08 pm, Eric Lavigne wrote: > > I was wondering if anyone ha

Re: Jython interop

2010-01-25 Thread Marc Downie
On Sun, Jan 24, 2010 at 11:26 PM, rob wrote: > Hi, > > I was wondering if anyone has tried somehow calling Jython functions > from within Clojure, and how you went about doing this if so. I have > not used Jython, but I would imagine the Jython interpreter can be > invoked in the same way as any

Re: Jython interop

2010-01-25 Thread Marc Downie
> One approach is to compile the Jython code into a class file. This > requires some work on the Python side (similar to using gen-class in > Clojure so that Clojure code can be called from Java), and the Python > class of interest can't use multiple-inheritance. This approach is > discussed in the

Re: Jython interop

2010-01-25 Thread Joonas Pulakka
On 25 tammi, 00:26, rob wrote: > Hi, > > I was wondering if anyone has tried somehow calling Jython functions > from within Clojure, and how you went about doing this if so.  I have > not used Jython, but I would imagine the Jython interpreter can be > invoked in the same way as any other java cod

Re: Jython interop

2010-01-24 Thread Eric Lavigne
> I was wondering if anyone has tried somehow calling Jython functions > from within Clojure, and how you went about doing this if so.  I have > not used Jython, but I would imagine the Jython interpreter can be > invoked in the same way as any other java code, and Python programs > can be run with