HNHacker News
TopNewBestAskShowJobs

cirospaciari

169 karma · joined November 8, 2022

submissionscomments
cirospaciari··on [dead]
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...

cirospaciari··on Ask HN: WSGI or ASGI for Python what are you using?
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
cirospaciari··on Show HN: Python with Rust powers
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...

cirospaciari··on Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
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.
cirospaciari··on Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
Exactly
cirospaciari··on Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
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
cirospaciari··on Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
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.
cirospaciari··on Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
WOW that's awesome!
cirospaciari··on Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
nodejs do this and actually Go fiber uses prefork to do this too
cirospaciari··on Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
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
cirospaciari··on Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
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.
cirospaciari··on Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
<3 thanks thats means a lot, i will focus on positive comments and constructive ideas, and keep working hard to do my best.
cirospaciari··on Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
<3 if you need help just open an discussion on github or send me a message on discord https://discord.socketify.dev/
cirospaciari··on Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
just wanna see how GraalPython will perform when i finish the HPy version
cirospaciari··on Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
Yes you are right!
cirospaciari··on Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
you need to pull all git submodules too git submodule update --init --recursive --remote
cirospaciari··on Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
thank you.
cirospaciari··on Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
one uses pre-fork the other do not use pre-fork
cirospaciari··on Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
.so are the pre-built binaries but you can see the native folder code there and also see the projects used in Makefile
cirospaciari··on Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
just follow your heart <3 take a breath, just do what you love and makes you happy.
cirospaciari··on Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
Python (CPython) is written in C so always will be C, PyPy i think is C too? not sure.
cirospaciari··on Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
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/
cirospaciari··on Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
I will take a look! pure python will perform great on PyPy!
cirospaciari··on Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
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...

cirospaciari··on Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
I see your comment as positive <3 the whole purpose of this framework is to offer better glue, to Python for Web
cirospaciari··on Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
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!
cirospaciari··on Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
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!

cirospaciari··on Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
Actually uWebSockets and uSockets will perform better than this (2x at least in my local tests), I need to do a lot of copying, instancing and crossing Python GIL.

Yeah this test basically shows that Python backed by uWS is crazy fast, but is not an direct comparison to uWS to Go.

This test is just an troughput test, with is very useful to measure raw performance.

More tools like caching tools, a better database client etc is need to construct an complete scenario, and i'm working on it! (Maybe in 1 week or 2 weeks will be done)

https://github.com/TechEmpower/FrameworkBenchmarks

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

cirospaciari··on Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
<3 i will bring it to Ruby and Lua too!
cirospaciari··on Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
that would be an JSON benchmark not right? raw throughput is more useful to test WebServers, but JSON performance is also important, but i think is another benchmark. PyPy do very well in JSON too take a look https://www.techempower.com/benchmarks/#section=test&runid=1...
Page 1 of 2Next →