Introduction To Python
Python programming language which was released in the year 1991 by Guido van Rossum a Dutch Programmer from Haarlem, Netherlands.
Guido van Rossum is one of the world's most influential programmers. Van Rossum is the author of the general-purpose programming language Python, which he started working on in 1989, and is now among the most popular languages in use.
Python is an interpreted high-level general-purpose programming language. Python's design philosophy emphasizes code readability with its notable use of significant indentation
Advantages
Python programming language has some advantages and I will only mention few which are:
- Versatile
- Code Readability
- Beginner friendly.
Problems
- Very Slow - Python is not a fast language it is very slow.
Solution
- Threads
The biggest problem I have found with using threads in Python is that processes are unnamed and not manageable. This means that you can create processes to handle loops and arithmetic for you while you are doing other things, but it is hard to call back to those threads and manage what they are doing. Of course, in most cases that will not be necessary, so this is certainly one that can come in handy for the average Python programmer.
- Numba
With JIT compilation, rather than allocating all of this data prior to running the application, we are doing it as the application is running. This reduces the compilation to execution start times, and just like how doing more than one thing at a time when it comes to threading, doing more than one thing at a time when it comes compilation can also significantly speed up the speed of code.
The package that is typically used for this in Python is a package called Numba. Something great about Numba’s implementation is that it is incredibly easy to use! Numba uses a simple decorator to let Python activate JIT on certain functions and classes
Conclusion
In conclusion python has some downsides but also has some libraries that can be built to counter those downsides, the libraries that are built are more than the ones I have mentioned in this articles here are links to some articles that will shed light on the few I mentioned and more
https://towardsdatascience.com/5-easy-ways-to-speed-up-python-963c86535eef
Comments
Post a Comment