Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average


Why Python Is The Best! filter_list
Author
Message
RE: Why Python Is The Best! #34
(06-04-2019, 01:49 PM)skeeba Wrote:
(06-04-2019, 12:07 AM)Trilly Reign Wrote: It proves that any slowness in your program while using Python is not from Python, and just your bad programming.
The easiest way to disprove this with proof is by using the NumPy Python package, which is used for mathematical computations. It is *exceptionally* popular.

And guess what... The mathematical computing is done in C, which is compiled as a library and used as part of the Python package. If Python _wasn't_ slow, then the package wouldn't require C. Smile If Python's slowness _only_ came from the skills of the programmer, then surely a handful of thousands/tens of thousands/hundreds of thousands of Python developers using NumPy would have transitioned the package away from C... But the spoiler is this: NumPy _is only popular_ due to its efficiency of 1) mathematical computing, and 2) ability to _not_ be slow.

NumPy would never be popular if it was fully implemented in Python. And the NumPy core contributors/original authors know this, and this is why Python uses C, as a result of _Python being slow_.

(06-04-2019, 12:07 AM)Trilly Reign Wrote: But instead of reading and NOT BEING IGNORANT, I bet you read the title amd a few comments, then high holstered that ego of yours. Please step down, lol. I haven't seen such ignorance while saying don't be ignorant.

I actually read the Q/A thread*** (not an article), and I found some points valid and some points invalid. If your crutch is that you think Python is only slow due to the coder's abilities to write _good_ Python, then you have completely glossed over many core computer science fundamentals, and _this_ is where your disconnect is.

I do not have an ego about Python; I actually like the language. I use Python at work, and have made a handful of FOSS projects with it. I enjoy Python, but _it is *extremely* slow_ when compared to other languages. Python _is not slow_ because of the developer, Python is slow because it is uses an interpreted environment with garbage collection and other high-level mechanisms. Yes, Python can be improved _a bit_ (for the love of God, switch to a modern versions and use f-strings), but it can only be improved so much.

Also, if you want to do some research into the Cython language, you'll find something new to chew on (that you may actually find interesting _and_ compelling). Code as you wish, though; the best study is one that uses only a single sample.

as for the first paragraph, that's a stupid argument. It doesn't require C, it was written in C. There's a huge difference between the two. Odds are the library was written for something else and simply adapted to also have python bindings.

Quote:Python is slow because it is uses an interpreted environment with garbage collection and other high-level mechanisms

exactly this. Every programming language ultimately makes its way down to machine code. Languages like C and Go compile it down to machine/asm, optimize that, then assemble it. Languages like python are supported by a large runtime (in machine code) that's pre-programmed to do x when it sees y. This is inherently slower.

Reply





Messages In This Thread
Why Python Is The Best! - by Trilly Reign - 01-07-2019, 12:44 PM
RE: Why Python Is The Best! - by darkninja1980 - 01-31-2019, 05:54 PM
RE: Why Python Is The Best! - by tranquil - 02-01-2019, 06:25 PM
RE: Why Python Is The Best! - by Trilly Reign - 02-01-2019, 08:22 PM
RE: Why Python Is The Best! - by darkninja1980 - 02-02-2019, 12:26 AM
RE: Why Python Is The Best! - by Trilly Reign - 02-02-2019, 01:24 AM
RE: Why Python Is The Best! - by darkninja1980 - 02-02-2019, 04:20 AM
RE: Why Python Is The Best! - by Trilly Reign - 02-02-2019, 04:40 AM
RE: Why Python Is The Best! - by mothered - 02-02-2019, 06:06 AM
RE: Why Python Is The Best! - by mothered - 02-02-2019, 03:33 AM
RE: Why Python Is The Best! - by griimnak - 03-10-2019, 06:16 AM
RE: Why Python Is The Best! - by Trilly Reign - 03-10-2019, 05:15 PM
RE: Why Python Is The Best! - by griimnak - 03-11-2019, 12:42 AM
RE: Why Python Is The Best! - by mothered - 03-11-2019, 03:30 AM
RE: Why Python Is The Best! - by Trilly Reign - 03-11-2019, 03:48 AM
RE: Why Python Is The Best! - by skeeba - 06-03-2019, 02:02 PM
RE: Why Python Is The Best! - by Drako - 06-03-2019, 05:04 PM
RE: Why Python Is The Best! - by skeeba - 06-03-2019, 07:48 PM
RE: Why Python Is The Best! - by Drako - 06-03-2019, 07:58 PM
RE: Why Python Is The Best! - by Trilly Reign - 06-04-2019, 12:07 AM
RE: Why Python Is The Best! - by skeeba - 06-04-2019, 01:49 PM
RE: Why Python Is The Best! - by darkninja1980 - 02-03-2019, 11:38 PM
RE: Why Python Is The Best! - by Vultra - 03-11-2019, 02:58 PM
RE: Why Python Is The Best! - by griimnak - 03-21-2019, 09:22 PM
RE: Why Python Is The Best! - by phyrrus9 - 03-21-2019, 09:42 PM
RE: Why Python Is The Best! - by mothered - 03-22-2019, 03:08 AM
RE: Why Python Is The Best! - by Esoterith - 03-21-2019, 10:25 PM
RE: Why Python Is The Best! - by LeZ1Cbd - 04-03-2019, 10:14 AM
RE: Why Python Is The Best! - by tranquil - 04-08-2019, 05:16 AM
RE: Why Python Is The Best! - by Boudica - 04-08-2019, 07:48 PM
RE: Why Python Is The Best! - by Trilly Reign - 04-08-2019, 08:33 PM
RE: Why Python Is The Best! - by darkninja1980 - 04-08-2019, 08:51 PM
RE: Why Python Is The Best! - by phyrrus9 - 06-04-2019, 12:41 AM
RE: Why Python Is The Best! - by phyrrus9 - 06-04-2019, 09:20 PM
RE: Why Python Is The Best! - by skeeba - 06-04-2019, 10:02 PM
RE: Why Python Is The Best! - by Drako - 06-04-2019, 10:51 PM
RE: Why Python Is The Best! - by skeeba - 06-05-2019, 02:03 PM
RE: Why Python Is The Best! - by Dismas - 06-04-2019, 11:02 PM
RE: Why Python Is The Best! - by kingzlatan - 09-03-2024, 08:38 PM



Users browsing this thread: 1 Guest(s)