by ksec · 9y ago · 0 comments
Even if you compared to Python 3, the improvement is still rather small.
I know there is always the argument about the lack of resources, and Rust is being backed by Mozilla while Go is being backed by Google. But what about Python?
Exactly how much money is Mozilla spending on Rust, paying how many developers full time? Apple JS Core team is incredibly small, but they manage a B3 JIT compiler with 2 people.
How much money is needed? Matz and Tenderlove both mention they need more resources. Surely we can fund rise? With lots of successful companies using Ruby on Rails. Basecamp, Twitter, Groupon, Github, Gitlab etc. Or Ruby communities lack the compiler / JIT expert, can we hired some?
I am not trying to downplay the Ruby improvement. But I think Ruby needs more contributors. Moving to GitHub to get a higher exposure has been banned due to GitHub not being an opensoure product. But they also dislike hosting on Gitlab for some strange reason.
I kinda feel like the reason for that is more due to the fact that if python users want change in their language, they really need to either construct their own pre-parser and deal with a lot of potential issues, or post a change, hope it becomes a PEP, and hope it gets accepted. There is very little ways other than that
In ruby, you are enabled to fix so much more of the language to your own liking, so there is much less of a need for the main language to change.
I'm not saying that ruby isn't underfunded, just that it doesn't need to grow as fast as python does
very true. lots of metaprogramming facilities in Ruby that just don't exist in Python. To further underscore your point, take a look at how much of Rails code is devoted to making Ruby more usable/consistent and has a only tangential relationship to web development.
https://www.ruby-lang.org/en/community/ruby-core/ suggests that the main repo is a self-hosted SVN
Check the NEWS[0] file for a bunch more.
And Ruby 2.4 is about 10% faster than 2.3.3 according to some non-micro benchmarks[1].
Re funding: AFAIU the problem for Ruby seems to be the paucity of long term sponsorship deals, rather than one-off funding. Python has a bunch of those[2].
The lack of an important "ruby foundation" might be an issue there.
[0] https://github.com/ruby/ruby/blob/v2_4_0/NEWS
[1] https://gettalong.org/blog/2016/ruby24-performance-looking-g...
In python, on the other hand, years later it's still a shit show. The community still hasn't embraced one or the other. Some people still refuse to upgrade to 3.x. Everything is splintered. It's especially hurtful to newcomers.
I dont mean to be rude but Ruby communities, and within the Core team lacks expertise in Compiler / JIT programming.
It is not about optimal performance. Ruby, or specifically MRI here, is anywhere between 20-100x slower. And there are other dynamic languages that is much faster then Ruby. If Ruby is only 2-10x slower no one would complain. But right now it is so far off the chart that is why you see a shrinking usage of Ruby.
So when the plan will be realized, it would be these 2-10x slower than others.
The article clear states that, as well as numerous other sources Ruby 3x3 means Ruby 3.0 will be 3 times faster. The problem is it will be 3 times faster then 2.0, and we already have 30-40% speedup from 2.0. So for Ruby 3.0 is likely only 2.2x faster then Ruby 2.4.
2.2x, in the grand view of things, is still very slow.