PEP proposal : Get rid of the version/compiler dependency
I am creting this post so people can leave comments on the proposal I posted. The proposal can be seen at JPype's home page (http://jpype.sourceforge.net/pni.html).
You may know the technical details better than anyone except GVR. Have you contacted him? What you have written sounds great to me. If GVR and the PSF approve, maybe someone would provide talent and/or money to get rid of the version/compiler dependency.
Looks to me a good idea. What I do to avoid this problem, now that ctypes is in Python since 2.5, is to write the code as a simple dll/so library, and interface it with a simple python layer. Not ideal, but probably less version dependent. I think that Python can build on ctypes to approach your idea.
First is that going from python->C->Java is one more conversion layer to go through, will all the headaches and performance issues it can imply.
Second, I have serious concern about going through CTypes for everything. Dynamically building the call most likely has a non-trivial amount of overhead. JPype is no speed demon as is, so adding even more does not seem to me to be the way to go.
3 Comments:
You may know the technical details better than anyone except GVR. Have you contacted him? What you have written sounds great to me. If GVR and the PSF approve, maybe someone would provide talent and/or money to get rid of the version/compiler dependency.
Looks to me a good idea.
What I do to avoid this problem, now that ctypes is in Python since 2.5, is to write the code as a simple dll/so library, and interface it with a simple python layer. Not ideal, but probably less version dependent. I think that Python can build on ctypes to approach your idea.
I have a few problems with this.
First is that going from python->C->Java is one more conversion layer to go through, will all the headaches and performance issues it can imply.
Second, I have serious concern about going through CTypes for everything. Dynamically building the call most likely has a non-trivial amount of overhead. JPype is no speed demon as is, so adding even more does not seem to me to be the way to go.
Post a Comment
<< Home