3 Feb 2024, 09:10 UTC≈2,470 views7 reactionsread 8 August 2026 An article that worth reading. It’s about comparing Python, Java and Go performance in multi-threaded computations.
The article shows the benchmarks of running Matrix multiplication, QuickSort and Conway’s game of life algorithms. These are the algorithms that take more than O(n) time complexity to run. Multithreading could do a lot for speedup the running process of them.
- Read Article
@OhMyTask
👍4❤1🔥1🆒1
Signed Shahriar Shariati
26 Jan 2024, 20:11 UTC897 views5 reactionsread 8 August 2026 Photo
An optimal system is made of an aware manager and good workers.
🤩5
Signed Shahriar Shariati
26 Jan 2024, 20:11 UTC≈2,430 views7 reactionsread 8 August 2026 Gunicorn with Uvicorn inside
I'm up to reading the Gunicorn and Uvicorn source code and playing with the parameters to see the actual process/thread/coroutine management of those. I will write a detailed blog post about it soon but so far I wanna explain to you why it's recommended to use the Gunicorn web server with Uvicorn worker class.
The Gunicorn provides powerful worker management with lots of customizations.…
👍5🔥2
Signed Shahriar Shariati
24 Jan 2024, 07:34 UTC≈2,160 views12 reactionsread 8 August 2026 See how distributed you are
When it comes to writing apps that use concurrency or parallelism, this question is usually asked: Am I really doing concurrent/parallel?
There are some profiling tools that will help you make a good report of the execution of your app. In Python, personally I use viztracer which is very handy. You just need to run your program like:
viztracer myapp.py
And it will profile the execution o…
👍7🔥3✍1👌1
Signed Shahriar Shariati
17 Nov 2023, 21:46 UTC≈1,000 views3 reactionsread 8 August 2026 ASGI Lifespan
First of all, let’s talk a bit about the WSGI, the core of each modern Pythonic web framework.
Despite the importance of this protocol, it’s really simple. All you need is a callable (function or class) that follows a specific signature. When you run the application using a WSGI-friendly web server like the Gunicorn, for each HTTP request the web server calls your defined callable with the data of tha…
🔥2❤1
Signed Shahriar Shariati
17 Nov 2023, 21:46 UTC671 viewsread 8 August 2026 Photo
The Creation of App
@OhMyTask
Signed Shahriar Shariati
12 Nov 2023, 21:42 UTC847 views10 reactionsread 8 August 2026 Photo
What I mean by the handler of this channel @OhMyTask
😁10
Signed Shahriar Shariati
12 Nov 2023, 20:52 UTC≈1,150 views13 reactionsread 8 August 2026 Suppose you're looking for a "complete enough" course for async-await programming on Python. Who's better than an active contributor of Python to teach you?
Take a look at this amazing ~6 hours course made by Łukasz Langa (Python core developer)
https://youtube.com/playlist?list=PLhNSoGM2ik6SIkVGXWBwerucXjgP1rHmB&si=eyhr590l6I9DlIZi
@OhMyTask
👍13
Signed Shahriar Shariati
3 Nov 2023, 09:47 UTC991 views7 reactionsread 8 August 2026 Decentralized Brain of Nature
What is your first reaction when you see an ant or a group of them? Scream? Get mad? Grap something and try to kill them?
OK. Chill out for one minute. Let's observe. Imagine you see a group of ants (more often) and they're living their life, stealing your tiny pieces of food and going back to their colony.
Have you ever wondered how they're moving in a specific pattern without chaos? …
👍4🔥2❤1
Signed Shahriar Shariati
3 Nov 2023, 09:46 UTC745 views4 reactionsread 8 August 2026 Photo
Let Ants do the job @OhMyTask
👍4
Signed Shahriar Shariati
5 Oct 2023, 08:53 UTC≈1,010 views7 reactionsread 8 August 2026 Are workers jealous of each other?
Assume the point of life of each worker, is the highest amount of assigned tasks. We’re running a distributed processing system. The main process is gonna distribute the incoming tasks to its forked process (workers). How to divide fairly? You know the tasks are indivisible objects. We cannot trim a function and say: Hey worker 1, do up to line 12. Hey worker 2, do the rest.
What …
🔥3👍2🥴1🆒1
Signed Shahriar Shariati
5 Oct 2023, 08:53 UTC758 views6 reactionsread 8 August 2026 Photo
Be careful. Your load balancer might make the workers jealous.
@OhMyTask
😁6
Signed Shahriar Shariati
Showing the 12 most recent of 17 posts we hold for @ohmytask. View and reaction counts are the latest single reading for each post, not a live figure, and a recent post is still accumulating both. A view count marked ≈ was rounded by Telegram before we ever saw it — t.me prints views in full below 1,000 and to three significant figures above, so ≈1,200,000 means somewhere between 1,150,000 and 1,249,999. Unmarked counts are exact. Text is reproduced from the public post preview and truncated for length.