Chuyển đến nội dung chính

Why is Python so popular despite being so slow?


Is Python really slow?

Yes, it is.

If so, why is it so popular?

Because it doesn't matter most of the time.

Python makes you (the programmer) much more productive. Software performance is overrated - programmer performance tends to be more important nowadays.

Have a look at the most popular Python projects - they are not really performance-critical. Even if they are, you can write the critical parts of them in C/C++ and all that remains in Python!

I'll end this post with a quote from Don Knuth - probably the greatest computer scientist alive:
"Programmers waste enormous amounts of time thinking about, or worrying  about, the speed of noncritical parts of their programs, and these attempts at efficiency actually have a strong negative impact when  debugging and maintenance are considered. We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil.


Nhận xét

Bài đăng phổ biến từ blog này

How to not feel sleepy? 02 easy ways

Being a research student at very first step, I have to read a lot. Those of academic and difficult material readings caused me sleepy all afternoons (I still work well and effectively in the mornings and evenings). Besides, I want to train myself that do not indulge myself by taking a cat or long nap in day, so I tried hard to figure out the ways to not let myself fall sleep during in day (9am-5pm). The following are the useful information, which I have searched while I could not focus on reading due to sleepy. __________ Feeling sleepy is an ailment that plagues many people regardless of circumstances. Chronic lethargy and an inability to focus can make everyday activities time-consuming and difficult to enjoy. Rather than suffering with your feelings of drowsiness during the day, take action to improve your mental clarity and concentration. Method 1: Making Lifestyle Changes 1. Drink more water. A classic fix-me-up for most ailments, drinking water regularly throughout y...

Advanced Soil Mechanic – 1.Generall

Advanced Soil Mechanic – 1.Generall 1.     Soil aggregate. Plasticity & classification: Tính nguyên vẹn của đất. Độ dẻo. Phân loại đất 2.     Stresses & Strains – Elastic Equilibrium: Ứng suất và biến dạng – Phương trình đàn hồi 3.     Stresses & Displacements in a soil mass Ứng suất và chuyển vị   trong khối đất 4.     Pore water pressure due to undrained loading Áp lực nước lỗ rỗng do tải trọng không thoát nước. 5.     Permeability & seepage Tính thấm 6.     Consolidation Sự cố kết 7.     Shear strength of soils Cường độ (cắt) của đất 8.     Settlement of shallow foundation Độ lún của móng nông