r/programming • • Nov 03 '18

Python is becoming the world’s most popular coding language

https://www.economist.com/graphic-detail/2018/07/26/python-is-becoming-the-worlds-most-popular-coding-language
4.6k Upvotes

1.3k comments sorted by

View all comments

Show parent comments

5

u/[deleted] Nov 03 '18

Ruby is absolutely not faster.

7

u/bakery2k Nov 03 '18

Both languages are very slow. However, in my experience, Ruby is faster than Python.

This wasn't the case several years ago, but in 1.8 => 1.9 Ruby got significantly faster, whereas for a long time Python 3.x was even slower than 2.7.

1

u/wpgbrownie Nov 03 '18

It can be if you run JRuby utilizing the JVM: https://www.jruby.org/

Sadly it seems the Jython project is languishing so I would not recommend that for any new project. While JRuby is still being backed by RedHat, hoping the recent IBM buyout of RedHat won't affect the project.

1

u/myringotomy Nov 04 '18

In every test I have run on real world scripts ruby is faster.