![]() |
Why Python Is The Best! - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Coding (https://sinister.ly/Forum-Coding) +--- Forum: Python (https://sinister.ly/Forum-Python) +--- Thread: Why Python Is The Best! (/Thread-Why-Python-Is-The-Best) |
RE: Why Python Is The Best! - Trilly Reign - 06-04-2019 (06-03-2019, 02:02 PM)skeeba Wrote:(02-01-2019, 08:22 PM)Trilly Reign Wrote:(02-01-2019, 06:25 PM)tranquil Wrote: python is good but very slow You say I'm ignorant yet you can't open your mind to accept your wrong about this? I am well aware of all of this. Again, I provided information and an article for people to read. Infact, if you read the article I'm asking someone to disprove it doesn't state that Python isn't slow. It proves that any slowness in your program while using Python is not from Python, and just your bad programming. 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. RE: Why Python Is The Best! - phyrrus9 - 06-04-2019 (06-04-2019, 12:07 AM)Trilly Reign Wrote:(06-03-2019, 02:02 PM)skeeba Wrote:(02-01-2019, 08:22 PM)Trilly Reign Wrote: You obviously don't know how to use Python then. Every Python Programmer that actually knows what he's talking about, would know First of all, comparing ANY scripting language to a programming language will result in the scripting language being substantially slow. When it comes to scripting languages, due to the very large overhead in python's execution, it's also quite a bit slower than other scripting languages like ruby, bash, and perl. So the logic is correct that a scripting language (inherently substantially slow) that's noticeably slower than other scripting languages would be considered extremely slow. Don't start flame wars over your preferred script style, it's not worth it (a good way to get banned) RE: Why Python Is The Best! - skeeba - 06-04-2019 (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. ![]() 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. RE: Why Python Is The Best! - phyrrus9 - 06-04-2019 (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. 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. RE: Why Python Is The Best! - skeeba - 06-04-2019 (06-04-2019, 09:20 PM)phyrrus9 Wrote: 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. I never said NumPy *required* C, but that C was specifically chosen due to its efficiency. Edit: Quote:Odds are the library was written for something else Also, out of curiosity: was the C code for NumPy not specifically written for the Python package? Or was it adopted? Either way, the argument still stands that the choice to use (or keep) C is the right decision. Gotta' love C. RE: Why Python Is The Best! - Drako - 06-04-2019 What is this flame war. This looks like two little countries shitting on each other (@"skeeba" @"Trilly Reign"), and then America trying to step in (@"phyrrus9"). RE: Why Python Is The Best! - Dismas - 06-04-2019 Python is excellent. That said, it is a high-level language and should normally be used as such. Can totally understand why employers would find it valuable. RE: Why Python Is The Best! - skeeba - 06-05-2019 (06-04-2019, 10:51 PM)Drako Wrote: What is this flame war. This looks like two little countries shitting on each other (@"skeeba" @"Trilly Reign"), and then America trying to step in (@"phyrrus9"). I agree with @Oni that Python is excellent. That said, Python _is_ slow. It's _fast enough_ for many tasks, but when compared to resource intensive computation... There's a reason why people still use C, C++, Rust, Golang, Nim, D, Zig. Clinging onto the idea Python is only slow due to a coder's inability to write _proper_ Python code shows a lack of understanding of how computers work. And yeah, hearing that bothers me. RE: Why Python Is The Best! - kingzlatan - 09-03-2024 python is more flexible for data science and ai. everything else java |