General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
k98killer
The Lunduke Journal
comments
Comments by "k98killer" (@k98killer) on "Python is 71x Slower, Uses 75x More Energy, Than C" video.
Last year, I developed a simple genetic algorithm library in pure Python called bluegenes largely as an exercise. I then spent a couple of days translating it to Go and got a 100x increase in performance. I then did some Go-specific memory optimization and got a further 100x increase in performance. It blew my mind.
2
Last comment I'll make is that I previously believed that pure Lua was faster and more efficient than pure Python based upon previous benchmark results. This was unexpected.
1
Interpreter languages (and a few new compiled languages) make development and deployment faster. With C, you have to compile for every ISA you want to run on, and often there are platform-specific issues that take a lot of code to resolve and must be figured out at compile time. With Python, I can use a single code base, and the platform-specific things can be resolved in very few lines of code (really just file locations). Consider also how much hassle it is to develop mobile apps in their native platform languages, then compare that to using Dart and Flutter. It takes a significant amount of additional time to implement things in C than it does in newer languages at the expense of runtime performance, and I think every programmer knows that he/she is making a Faustian bargain. That being said, it would be nice for these newer languages to get some meaningful optimizations.
1