3 ms·
Your first two points don’t seem valid, in my experience. The Ruby 2.0 migration wasn’t that interesting from a compatibility perspective; it certainly wasn’t
by KerrAvon 2y ago
Your first two points don’t seem valid, in my experience.
The Ruby 2.0 migration wasn’t that interesting from a compatibility perspective; it certainly wasn’t anything like Python 2 -> 3.
And Ruby is __not__ slow compared to bash. I don’t where these myths get started, but someone needs to justify the Ruby-is-slow thing with actual data.
- networked 2y ago> I don’t where these myths get started, but someone needs to justify the Ruby-is-slow thing with actual data. As an outside observer of the Ruby world, I have an impression that it was Ruby MRI that was slow. CPU-bound synthetic benchmarks like the much-criticized Benchmarks Game showed Ruby ≤ 1.8 a good deal slower than CPython 2. Here is an illustrative comment from that time: https://news.ycombinator.com/item?id=253310 https://news.ycombinator.com/item?id=253310. People also complained about early Rails, and the perception of Ruby's performance got mixed up with that of Rails. Then YARV came out, and Ruby became several times faster than its MRI former self on different benchmarks (https://en.wikipedia.org/wiki/YARV#Performance https://en.wikipedia.org/wiki/YARV#Performance). With YARV, Ruby gradually caught up to "fast" interpreted languages. Now interpreted Ruby seems as fast as CPython 3 or faster in synthetic benchmarks (for example, https://github.com/kostya/benchmarks/blob/7bf440499e2b1e81fb76c9a4e164dc77cbe90841/README.md#benchb https://github.com/kostya/benchmarks/blob/7bf440499e2b1e81fb...), though still behind the fastest mainstream interpreters like Lua's. Ruby is even faster with YJIT.
- igouy 2y agoruby 3.3.0 vs ruby 1.8.7 https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/ruby-mri.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
- igouy 2y agoAlso https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/ruby-python3.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
- igouy 2y ago> much-criticized "There are only two kinds of languages: the ones people complain about and the ones nobody uses." > showed Ruby ≤ 1.8 a good deal slower than CPython 2 It's taken me a couple of days to remember web.archive.org :( CPython 2.5 vs ruby 1.8.6 (2007-03-13) https://web.archive.org/web/20070219190706/http://shootout.alioth.debian.org/gp4/benchmark.php?test=all&lang=python&lang2=ruby https://web.archive.org/web/20070219190706/http://shootout.a...
- deleted 2y ago[deleted]
- solidsnack9000 2y agoI'm not sure why people keep comparing to Python. Python is not replacing shell either.