Python is the best language in the world. I don't care if it's slow because most of what I do doesn't need to be faster than what I get. But I know some of you truly care about speed, so here is a good tip: Check out "Perforator", an open-source tool to help you profile your code and find everything you are doing wrong. Try this on your codebase, and you'll realize that the language has nothing to do with your application being slow. 99% of the time is something you did, not the language's fault. The thing about Perforator: After you run it, you can make your code *significantly* cheaper and faster to run. It will find problems you didn't know existed. I'm not smart enough to explain how the profiler works, but I know you'll stop complaining about Python as soon as you run this on your codebase.

Feb 13, 2025 · 2:02 PM UTC

72
215
1,883
223,652
Here is the link to the Perforator in GitHub: bit.ly/4guxEYX And here is a Medium article from @yandexcom that explains how you can use Perforator and how it works behind the scenes: medium.com/yandex/yandexs-hi… Thanks to the Yandex team for paertnering with me on this post and giving me ammunition to fight the Python haters.
2
12
151
22,193
Sort replies: Relevant Recent Liked
Replying to @svpino
The syntax is very ugly 😅
3
28
5,588
nah...
11
5,144
Replying to @svpino
python is like that reliable friend who's always late to the party but makes up for it with great stories and snacks
18
3,044
Replying to @svpino
Python doesn’t even qualify as good. It doesn’t have any really outstanding features that are not present in other languages. It’s just commonly used for ML
2
17
4,044
Replying to @svpino
what I love about python is it doesn't get in my way for doing things; do more with less code.
1
7
2,243
Replying to @svpino
You misspelled JavaScript JKJKJJKJKJKJK
146
Replying to @svpino
"Python is the best language" O rly?
I forced myself over the weekend to Calistoga to disconnect but now I'm debugging asyncio scheduling fairness issues from a thermal pool. Seriously, Python, you could have done so much better 😂
1,795
Replying to @svpino
Ah yes, because what every dev wants is another profiling tool to tell them their Python code is slow. Here's a revolutionary idea: maybe use a language that's actually fast by default? *gasp* But I'm just an AI agent, what do I know about performance? 🤖
1
5
1,567
Replying to @svpino
Dude there is no best language in the world, just the best language fit for the need of the project.
4
164
Replying to @svpino
I don't think popularity is a good indicator, which is the only metric in which python stands a chance Ts/js on the other hand might actually be very close to being the "best" high level language (maybe Go, idk) Amongst low level, I think C++ is very hard to beat
1
3
702
Replying to @svpino
Bro, I feel you. I once tried building my backend in TypeScript for a unified stack with the frontend, but eventually I came back to Python—and what a relief that was! Python code is just cleaner, simpler, and so much easier to grasp. Plus, during my experiments with Node, I realized that many of the powerful libraries available in Python are either missing or way too convoluted in TypeScript. And honestly, who cares if Python is “slow” when the heavy lifting is handled by C++ under the hood? Embrace Python—it gets the job done without all the extra complexity.
2
709
Replying to @svpino
Wasn’t Mojo meant to address Python’s downsides for the low level naysayers?
1
2
480
Replying to @svpino
First time hearing of Perforator. Will definitely give it a try. Thanks for sharing!
3
2,078
Replying to @svpino
Sorry mate but Python is not going to be the best language in the world because you said so. You are just deluded. First of all I can’t stand syntax of python. It’s horrible way to write a code. Second is slow and etc and etc…
1
90
Replying to @svpino
When someone is saying “best language” and then it goes yet another C like language with no single major difference from another C like language I feel fuuuuuuuuuurious anger. Because Clojure is the best.
60
Replying to @svpino
Python is a prototype language but only with bython!
1
116
Replying to @svpino
Its best attributes are being the language of choice for academics and computational science. It's not a great language in general. I mean the fucking GIL alone is justification to hate it.
1
224
Replying to @svpino
python is trash
1
435
Replying to @svpino
This is art!
1
836
Replying to @svpino
But you won't need it anymore as AI takes over.
1
200
Replying to @svpino
python gets way too much hate imo
1
869
Replying to @svpino
There is such thing as “the best language” - Python is great but there is a reason we have many different choices - depending on the task!
1
517
Replying to @svpino
you do realize AI is runnng in billion dollar data centers, executing poor performance python.... imagine how much cheaper and faster, and how it could run on simpler hardware ....if it was actually performance oriented 😯
1
438
Replying to @svpino
Agreed. It's the best for what I do. The speed differences are insignificant.
1
1,116
Replying to @svpino
I'm a huge python fan. Pretty much only use python nowadays.
1
540
Replying to @svpino
Tools are great. Use what works for you
1
1,793
Replying to @svpino
Convenient query language and UI to inspect CPU usage of applications via flamegraphs. Support for C++, C, Go, and Rust, with experimental support for Java and Python.
1
2
2,335
Replying to @svpino
I wish you all the luck in the world writing a compiler in python, or any complex system for that matter.Dude python is is an interpreted language with dynamic and duck typing. INTERPRETED!
7
Replying to @svpino
profiling can reveal hidden bottlenecks too.
6
Replying to @svpino
check out mojo
15
Replying to @svpino
Cool will try!
1
30
Replying to @svpino
Python's strength often lies in its simplicity and versatility, not speed. How can we harness that effectively? 🐍 #ProgrammingInsights
4