On Fri, 21 Sep 2007, David Pratt wrote:
Wow Andi. This is really cool! So this should do away with the thread issue
so that it can be run without the need to have a specific
PyLucene.PythonThread threadpool.
Yes, no more threading issues. You just need to call attachCurrentThread()
before using PyLucene APIs (see README files about this). The PythonThread
class is gone.
This should make it easier to use with other python sources. BTW, I
understand jython has its sights on python 2.4.
Jython is a Python VM built on top of Java. PyLucene with JCC is a way to use
Lucene Java classes from CPython, seemlessly. Very different beasts.
Do think there will be a day when it will be transparent to work with java
classes from python.
With JCC, it's pretty close, as close as I've ever been able to get on CPython
at least :)
Will this bring pylucene to an end?
The goal of jcc is to bring handcoded PyLucene to as much an end as possible.
Writing Python extensions of Java classes requires some manual work (much less
now than before) and extracting all the desired pythonic APIs from jcc
requires a long command-line + some extensions. I don't see PyLucene going
away completely in the near future but I already threw out tens of thousands
of lines of handcoded C++ code in the new PyLucene flavor.
Maybe the jython folks will be keen on your jcc. Many thanks for these
efforts. I am going to try this soon. I am on a mac but reverted to 10.4.9
since upgrading to 10.4.10 did not go well for me.
This should work on 10.4.9 just as well. I was being specific about 10.4.10
because I really haven't tried even building this anywhere else but on my
personal Mac yet. I intend to give this a try on my old Powerbook G4 next,
then Ubuntu, then win2k.
Andi..
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev