
Hi guys! I'am new at pypy development and need help. I want do integration between pypy and jemeter (this project on java: http://jmeter.apache.org/). As i learned on jemeter dev list, i need some pypy-java bindings. It may be some .jar file for example. Where i can get some pypy-java binding (.jar file)? Thanks in advance! -- Best Regards, Andrey Rubik

Hi Andrey There are no java bindings for PyPy just yet. You would need to write your own based on cffi. http://jpype.sourceforge.net/ is one of the examples of how those things can be done, but you would need to use cffi as opposed to CPython C API. If you need a quick solution, you can try compiling jpype against PyPys CPython C API compatibility layer, but it would be at least very slow. Best regards, Maciej Fijalkowski On Wed, Jul 13, 2016 at 9:49 PM, Andrey Rubik <tirnotaure@gmail.com> wrote:

Hi, you could also check pyjnius, which seems more mature than jpype and it is used in real life apps to run e.g. python on android: http://pyjnius.readthedocs.io/en/latest/ I quickly tried to compile pyjnius with pypy (using cpyext) and it seems to work (at least, the tests pass). However, since it uses cpyext I dont' know what are the performance. ciao, Anto On Thu, Jul 14, 2016 at 11:08 AM, Maciej Fijalkowski <fijall@gmail.com> wrote:

Hi guys :) Jmeter already have some python intergration (jython for example). Jmeter - tool for performance tests. So when i start high load tests written in scripting languages i get so much load on jmeter server. That is why I choose PyPy - for much speed from testing server. Sry, but i'am not a developer :( And write own integration solution between java and pypy its too difficult for me :( Can someone do good java - pypy binding (some .jar file) ? -- Best Regards, Andrey Rubik On 07/14/2016 01:06 PM, Antonio Cuni wrote:

Hi Andrey, On 14 July 2016 at 17:08, Andrey Rubik <tirnotaure@gmail.com> wrote:
I think you are missing the point of PyPy: it is not a Java application at all. If you want the best performance from a Java application, you should stick to Jython. (There are some use cases where I can think of a reason for tying PyPy to a Java application, but likely, not yours.)
Can someone do good java - pypy binding (some .jar file) ?
You are unlikely to find anyone on this list who is interested in Java enough to help. A bientôt, Armin.

Hi Andrey There are no java bindings for PyPy just yet. You would need to write your own based on cffi. http://jpype.sourceforge.net/ is one of the examples of how those things can be done, but you would need to use cffi as opposed to CPython C API. If you need a quick solution, you can try compiling jpype against PyPys CPython C API compatibility layer, but it would be at least very slow. Best regards, Maciej Fijalkowski On Wed, Jul 13, 2016 at 9:49 PM, Andrey Rubik <tirnotaure@gmail.com> wrote:

Hi, you could also check pyjnius, which seems more mature than jpype and it is used in real life apps to run e.g. python on android: http://pyjnius.readthedocs.io/en/latest/ I quickly tried to compile pyjnius with pypy (using cpyext) and it seems to work (at least, the tests pass). However, since it uses cpyext I dont' know what are the performance. ciao, Anto On Thu, Jul 14, 2016 at 11:08 AM, Maciej Fijalkowski <fijall@gmail.com> wrote:

Hi guys :) Jmeter already have some python intergration (jython for example). Jmeter - tool for performance tests. So when i start high load tests written in scripting languages i get so much load on jmeter server. That is why I choose PyPy - for much speed from testing server. Sry, but i'am not a developer :( And write own integration solution between java and pypy its too difficult for me :( Can someone do good java - pypy binding (some .jar file) ? -- Best Regards, Andrey Rubik On 07/14/2016 01:06 PM, Antonio Cuni wrote:

Hi Andrey, On 14 July 2016 at 17:08, Andrey Rubik <tirnotaure@gmail.com> wrote:
I think you are missing the point of PyPy: it is not a Java application at all. If you want the best performance from a Java application, you should stick to Jython. (There are some use cases where I can think of a reason for tying PyPy to a Java application, but likely, not yours.)
Can someone do good java - pypy binding (some .jar file) ?
You are unlikely to find anyone on this list who is interested in Java enough to help. A bientôt, Armin.
participants (5)
-
Andrey Rubik
-
Antonio Cuni
-
Armin Rigo
-
Maciej Fijalkowski
-
Phyo Arkar