Live data from Hacker News

Ruby 4.0.0

ruby-lang.org

81–90 of 197 posts

Re: Ruby 4.0.0

#81
post #27

Earlier quoted context omitted.

Python is one the most popular programming languages. Ruby fits into a similar category as Python (high level, interpreted scripting language, very dynamic, has a rich ecosystem with tons of existing code). Being faster than Python makes it more attractive to use, or port Python codebases to.

Nobody cares about Ruby outside of RoR Python is one of the Lingua Franca of scientific, data, and most importantly, ai communities Has much bigger community than Ruby Has much, much better tooling story Has much better gradual typing story Isn’t THAT much slower than Ruby, there are far more attractive targets than Ruby if you care about performance

I found scrooge.

Bah, humbug!

Re: Ruby 4.0.0

#82

I'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…

I get the sentiment, pandas, numpy, pytorch

but I still love writing full stack webapp using rails so yeah

thats why I really love pyCall

Re: Ruby 4.0.0

#83

I'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…

This year I also switched from Ruby to Kotlin on my hobby/light commercial backends. I just can't stand the way Ruby is not statically typed, and the resulting insecurity around if everything is actually doing what it should do. Kotlin gives me joy, and performance is actually better (trading memory requirements ofcourse, but that's not a big problem anymore). I still love Ruby, but only use it for simple scripts now…

This has sort of been my issue with Elixir. I've been doing Scala for years but I think Phoenix is really the best web story at the moment for how I want to be building web apps. And while I believe that the benefits of static typing somewhat decrease in the web arena, it's still frustrating to have to manage type relationships in my head.

I'm hopeful that the incoming type system work makes me happier there, though I'd also prefer a nicer editor experience than is currently available.

Re: Ruby 4.0.0

#84
post #19
post #12

It'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?!

For folks who scan code bases based on the front of lines, it makes it easier to grok. Also helps with deleting and inserting lines (similar to leading or trailing commas in lists).

Re: Ruby 4.0.0

#85
Am I the only one who expected something bigger in a major release? With Ruby 3 we had the whole “3x3” story and significant performance improvements. This release feels more like a minor version, something closer to 3.5.

I don’t want to downplay the work done by the maintainers on the contrary, huge thanks to them. But I do feel the version number is a bit misleading.

That said, the work on the ZJIT[1] compiler is massive. It’s serious, professional engineering, and definitely deserves respect.

[1]: https://rubykaigi.org/2025/presentations/maximecb.html

Re: Ruby 4.0.0

#87
post #79

Happy bday ruby! For the usual doomsdaysayers saying "ruby can't X so I left it for Y", when X is typing, RBS is becoming the accepted standard (now that sorbet supports it),and RBS inline notation next to signature/code too (for peeps complaining about separate files); when X is LSP, ruby-lsp is the standard and already supports "go to definition" (its major hole for a long time), and its plugin architecture allows…

Fairly hardcore rubyist here. Ruby-lsp is excellent. But in no way is RBS becoming standard. Maybe it will, I don’t know. But adoption is very, very low as of today. Rbs-inline is just someone’s pet project and has very little activity (though it does appear that the person who wrote it is trying to implement it directly into Rbs now, which would be great)

Personally I can’t see any comment based typing system gaining real traction.

Re: Ruby 4.0.0

#88

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?

I've come to think that adding halfway-typing to languages designed from the start to be dynamic is mostly not worth the bother. It may help a little bit sometimes, but there's always going to be holes. If you really want strong typing, it's better IMO to bite the bullet and move to a language designed for it. Let Ruby be Ruby, ditto Python, Javascript etc. Pick up some JVM, .NET, Rust, Go, etc if you really want strong types.

Re: Ruby 4.0.0

#89
post #27

Earlier quoted context omitted.

Python is one the most popular programming languages. Ruby fits into a similar category as Python (high level, interpreted scripting language, very dynamic, has a rich ecosystem with tons of existing code). Being faster than Python makes it more attractive to use, or port Python codebases to.

Nobody cares about Ruby outside of RoR Python is one of the Lingua Franca of scientific, data, and most importantly, ai communities Has much bigger community than Ruby Has much, much better tooling story Has much better gradual typing story Isn’t THAT much slower than Ruby, there are far more attractive targets than Ruby if you care about performance

> Python is one of the Lingua Franca of scientific, data, and most importantly, ai communities

You mean it's the most used frontend for all the C and C++ libraries that are used for scientific computing, data and AI.

Re: Ruby 4.0.0

#90

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?

_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

This is so goergeous compared to the mess that's out there now.
Post reply on HN