Hacker News new | ask | show | jobs
by stevebmark 1310 days ago
Ruby is well known as the “bad parts of Perl” so there’s a beautiful horror here. It’s also funny that Ruby is the slowest of the dynamic languages, and that Perl is much faster. They created a magnificent mind bending nightmare.
5 comments

I think of Ruby as "The Perl that Python wanted to be"
ruby is basically a shinier cleaner perl with unfortunately castrated OO
I think you misphrased "the bad parts in Ruby are from Perl".
Python is actually slower than Ruby
I assume Python 3.0 ~ Python 3.10 are slower than Ruby.

https://programming-language-benchmarks.vercel.app/python-vs...

Interesting to see these results! I wonder how Ruby 2.x would stack up in this same benchmark.
The benchmarks are meaningless if they can be influenced by coding styles.
Sort of. When I think of "which language is fast", I think of "when using idiomatic style". That, to me, is a good measure of how fast the language is, in general.

Benchmarks on aggressively optimized code are fun and interesting too, because they can tell you the hard lower limits of performance in the language runtime. But most people will never end up optimizing their code so thoroughly, so it's not particularly useful if you're interested in how a real working program will perform.

If this is "well known" then someone should tell Google, because right now it's not corroborating that assertion...
Weird. I often describe Ruby as "the best parts of Perl" to people who aren't familiar with Ruby.