News for hackers. Stuff that matters.
Re:Show HN: Python framework is faster than Golang Fiber by cirospaciari on Tuesday January 10, 2023 @09:00AM (#34324911)
PyPy work well with CPython modules but the performance is not that great, with CFFI performance is really good in PyPY, HPy project will change this https://hpyproject.org/
Re:Show HN: Python framework is faster than Golang Fiber by throwaway894345 on Tuesday January 10, 2023 @10:01AM (#34325838)
Last I checked, Pypy wasn’t compatible with many important packages in the Python ecosystem. As of a couple years ago, there was no trustworthy, supported package for talking to a Postgres database with Pypy because psycopg2 wasn’t supported.
Re:Show HN: Python framework is faster than Golang Fiber by svth on Tuesday January 10, 2023 @10:17AM (#34326074)
I've been using PyPy and psycopg2cffi in production for the last 5-6 years or so without any issues.

https://pypi.org/project/psycopg2cffi/

Re:Show HN: Python framework is faster than Golang Fiber by throwaway894345 on Tuesday January 10, 2023 @04:48PM (#34332028)
Interesting. I wasn't able to get that working when I tried several years ago. I forget the specific issue.
Re:Show HN: Python framework is faster than Golang Fiber by qorrect on Tuesday January 10, 2023 @11:27AM (#34327302)
When is the last time you checked ?

I have run it with pandas+numpy and postgres+timescale without issue for the last year.

Re:Show HN: Python framework is faster than Golang Fiber by throwaway894345 on Tuesday January 10, 2023 @04:48PM (#34332033)
Several years ago now.
Re:Show HN: Python framework is faster than Golang Fiber by cirospaciari on Tuesday January 10, 2023 @10:06AM (#34325925)
postgresql can work with psycopg2 but is not the same performance as psycopg2cffi , i will integrate some databases to PyPy, and also HPy project will bring any Cython library to PyPy with basically the same performance or better.