
Hi guys , grats! Long time i haven't use pypy. Question , does pypy support pyo3 now ? There are a lot of rust-python binded libs now and i cannot use them , when i tried last year. I am contribution to development of litestar framework which use rusted python libs , which i coin't get pypy to run with it. Looking forward to use pypy again and we are going to get into tech empower benchmarks . Regards Phyo. On Fri, Jun 16, 2023 at 12:10 PM Matti Picus <matti.picus@gmail.com> wrote:

On 16/6/23 09:50, Phyo Arkar Lwin wrote:
There is support in PyO3 for PyPy. Cryptography uses PyO3 and ships a PyPy wheel. Perhaps a github issue on the relevant project's repo would be a better place to discuss this. I see this litestar issue [0] points to orjson, which led me to this issue in orjson [1], which was closed by adding this to their FAQ [2]: "Will it support PyPy? Probably not." On the other hand, taht was three years ago and the maintainer did express a willingness for other contributors to work on support for PyPy. Do you know what exactly doesn't work and what is the failure? I see there is support in litestar for using alternative json libraries, and truthfully PyPy has a pretty good reader built in, and PyPy works best when it does not have to call out to non-python modules. Matti [0] https://github.com/litestar-org/litestar/issues/851 [1] https://github.com/ijl/orjson/issues/90 [2] https://github.com/ijl/orjson#will-it-support-pypy

I had tried , and it fails at msgspec dependency - which is build using gcc . I had opened a bug in their repo but it is working fine on cpython. https://github.com/jcrist/msgspec/issues/443 On Fri, Jun 16, 2023 at 3:43 PM Phyo Arkar Lwin <phyoakl@hexcode.tech> wrote:

Unfortunately https://github.com/jcrist/msgspec/issues/22 , it dosen't support pypy. On Sat, Jun 17, 2023 at 2:56 PM Phyo Arkar Lwin <phyoakl@hexcode.tech> wrote:

Sorry if it gets a bit spammy in release thread . Making separate thread via https://github.com/jcrist/msgspec/issues/22 megspec author saids : than on CPython. Whether this matters is application dependent.
Due to how PyPy's c-api layer works, performance on PyPy would be worse
Some of the author's claims seem to be outdated. Since information regarding pypy is a bit outdated can you chime in a bit. For example than on CPython. Whether this matters is application dependent. I think that has improved a lot in the past year right?
PyPy does support a subset of the CPython c-api, b
If we know which parts are missing , can those be supported by pypy? Regards, Phyo. On Sat, Jun 17, 2023 at 3:20 PM Phyo Arkar Lwin <phyoakl@hexcode.tech> wrote:

Hi guys , grats! Long time i haven't use pypy. Question , does pypy support pyo3 now ? There are a lot of rust-python binded libs now and i cannot use them , when i tried last year. I am contribution to development of litestar framework which use rusted python libs , which i coin't get pypy to run with it. Looking forward to use pypy again and we are going to get into tech empower benchmarks . Regards Phyo. On Fri, Jun 16, 2023 at 12:10 PM Matti Picus <matti.picus@gmail.com> wrote:

On 16/6/23 09:50, Phyo Arkar Lwin wrote:
There is support in PyO3 for PyPy. Cryptography uses PyO3 and ships a PyPy wheel. Perhaps a github issue on the relevant project's repo would be a better place to discuss this. I see this litestar issue [0] points to orjson, which led me to this issue in orjson [1], which was closed by adding this to their FAQ [2]: "Will it support PyPy? Probably not." On the other hand, taht was three years ago and the maintainer did express a willingness for other contributors to work on support for PyPy. Do you know what exactly doesn't work and what is the failure? I see there is support in litestar for using alternative json libraries, and truthfully PyPy has a pretty good reader built in, and PyPy works best when it does not have to call out to non-python modules. Matti [0] https://github.com/litestar-org/litestar/issues/851 [1] https://github.com/ijl/orjson/issues/90 [2] https://github.com/ijl/orjson#will-it-support-pypy

I had tried , and it fails at msgspec dependency - which is build using gcc . I had opened a bug in their repo but it is working fine on cpython. https://github.com/jcrist/msgspec/issues/443 On Fri, Jun 16, 2023 at 3:43 PM Phyo Arkar Lwin <phyoakl@hexcode.tech> wrote:

Unfortunately https://github.com/jcrist/msgspec/issues/22 , it dosen't support pypy. On Sat, Jun 17, 2023 at 2:56 PM Phyo Arkar Lwin <phyoakl@hexcode.tech> wrote:

Sorry if it gets a bit spammy in release thread . Making separate thread via https://github.com/jcrist/msgspec/issues/22 megspec author saids : than on CPython. Whether this matters is application dependent.
Due to how PyPy's c-api layer works, performance on PyPy would be worse
Some of the author's claims seem to be outdated. Since information regarding pypy is a bit outdated can you chime in a bit. For example than on CPython. Whether this matters is application dependent. I think that has improved a lot in the past year right?
PyPy does support a subset of the CPython c-api, b
If we know which parts are missing , can those be supported by pypy? Regards, Phyo. On Sat, Jun 17, 2023 at 3:20 PM Phyo Arkar Lwin <phyoakl@hexcode.tech> wrote:
participants (2)
-
Matti Picus
-
Phyo Arkar Lwin