Live data from Hacker News

Ruby 4.0.0

ruby-lang.org

121–130 of 197 posts

Re: Ruby 4.0.0

#121
post #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 m…

eh, it's just a little celebration. Let Matz have it.

Re: Ruby 4.0.0

#123
post #70

Earlier quoted context omitted.

> fastapi, pytorch, langchain, streamlit, and so on and on It's telling that your reasons for switching are all features of Python's ecosystem, not of the language itself. A lot of developers are moving to Python because of its libraries, and in many cases they don't care for the language at all. That's causing a problem for Python: many of these developers who'd rather be using different languages seem to want to mo…

None of what you say about Python is true. It’s not even plausible. The Python language hasn’t even had any significant syntax changes for four versions now; versions 3.11-3.14 are basically all internals optimizations. Why would you write something so clearly false?

Have you worked on different types of Python projects? (Not in different codebases, different types of codebases)

I don’t have any specific complaints about Python syntax because I can force it to get the job done…but homogeneous, it is not.

Re: Ruby 4.0.0

#124
post #112

Earlier quoted context omitted.

> that’s faster In every test I've done, Ruby has been faster than Python. In my experience that's been the case since Ruby 1.9, with the move to YARV.

I don't think anyone says: "I switched from Python to Ruby" (of vice versa) for performance.

True. Choosing between the two languages usually comes down to their library ecosystems - or more bluntly, to Rails on one hand vs NumPy on the other.

Nonetheless, it's still common for people to talk about the relative performance of the two languages, and to claim that Ruby is slower than Python. As someone who's actually tested this, it hasn't been true for 15 years.

Re: Ruby 4.0.0

#125

Earlier quoted context omitted.

IMO programming on windows is just asking for punishment. Unless it’s a Microsoft language, you’re so much better off on Linux or macOS.

That’s cool if you can, but the majority of business desktops/laptops runs Windows. Hard to gain enterprise traction when it’s hard to run tools on your local machine

Just use WSL2 and Docker Desktop. VS Code has DevContainer support so you can standardize on a Docker image for your project.

Re: Ruby 4.0.0

#126
post #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 m…

Ruby doesn’t follow semver.

Re: Ruby 4.0.0

#127

Earlier quoted context omitted.

Literally all those libraries are usable with Ruby. Libtorch, BLAS, LAPACK, Tensorflow, etc...

And with Java, and with Go, and with Rust, and with pretty much any language offering some form of FFI. But they're used with Python, and good luck convincing your interviewer that it should be used with Ruby.

> convincing your interviewer

Some of us don't work for others and just program what we want.

Re: Ruby 4.0.0

#128
For someone wanting to learn Ruby in 2025/26, what are some good up-to-date references, outside of the official documentation? Are there any recently-published books which stand-out?

Re: Ruby 4.0.0

#129
post #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 m…

I think the major version change is more of a celebratory thing with Ruby being 30 years as of 2025.
Post reply on HN