Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Python programmers?

#17
(November 15th, 2020 at 8:35 PM)Thomas Wrote: Python is a great language! Very easy to learn and very powerful. Not the quickest though.

Yep. It is quite slow. One of the slowest languages in existence that isn't web oriented. There are ways to optimize it quite a bit. CPython is the typical way of approaching it, and it takes regular, vanilla python code and compiles to C for near-native performance. I've gotten extremely good speed-up results by using it, and it takes minimal work and can take standard Python programs as well. 

They also suggest PyPy, but it doesn't support Numpy or certain other libraries. It ends up having poor results on most programs, but on the ones that do work, it works quite well.

That being said, Python isn't always slower. It is very commonly used in the AI sector, where tensorflow offloads most of the execution. In these cases, tensorflow was compiled in C and runs at native speed. Programs that depend heavily on these sorts of libraries tend to run very fast because the majority of the code executed is compiled within the libraries. Python pushes these libraries heavily. Numpy and OpenCV, among others are also compiled to C and run a lot of code natively, and most programs actually offload quite a bit of their internal execution in this manner.

Otherwise, nobody is really doing intense algorithms raw and vanilla-style in python directly. One day they will consider optimizing it or putting a JIT in place, but until then, it's slower than a turtle on a icy winter day. Finna

Reply


Messages In This Thread
Python programmers? - by Darth-Apple - March 21st, 2018 at 1:45 PM
RE: Python programmers? - by Gmdykfuiygh66476 - March 21st, 2018 at 3:54 PM
RE: Python programmers? - by SpookyZalost - March 25th, 2018 at 10:30 AM
RE: Python programmers? - by Darth-Apple - March 26th, 2018 at 2:50 AM
RE: Python programmers? - by SpookyZalost - March 28th, 2018 at 5:03 PM
RE: Python programmers? - by Darth-Apple - March 8th, 2020 at 4:49 AM
RE: Python programmers? - by SpookyZalost - March 8th, 2020 at 6:00 AM
RE: Python programmers? - by Darth-Apple - March 8th, 2020 at 6:13 AM
RE: Python programmers? - by SpookyZalost - March 8th, 2020 at 7:38 AM
RE: Python programmers? - by Guardian - November 14th, 2020 at 7:49 PM
RE: Python programmers? - by Darth-Apple - November 14th, 2020 at 9:05 PM
RE: Python programmers? - by Guardian - November 14th, 2020 at 11:01 PM
RE: Python programmers? - by Darth-Apple - November 15th, 2020 at 12:37 AM
RE: Python programmers? - by Guardian - November 15th, 2020 at 12:50 AM
RE: Python programmers? - by SpookyZalost - November 15th, 2020 at 8:02 PM
RE: Python programmers? - by Thomas - November 15th, 2020 at 8:35 PM
RE: Python programmers? - by Darth-Apple - November 15th, 2020 at 8:55 PM
RE: Python programmers? - by SpookyZalost - November 16th, 2020 at 5:38 AM
RE: Python programmers? - by tc4me - November 16th, 2020 at 5:54 AM
RE: Python programmers? - by SpookyZalost - November 16th, 2020 at 5:59 AM
RE: Python programmers? - by tc4me - November 16th, 2020 at 6:02 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Cython - Python at the Speed of C Darth-Apple 0 2,127 April 11th, 2020 at 1:07 PM
Last Post: Darth-Apple
  Recursive Sequence of Death [Python] Darth-Apple 7 10,258 April 19th, 2019 at 3:39 PM
Last Post: bestforums



Users browsing this thread: 3 Guest(s)

Dark/Light Theme Selector

Contact Us | Makestation | Return to Top | Lite (Archive) Mode | RSS Syndication 
Proudly powered by MyBB 1.8, © 2002-2024
Forum design by Makestation Team © 2013-2024