News for hackers. Stuff that matters.
Re:Ruby 3.2.0 Is from Another Dimension by yla92 on Wednesday January 04, 2023 @05:33AM (#34244070)
> It's slower than Ruby.

Any reference/numbers to back this up ? Just genuinely curious about this.

Re:Ruby 3.2.0 Is from Another Dimension by Mikeb85 on Wednesday January 04, 2023 @05:57AM (#34244199)
Basically any benchmark that uses just the language. Throw some loops and maths in there.

It doesn't really matter though, both languages are used typically for scripting. But just shows it's not really about the "language", it's about the ecosystem.

Re:Ruby 3.2.0 Is from Another Dimension by j_mo on Wednesday January 04, 2023 @06:15AM (#34244298)
In all the language comparisons I've found over the years, Python consistently comes out slightly slower, for example:

https://github.com/kostya/benchmarks

Bearing in mind these are probably not even using YJIT, which makes Ruby considerably faster in some scenarios.

Re:Ruby 3.2.0 Is from Another Dimension by yxhuvud on Wednesday January 04, 2023 @09:13AM (#34245671)
Ruby used to be slower though, during the 1.8.7 times. But that was a long time ago now.
Re:Ruby 3.2.0 Is from Another Dimension by berkut on Wednesday January 04, 2023 @06:21AM (#34244331)
Here's some randomish ones (fibionacci recursive, leibniz pi, amicable numbers, sieve of eratosthenes, class methods) I performed two years ago for my improved (dictionaries, much faster stack operations and extra opcodes for loops) version of Lox (Crafting Interpreters):

https://i.imgur.com/joi2FMc.png