logoalt Hacker News

faangguyindiatoday at 9:49 AM7 repliesview on HN

People think Ruby is a slow language, but little do they know Ruby is a slower language than Go. But ruby these days is faster than Python.


Replies

Crestwavetoday at 11:38 AM

> little do they know Ruby is a slower language than Go

Isn't it generally expected for a feature-packed interpreted language to be slower than a minimal compiled language?

show 1 reply
Alifatisktoday at 11:19 AM

But who cares really? I am not using Ruby for HPC. I use it for prototyping, oneliners for ETL and to glue different moving parts in a system or network together. That's it. Its not doing the heavy lifting anyways.

em-beetoday at 7:25 PM

what matters here though is, if it is slower than bash. and that's very unlikely.

dahrkaeltoday at 10:01 AM

when ruby was trendy the 1.9 branch was still cooking so in a lot of people's mind it is veery slow

show 1 reply
type0today at 5:45 PM

Heavy lifting Python libraries are in C and C++

shevy-javatoday at 10:27 AM

The speed argument never convinced me in general, in that whether it is perl, ruby or python, they are all slower than C. So the comparisons really are odd to me.

The "scripting" languages should of course not try to be slow, but people rarely use them for speed-reasons; they use these languages for gains in productivity and ease of writing code, adding features and so forth. That should be the primary focus point.

In the future we may no longer have such a speed penalty anyway.

show 3 replies
IshKebabtoday at 1:58 PM

People think slugs are slow animals... But slugs these days are faster than snails.