4 ms·
Compared to Rust, Go. The list of improvement for a yearly Ruby version is rather small. Some will argue Rust and Go are relatively new, but there are actually
by ksec 10y ago
Compared to Rust, Go. The list of improvement for a yearly Ruby version is rather small. Some will argue Rust and Go are relatively new, but there are actually LOTS of low level performance improvement done within a year time frame.
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.
- RubyPinch 10y agoJust with the python/ruby comparison 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
- jgalt212 10y ago> 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. 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.
- jonnytran 10y agoWhat do you mean moving to GitHub has been banned? This isn't it? https://github.com/ruby/ruby https://github.com/ruby/ruby
- RubyPinch 10y agoI'm pretty sure that is a mirror https://www.ruby-lang.org/en/community/ruby-core/ https://www.ruby-lang.org/en/community/ruby-core/ suggests that the main repo is a self-hosted SVN
- halostatue 10y agoThere are core contributors who would no longer participate because they refuse to use proprietary systems, even remote ones, and do not even run JavaScript. Matz prefers overall inclusivity to losing the contributors, so a wholesale move to GitHub (instead of RubyMine) is not going to happen.
- riffraff 10y agothere are lots of small improvement in ruby too, they are just not on this release notice. 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 https://github.com/ruby/ruby/blob/v2_4_0/NEWS [1] https://gettalong.org/blog/2016/ruby24-performance-looking-good.html https://gettalong.org/blog/2016/ruby24-performance-looking-g... [2] https://www.python.org/psf/sponsorship/sponsors/ https://www.python.org/psf/sponsorship/sponsors/
- sytse 10y agoI would love to help hosting Ruby on GitLab. If it needs to be 100% OSS we can maintain a GitLab CE instance. I heard that sequential numbering of commits is also on the wishlist.
- goatlover 10y agoRubyists have never been terribly concerned with performance. Ruby isn't a language you use for optimal performance. You use it for other reasons.
- ksec 10y agohttps://github.com/smarr/are-we-fast-yet https://github.com/smarr/are-we-fast-yet 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.
- sply 10y agoThere's "Ruby 3x3" plan to increase performance by 10x - https://blog.heroku.com/ruby-3-by-3 https://blog.heroku.com/ruby-3-by-3 So when the plan will be realized, it would be these 2-10x slower than others.
- ksec 10y agoI see a lot of people misinterpreted 3x3 as 9. Meaning Ruby 3.0 is going to be 9 times faster. ( I am guess that is where your number 10x comes from ) 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.
- musaffa 10y agoPython 2 to Python 3 was a disaster. Matz has made it clear in his speeches that he wont do the same mistake in Ruby. Performance and better memory management will hopefully come in the upcoming 2.5, 2.6 and 3.0 releases. What I want from all those changes is that all my current projects should just work.
- stewbrew 10y agoFunny, I thought it had happened before in the ruby world with the switch from ruby 1.8 to 1.9 and the pythonists simply followed suit.
- jonnytran 10y agoThat's the obvious comparison. But in the Ruby world, 1.8 has long been forgotten. I don't know anyone still using 1.8, and we're all better off. 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.
- mtw 10y agoI don't have any experience in compilers or JIT but developments in this for Ruby would be amazing. I know lots of Ruby devs who have to learn other languages because Ruby is insuitable for machine learning, matrix calculations etc.
- ksec 10y agoThere is actually JRuby, and Truffle + Graal implementation which is VERY fast. The problem is no one is using it. At least not mainstream site. None of the public Ruby Rails site uses JRuby. I dont mean to be rude but Ruby communities, and within the Core team lacks expertise in Compiler / JIT programming.