5 ms·
C++ It's that easy :)
by fxtentacle 7y ago
C++
It's that easy :)
- donretag 7y agoBasically do not use Ruby
- karmakaze 7y agoHow 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).
- fxtentacle 7y agoYes, Ruby is meant to be easy and magical, but it was never meant to be fast. It's fast enough for most things, but you also wouldn't show up to a drag race with a tuned bicycle.
- jbverschoor 7y agohttps://crystal-lang.org/ https://crystal-lang.org/ almost the same as ruby. Blazing fast.
- deleted 7y ago[deleted]
- sky_rw 7y agoHonestly I thought this article would be one line: "Rewrite everything to something else."