News for hackers. Stuff that matters.
Re:Ruby in Twenty Minutes (2006) by chalupa-mankey on Saturday February 09, 2019 @08:44PM (#19125910)
Ruby is a little faster than Python in most situations these days, to nitpick.
Re:Ruby in Twenty Minutes (2006) by spricket on Sunday February 10, 2019 @01:13AM (#19126587)
No definitely not. Reply with a link to any benchmark from the last couple years and I'll believe you
Re:Ruby in Twenty Minutes (2006) by pmontra on Sunday February 10, 2019 @04:53AM (#19127108)
From 2018 https://benchmarksgame-team.pages.debian.net/benchmarksgame/...

Sometimes Ruby's faster, sometimes Python is.

However all those benchmarks are probably useless. They are not testing how the language is used or should be. The trick with all the scripting languages is to make the CPU spend most of its time in the C code inside the standard library or the implementation of the native constructs of the language with as little overhead as possible.

Example: you don't want to do numerical computation using plain Python, you want to use Numpy.

You also want to learn very well all the ways Ruby's standard library can group operations in a single method call saving time compared to naive multi method chains.

Re:Ruby in Twenty Minutes (2006) by TheTruth321 on Sunday February 10, 2019 @06:22AM (#19127365)
Inconvenient.
Re:Ruby in Twenty Minutes (2006) by tny on Sunday February 10, 2019 @01:49AM (#19126663)
https://benchmarksgame-team.pages.debian.net/benchmarksgame/... Ruby is fast in some cases and python in some other cases.
Re:Ruby in Twenty Minutes (2006) by mixmastamyk on Saturday February 09, 2019 @08:47PM (#19125919)
Every new version of Py has speed improvements as well.