Ruby is the first language I really like. The core concept of the language is small, just not easy to get, but the change on how to programming is significant. Sadly, Ruby is not the language for the multi-core world, and many advantages of using it is disappearing. Although Ruby is changing, 2.3, 2.4, maybe 3.0, but what's the difference?
Have you used concurrent-ruby? https://github.com/ruby-concurrency/concurrent-ruby
New Features in Ruby 2.4
41–50 of 76 posts
Re: New Features in Ruby 2.4
#42Ruby is the first language I really like. The core concept of the language is small, just not easy to get, but the change on how to programming is significant. Sadly, Ruby is not the language for the multi-core world, and many advantages of using it is disappearing. Although Ruby is changing, 2.3, 2.4, maybe 3.0, but what's the difference?
Re: New Features in Ruby 2.4
#43Ruby is the first language I really like. The core concept of the language is small, just not easy to get, but the change on how to programming is significant. Sadly, Ruby is not the language for the multi-core world, and many advantages of using it is disappearing. Although Ruby is changing, 2.3, 2.4, maybe 3.0, but what's the difference?
Re: New Features in Ruby 2.4
#44Re: New Features in Ruby 2.4
#45Great to see my favorite language evolving! I also use various lisps, Java, Haskell, Typescript, JavaScript, Python, etc., but I am happiest when coding in Ruby. Unfortunately, most of what I do now is machine learning, and Python wrappers for underlying C++ code have by far more support than Ruby. (Ruby does have some great ML projects and libraries though).
Re: New Features in Ruby 2.4
#46These are all great but when are we getting optional typing? If the js ecosystem wasn't a clown operation my language of choice would be typescript instead of ruby.
It's not on agenda and it will never happen. There are so many languages with fine typing, why break a dynamic one by adding stuff to it?
I believe Matz has said that it is on the agenda for Ruby 3.0: that it will have static typing and that it will be optional.
Re: New Features in Ruby 2.4
#47Can anyone shed any light on this, because my first attempts at grok'ing this change have me really blown away.
Re: New Features in Ruby 2.4
#48Why do the old match operators now implicitly set a global variable? I feel like in a year I'm going to be debugging some really weird race conditions because of that change and I can't see any value in it...if I want to use the value of a match operator I'll _always_ save it to a local variable. Can anyone shed any light on this, because my first attempts at grok'ing this change have me really blown away.
Re: New Features in Ruby 2.4
#49Why do the old match operators now implicitly set a global variable? I feel like in a year I'm going to be debugging some really weird race conditions because of that change and I can't see any value in it...if I want to use the value of a match operator I'll _always_ save it to a local variable. Can anyone shed any light on this, because my first attempts at grok'ing this change have me really blown away.
If you have issue with this sort of thing, you should go to Elixir. ;)
Re: New Features in Ruby 2.4
#50This code doesn't make sense. 123.digits # => [3, 2, 1]
So this ordering is least to most significant.