4 ms·
How is it that Python is able to do so many things quickly (even excluding NumPy/SciPy)? Is it more native code libraries? Could Ruby follow this path as effect
by karmakaze 7y ago
How is it that Python is able to do so many things quickly (even excluding NumPy/SciPy)? Is it more native code libraries? Could Ruby follow this path as effectively?
- hobofan 7y agoIn general these days, Python "general purpose" code is about as fast/slow as Ruby. And yes, everything that does heavy lifting has native extensions underneath.
- pdimitar 7y agoMost of the production Python code is not actually Python; the language itself is often a proxy to C libraries with a pleasing syntax.
- mwcampbell 7y agoEric Raymond wrote about this, in relation to his reposurgeon project, here: http://esr.ibiblio.org/?p=8161 http://esr.ibiblio.org/?p=8161 Basically, what he found is that for programs that work with large graphs of objects (as opposed to arrays of numbers, which are the domain of numpy and friends), Python isn't all that fast. I don't know how it compares to Ruby though.
- igouy 7y agoIs Python is able to do so many things quickly? https://benchmarksgame-team.pages.debian.net/benchmarksgame/which-programs-are-fastest.html#chart-fastest-more https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
- goatlover 7y agoAre the Python web frameworks that much faster?
- karmakaze 7y agoI wasn't specifically thinking web frameworks but a number of projects that I found surprising and performant. One example I can recall is Graphite (Whisper, Carbon).