Kunal Kumar’s Post

the reason i started programming in python was for it's simplicity, but with maturity, it seems python has some big inherent flaws which is going nowhere soon. the biggest: GIL (global interprator lock) - this limits the actual true parllelism unlike Java or Golang or any other compiled languages for that instance. the fact that no matter how many threads you add, due to locking it's only going to increase overhead for cpu-bound tasks rather reducing it is baffling and complete wastage of resources. if someone is interested towards building high performance systems or atleast interested in dwelling with the idea of building one, Python as a language seems to be bottleneck. and i'm a firm believer of whatever being built these days in the name of AI is merely API calls, that can be replicated using rather high performance programming languages, unless and until things are not dependent on open source ecosystem in case you're dealing with core machine learning and deep learning. one can argue that, oh, GIL nowhere is effecting IO bound tasks, and in case we're building using tensorflow, pytorch or cuda the underlying hood is almost always c++ code that's being executed. but i would argue, that still limits our performant systems, and why have something inferior when you can have something superior. challenges with ecosystem is understandable to be honest, not everything is measured in terms of raw speed, rather business impact as well. i so wish the entire thing can be changed. it's too late for now i assume! cpython3.13 implementation has experimental version with no GIL, but best of luck using it in production, only god knows what bugs it comes with.

To view or add a comment, sign in

Explore content categories