I haven't looked at Ruby for a long time. I've moved away due to the lack of typing. Any degree of typing would be helpful. Does it support typing yet?
Ruby 4.0.0
21–30 of 197 posts
Re: Ruby 4.0.0
#22I'm happy to see v4.0, but 2025 was the year I switched from Ruby to Python after gradually drifting back to it more and more. The tipping point was when I had Claude Code automatically convert one of my Ruby projects to 100% Python - and after that, I just had no Ruby left. I spent over a decade enjoying Ruby and even wrote a book about it. At this point, though, Python has won for me: fastapi, pytorch, langchain, s…
Re: Ruby 4.0.0
#23I haven't looked at Ruby for a long time. I've moved away due to the lack of typing. Any degree of typing would be helpful. Does it support typing yet?
I think most people who cared just moved to typescript.
Re: Ruby 4.0.0
#24It's never Christmas without a new ruby version. The ruby::box thing looks pretty interesting, from a cursory glance you can run two simultaneous versions of something like a feature or rollout much more conveniently. Also being able to do if condition1 && condition2 ... end on multiple lines rather than one - this is pretty nifty too!
I've been doing if condition1 && condition2 ... end for ages and it seems to work find, what am I missing with this new syntax?!
Re: Ruby 4.0.0
#25It's never Christmas without a new ruby version. The ruby::box thing looks pretty interesting, from a cursory glance you can run two simultaneous versions of something like a feature or rollout much more conveniently. Also being able to do if condition1 && condition2 ... end on multiple lines rather than one - this is pretty nifty too!
I've been doing if condition1 && condition2 ... end for ages and it seems to work find, what am I missing with this new syntax?!
Re: Ruby 4.0.0
#26Earlier quoted context omitted.
Unfortunately, the type support is still useless. I abandoned Ruby for the same reason, and it is still relatively slow and eats a lot of memory.
It's literally faster than Python but ok.
Re: Ruby 4.0.0
#27Earlier quoted context omitted.
It's literally faster than Python but ok.
Is being faster than Python considered to be a notable feature?
Re: Ruby 4.0.0
#28Re: Ruby 4.0.0
#29Re: Ruby 4.0.0
#30I haven't looked at Ruby for a long time. I've moved away due to the lack of typing. Any degree of typing would be helpful. Does it support typing yet?
_low_type_ is early days still, but I think this approach is clearly the future of ruby typing. If this gets baked into the language for full “compile” time support and minimal performance impact, it will be amazing: https://github.com/low-rb/low_type
Out of all three I think Shopify have the highest possibilities. There may be additional usefulness interms of ZJIT.