News for hackers. Stuff that matters.

cirospaciari

Re:Emmett looks good, do you know someone that uses it? on Thursday January 12, 2023 @11:27AM (#34356009)
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...

Re:Ask HN: WSGI or ASGI for Python what are you using? on Wednesday January 11, 2023 @12:19PM (#34341124)
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
Re:Show HN: Python with Rust powers on Wednesday January 11, 2023 @08:41AM (#34338279)
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...

Re:Show HN: Python framework is faster than Golang Fiber on Wednesday January 11, 2023 @06:13AM (#34337228)
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.
Re:Show HN: Python framework is faster than Golang Fiber on Wednesday January 11, 2023 @04:26AM (#34336684)
Exactly
Re:Show HN: Python framework is faster than Golang Fiber on Tuesday January 10, 2023 @03:58PM (#34331362)
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
Re:Show HN: Python framework is faster than Golang Fiber on Tuesday January 10, 2023 @12:49PM (#34328630)
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.
Re:Show HN: Python framework is faster than Golang Fiber on Tuesday January 10, 2023 @12:22PM (#34328221)
WOW that's awesome!
Re:Show HN: Python framework is faster than Golang Fiber on Tuesday January 10, 2023 @11:58AM (#34327813)
nodejs do this and actually Go fiber uses prefork to do this too
Re:Show HN: Python framework is faster than Golang Fiber on Tuesday January 10, 2023 @11:46AM (#34327590)
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
Re:Show HN: Python framework is faster than Golang Fiber 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.
Re:Show HN: Python framework is faster than Golang Fiber on Tuesday January 10, 2023 @10:01AM (#34325839)
<3 thanks thats means a lot, i will focus on positive comments and constructive ideas, and keep working hard to do my best.
Re:Show HN: Python framework is faster than Golang Fiber on Tuesday January 10, 2023 @09:45AM (#34325576)
<3 if you need help just open an discussion on github or send me a message on discord https://discord.socketify.dev/
Re:Show HN: Python framework is faster than Golang Fiber on Tuesday January 10, 2023 @09:39AM (#34325486)
just wanna see how GraalPython will perform when i finish the HPy version
Re:Show HN: Python framework is faster than Golang Fiber on Tuesday January 10, 2023 @09:38AM (#34325472)
Yes you are right!
Re:Show HN: Python framework is faster than Golang Fiber on Tuesday January 10, 2023 @09:25AM (#34325256)
you need to pull all git submodules too git submodule update --init --recursive --remote
Re:Show HN: Python framework is faster than Golang Fiber on Tuesday January 10, 2023 @09:09AM (#34325041)
thank you.
Re:Show HN: Python framework is faster than Golang Fiber on Tuesday January 10, 2023 @09:09AM (#34325033)
one uses pre-fork the other do not use pre-fork
Re:Show HN: Python framework is faster than Golang Fiber on Tuesday January 10, 2023 @09:07AM (#34325008)
.so are the pre-built binaries but you can see the native folder code there and also see the projects used in Makefile
Re:Show HN: Python framework is faster than Golang Fiber on Tuesday January 10, 2023 @09:02AM (#34324927)
just follow your heart <3 take a breath, just do what you love and makes you happy.
Re:Show HN: Python framework is faster than Golang Fiber on Tuesday January 10, 2023 @09:01AM (#34324917)
Python (CPython) is written in C so always will be C, PyPy i think is C too? not sure.
Re:Show HN: Python framework is faster than Golang Fiber 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 on Tuesday January 10, 2023 @08:45AM (#34324743)
I will take a look! pure python will perform great on PyPy!
Re:Show HN: Python framework is faster than Golang Fiber on Tuesday January 10, 2023 @08:35AM (#34324621)
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...

Re:Show HN: Python framework is faster than Golang Fiber on Tuesday January 10, 2023 @08:33AM (#34324590)
I see your comment as positive <3 the whole purpose of this framework is to offer better glue, to Python for Web
Re:Show HN: Python framework is faster than Golang Fiber on Tuesday January 10, 2023 @08:14AM (#34324330)
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!
Re:Show HN: Python framework is faster than Golang Fiber on Tuesday January 10, 2023 @07:55AM (#34324099)
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!

Older »