Better HN
topnewbestaskshowjobs
Log inSign up

cirospaciari

169 karma · joined Nov 8, 2022 (4y ago) · 63 submissions

Submissions

comment 3y ago · link · parent

I really like the simplicity and looking at TechEmPower, looks to be very low overhead (Falcon is still lighter), I think is an awesome framework to start into Python, simple and straightforward. Do you know more people who use it in their day-to-day tasks?

https://www.techempower.com/benchmarks/#section=test&runid=d...

comment 3y ago · link · parent

ASGI is a newer spec that uses async for everything (what is not really a great ideia if you is not IO bounded), so you can process more than one request at a time with ASGI if you are IO bounded, but have more overhead (a lot more) than WSGI in non IO bounded work

comment 3y ago · link · parent

Here uvicorn+gunicorn+httptools outperforms nginx-unit with FastAPI and granian is pretty close to uvicorn now

https://www.techempower.com/benchmarks/#section=test&runid=d...

4.

Ask HN: WSGI or ASGI for Python what are you using?

3 points · by cirospaciari · 3y ago · 2 comments

comment 3y ago · link · parent

in the case of socketify is CPython and PyPy running the same code, but both are really fast, in the case of fiber is without prefork and with prefork variants.

6.

Show HN: Python with Rust powers(github.com ↗)

4 points · by cirospaciari · 3y ago · 2 comments

comment 3y ago · link · parent

Exactly

comment 3y ago · link · parent

Thanks for all your support and feedback, if you want to see any new features requests, or have any questions related to the project I will be glad to help you <3

comment 3y ago · link · parent

From uWS docs basically "sends into one single syscall/SSL block", in my understanding corking is basically minimizing to much sends, so it's batching calls.

comment 3y ago · link · parent

WOW that's awesome!

comment 3y ago · link · parent

nodejs do this and actually Go fiber uses prefork to do this too

comment 3y ago · link · parent

Python GIL is the problem for multithreading, but I think I have a solution to not need 8 DB pools, soon o will post about it. But yeah it's a waste

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

<3 thanks thats means a lot, i will focus on positive comments and constructive ideas, and keep working hard to do my best.

comment 3y ago · link · parent

<3 if you need help just open an discussion on github or send me a message on discord https://discord.socketify.dev/

comment 3y ago · link · parent

just wanna see how GraalPython will perform when i finish the HPy version

comment 3y ago · link · parent

Yes you are right!

comment 3y ago · link · parent

you need to pull all git submodules too git submodule update --init --recursive --remote

comment 3y ago · link · parent

thank you.

comment 3y ago · link · parent

one uses pre-fork the other do not use pre-fork

comment 3y ago · link · parent

.so are the pre-built binaries but you can see the native folder code there and also see the projects used in Makefile

comment 3y ago · link · parent

just follow your heart <3 take a breath, just do what you love and makes you happy.

comment 3y ago · link · parent

Python (CPython) is written in C so always will be C, PyPy i think is C too? not sure.

comment 3y ago · link · parent

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/

comment 3y ago · link · parent

I will take a look! pure python will perform great on PyPy!

comment 3y ago · link · parent

For sure have room to improve but is very competitive, i will try to archive the 7 mi inthe future, this is a very young framework, i will work harder!

https://www.techempower.com/benchmarks/#section=test&runid=1...

comment 3y ago · link · parent

I see your comment as positive <3 the whole purpose of this framework is to offer better glue, to Python for Web

comment 3y ago · link · parent

Actually the benchmark is on https://github.com/TechEmpower/FrameworkBenchmarks with is basically this with more headers, but you are right, is not enought, i used TechEmPower because is very popular. I have some issues (new features comming) open to create an better JWT token support, database and much more, i will post these in the future!

comment 3y ago · link · parent

i did not say that Python is faster than Go, i say that this Python Framework outperforms Golang Fiber framework in troughput.

I used https://github.com/TechEmpower/FrameworkBenchmarks and in the future i will write fortunes and other benchmarks with have more things going on!

123