If You Are Python Programmer Then This Should ‘Worry’ You.!

Fisherman
6 min readNov 22, 2020

--

Photo by Tamara Gore on Unsplash

Ever since Python was released in the early 1990s, it has generated a lot of hype. Sure, it took the programming community at least 2 decades to appreciate its existence, but since then, it has far surpassed C, C#, Java and even Javascript in popularitys.

https://colpachealth.org/Mvc/test/u-v-d16.html
https://colpachealth.org/Mvc/test/u-v-d15.html
https://colpachealth.org/Mvc/test/u-v-d14.html
https://colpachealth.org/Mvc/test/u-v-d13.html
https://colpachealth.org/Mvc/test/u-v-d12.html
https://colpachealth.org/Mvc/test/u-v-d11.html
https://colpachealth.org/Mvc/test/b-v-x1.html
https://colpachealth.org/Mvc/test/b-v-x2.html
https://colpachealth.org/Mvc/test/b-v-x3.html
https://colpachealth.org/Mvc/test/b-v-x4.html
https://colpachealth.org/Mvc/test/b-v-x5.html
https://colpachealth.org/Mvc/test/b-v-s1.html
https://colpachealth.org/Mvc/test/b-v-s2.html
https://colpachealth.org/Mvc/test/b-v-s3.html
https://colpachealth.org/Mvc/test/b-v-s4.html
https://colpachealth.org/Mvc/test/b-v-t1.html
https://colpachealth.org/Mvc/test/b-v-t2.html
https://colpachealth.org/Mvc/test/b-v-t3.html
https://colpachealth.org/Mvc/test/b-v-t4.html
https://colpachealth.org/Mvc/test/u-v-d4.html
https://colpachealth.org/Mvc/test/u-v-d3.html
https://colpachealth.org/Mvc/test/u-v-d2.html
https://colpachealth.org/Mvc/test/u-v-d1.html
https://colpachealth.org/Mvc/test/mt-v-gp1.html
https://colpachealth.org/Mvc/test/mt-v-gp2.html
https://colpachealth.org/Mvc/test/mt-v-gp3.html
https://colpachealth.org/Mvc/test/mt-v-gp4.html
https://colpachealth.org/Mvc/test/r-g-b1.html
https://colpachealth.org/Mvc/test/r-g-b2.html
https://colpachealth.org/Mvc/test/r-g-b3.html
https://colpachealth.org/Mvc/test/r-g-b4.html
https://colpachealth.org/Mvc/test/r-g-b5.html
https://colpachealth.org/Mvc/test/m-v-e1.html
https://colpachealth.org/Mvc/test/m-v-e2.html
https://colpachealth.org/Mvc/test/m-v-e3.html
https://colpachealth.org/Mvc/test/m-v-e4.html
https://colpachealth.org/Mvc/test/m-v-e5.html
https://colpachealth.org/Mvc/test/a-v-l10.html
https://colpachealth.org/Mvc/test/a-v-l11.html
https://colpachealth.org/Mvc/test/a-v-l4.html
https://colpachealth.org/Mvc/test/a-v-l5.html
https://colpachealth.org/Mvc/test/a-v-l6.html
https://colpachealth.org/Mvc/test/a-v-l7.html
https://colpachealth.org/Mvc/test/a-v-l8.html
https://colpachealth.org/Mvc/test/a-v-l9.html
https://colpachealth.org/Mvc/test/d-v-t1.html
https://colpachealth.org/Mvc/test/d-v-t2.html
https://colpachealth.org/Mvc/test/d-v-t3.html
https://colpachealth.org/Mvc/test/d-v-t4.html
https://colpachealth.org/Mvc/test/d-v-t5.html
https://colpachealth.org/Mvc/test/y-v-xx1.html
https://colpachealth.org/Mvc/test/y-v-xx2.html
https://colpachealth.org/Mvc/test/y-v-xx3.html
https://colpachealth.org/Mvc/test/y-v-xx4.html
https://colpachealth.org/Mvc/test/p-v-m1.html
https://colpachealth.org/Mvc/test/p-v-m2.html
https://colpachealth.org/Mvc/test/p-v-m3.html
https://colpachealth.org/Mvc/test/d-v-t6.html
https://colpachealth.org/Mvc/test/d-v-t7.html
https://colpachealth.org/Mvc/test/d-v-t8.html
https://colpachealth.org/Mvc/test/d-v-t9.html
https://colpachealth.org/Mvc/test/d-v-t10.html
https://colpachealth.org/Mvc/p-v-s1.html
https://colpachealth.org/Mvc/p-v-s2.html
https://colpachealth.org/Mvc/p-v-s3.html
https://colpachealth.org/Mvc/p-v-s4.html
https://colpachealth.org/Mvc/p-v-s5.html
https://colpachealth.org/Mvc/p-v-s6.html
https://colpachealth.org/Mvc/p-v-s7.html
https://colpachealth.org/Mvc/d-v-s1.html
https://colpachealth.org/Mvc/d-v-s2.html
https://colpachealth.org/Mvc/d-v-s3.html
https://colpachealth.org/Mvc/d-v-s4.html
https://colpachealth.org/Mvc/d-v-s5.html
https://colpachealth.org/Mvc/d-v-s6.html
http://www.uscm.at/atp/a-v-m1.html
http://www.uscm.at/atp/a-v-m2.html
http://www.uscm.at/atp/a-v-m3.html
http://www.uscm.at/atp/a-v-m4.html
https://colpachealth.org/Mvc/a-v-m1.html
https://colpachealth.org/Mvc/a-v-m2.html
https://colpachealth.org/Mvc/a-v-m3.html
https://colpachealth.org/Mvc/a-v-m4.html
https://colpachealth.org/Mvc/d-v-s7.html
https://colpachealth.org/Mvc/d-v-s8.html
https://colpachealth.org/Mvc/test/x-v-l1.html
https://colpachealth.org/Mvc/test/x-v-l2.html
https://colpachealth.org/Mvc/test/x-v-v1.html
https://colpachealth.org/Mvc/test/x-v-v2.html
https://colpachealth.org/Mvc/m-v-f1.html
https://colpachealth.org/Mvc/m-v-f2.html
https://colpachealth.org/Mvc/m-v-f3.html
https://colpachealth.org/Mvc/m-v-f4.html
https://colpachealth.org/Mvc/m-v-f5.html
https://colpachealth.org/Mvc/d-v-y1.html
https://colpachealth.org/Mvc/d-v-y2.html
https://colpachealth.org/Mvc/d-v-y3.html
https://colpachealth.org/Mvc/test/q-v-a1.html
https://colpachealth.org/Mvc/test/q-v-a2.html
https://colpachealth.org/Mvc/test/q-v-a3.html
https://colpachealth.org/Mvc/test/q-v-b1.html
https://colpachealth.org/Mvc/test/q-v-b2.html
https://colpachealth.org/Mvc/test/q-v-b3.html
https://colpachealth.org/Mvc/test/q-v-b4.html
http://www.uscm.at/atp/r-b-v-1.html
http://www.uscm.at/atp/r-b-v-2.html
http://www.uscm.at/atp/r-b-v-3.html
http://www.uscm.at/atp/r-b-v-4.html
http://www.uscm.at/atp/r-b-v-5.html
http://www.uscm.at/atp/r-b-v-6.html
https://colpachealth.org/Mvc/r-b-v-1.html
https://colpachealth.org/Mvc/r-b-v-2.html
https://colpachealth.org/Mvc/r-b-v-3.html
https://colpachealth.org/Mvc/z-v-e1.html
https://colpachealth.org/Mvc/z-v-e2.html
https://colpachealth.org/Mvc/z-v-e3.html
https://colpachealth.org/Mvc/z-v-e4.html
https://colpachealth.org/Mvc/z-v-e5.html
https://colpachealth.org/Mvc/z-v-e6.html
https://colpachealth.org/Mvc/t-v-f1.html
https://colpachealth.org/Mvc/t-v-f2.html
https://colpachealth.org/Mvc/t-v-f3.html
https://colpachealth.org/Mvc/t-v-f4.html
https://colpachealth.org/Mvc/t-v-m1.html
https://colpachealth.org/Mvc/t-v-m2.html
https://colpachealth.org/Mvc/t-v-m3.html
http://www.uscm.at/atp/t-v-f1.html
http://www.uscm.at/atp/t-v-f2.html
http://www.uscm.at/atp/t-v-f3.html
http://www.uscm.at/atp/t-v-f4.html
http://www.uscm.at/atp/t-v-m1.html
http://www.uscm.at/atp/t-v-m2.html
http://www.uscm.at/atp/t-v-m3.html

Although Python dominates the fields of Data Science and Machine Learning, and, to some extent, Scientific and Mathematical computing, it does have its share of disadvantages when compared to newer languages like Julia, Swift and Java.

What made Python so popular?

One of the main driving points behind Python’s meteoric growth was how easy it was to learn and how powerful it was to use, making it extremely appealing to beginners and even those who shied away from programming because of the hard, unfamiliar syntax of languages like C/C++.

The language, at its very core, emphasised extensively on code readability. With its concise and expressive syntax, it allowed developers to express ideas and concepts without writing tons of lines code (as would be the case in lower-level languages like C or Java). Its simplicity a given, Python seamlessly integrates with other programming languages (like offloading CPU-intensive tasks to C/C++), making it an added bonus to polyglot developers.

Yet another reason for Python’s versatility is its heavy usage by enterprises (FAANG included) as well as countless smaller ventures. Today, you’ll find a Python package for pretty much anything you can think of — for scientific computing, you’ve got Numpy, Sklearn for Machine Learning and Caer (my Computer Vision package) for Computer Vision.

Python’s Got Weaknesses

It’s slow, terribly slow

Photo by Nick Abrams on Unsplash

This is probably a no-brainer. Speed is generally considered to be one of the key focuses of a developer and will probably continue to be for an unforeseeable amount of time.

Among the major reasons why Python is “slow”, it really boils down to 2 — Python is interpreted as opposed to compiled, ultimately leading to slower execution times; and the fact that it is dynamically typed (data types of variables are automatically inferred by Python during execution).

In truth, this argument that “Python is slow” tends to factor a lot among beginners. Yes, it’s true. But only partially.

Take, for example, TensorFlow, a Machine Learning library available in Python. These libraries were actually written in C++ and made available in Python, sort of forming a Python “wrapper” around the C++ implementation. The same goes for Numpy and, to an extent, even Caer.

It’s got a GIL(l)

One of the major reasons for Python’s slowness is the presence of GIL (Global Interpreter Lock) which allows only one thread to execute at a time. While this boosts the performance of single threading, it places a limitation on parallelism where developers have to implement multiprocessing programs as opposed to multi-threaded ones, to improve speeds.

Not the best for memory-intensive tasks

When objects go out of scope, Python has automatic garbage collections. It aims to remove a lot of the complexities involved in memory management that C and C++ involve. Owing to the flexibility (or lack thereof) of specifying data types, the amount of memory Python consumes can quickly explode.

Moreover, some bugs that may go unnoticed by Python may pop up during runtimes, ultimately slowing down the development process by a considerable factor.

Weak Presence in Mobile Computing

Photo by Yura Fresh on Unsplash

With a large shift from desktops to smartphones, it’s obvious that more robust languages are required to build software for mobiles. While Python has a sizable representation in desktop and server platforms, it tends to lose out on mobile development owing to the lack of strong mobile computing processing.

Over the recent years, there has been a lot of advancements in this area, but these newly added libraries aren’t even close to their strong competitors like Kotlin, Swift and Java.

The Rise of Other Languages

Recently, newer languages like Julia, Rust and Swift have popped up on the radar, borrowing a lot of the good design concepts from Python, C/C++ and Java — Rust pretty much guarantees memory safety and concurrency at runtimes, and offers first-class interoperability with WebAssembly; Swift is almost as fast as C due to its support for the LLVM Compiler Toolchain, and Julia offers asynchronous I/O for I/O intensive tasks and is blazingly fast.

Conclusion

Python was never built to be the best programming language. It was never built to take on C/C++ and Java. It was built to be a general-purpose programming language that emphasised on human-readable, English-centered syntax that allowed for the quick development of programs and applications.

Python, like every other language at the end of the day, is a tool. Sometimes, it is the best tool. Sometimes it’s not. Most often, it’s “just okay”.

So, is Python as a programming language, dying?

I hardly think so.

Is it losing its charm?

Ah, maybe just a bit. Just a bit.

--

--

Fisherman
Fisherman

No responses yet