Search posts, tags, users, and pages
Adham Salama
Software Engineer
Python is a dynamically typed, interpreted programming language, unlike statically typed, compiled languages like C++. But it can be! You can write Python code in a statically typed way using type hints, check for type errors using mypy, and you can ...
Plamen Ivanov
DevOps Engineer
I have tested the nuitka with primes of 100000, and the run time of python and compiled code was nearly 2 min difference. I think this would be very helpful working with pandas and numpy.
Great!
I think using pypy would make it even faster!
Adham Salama wow, I tested pypy. The run time was ~3x faster than nuitka 🤯
Plamen Ivanov Yeah, pypy is very fast indeed!
Islam Abdelfattah
1- What is the benefit of compiling code? We already gained the benefit of types validation by mypy without compiling?
2- How can we run the compiled code?
1- We get better performance. 2- It's in the article.
Plamen Ivanov
DevOps Engineer
I have tested the nuitka with primes of 100000, and the run time of python and compiled code was nearly 2 min difference. I think this would be very helpful working with pandas and numpy.