News for hackers. Stuff that matters.
Re:Ruby 4.0.0 Preview2 Released by shevy-java on Tuesday November 18, 2025 @09:12AM (#45966268)
It is 4.0.0 largely because matz created ruby 30 years ago.

matz is no longer the youngest - although he does look young, he is already 60 years old. He also said he has a retirement plan, e. g. avoiding a situation such as when Guido quit (or semi-quit) from Python (due to fatigue/frustration; Guido is not 100% retired but he is also not necessarily the solo-design-dev either, so it is a bit of a semi-retirement). So we won't know how long matz will be the lead designer of ruby - and who will succeed. Which may be reason to worry depending on who it would be. Imagine DHH takes over - man, there would be an insta-exodus of people ...

So while this release does not have a lot of content as such, one thing that is quite big, even though right now it is not, is Ruby::Box. There are many who don't understand it. The thing is ... I understand the use cases for it. I was not involved in any way with regards to its design, mind you - that was mostly a japanese-group in design. But there are objective use cases for it.

Many years ago I recall on IRC (we oldschool people used IRC back in the pre-discord stone age) some C# hacker said he won't use ruby because there are no strong namespaces, that is, someone else can just overwrite things and then nothing works. Although I think he was a drama guy, and any "danger" to be minimal, objectively he has had a point, simply because ruby had no strong concept of isolation here. Lateron there came refinements. Now refinements are strange, because while I think the use case makes sense, the syntax is strange. Syntax is one huge reason why I do not use refinements; but also because I try to avoid putting my own modifications all over the place, largely because I'd have to distribute that too, and also because modifying core classes, while that has a use, should not be done excessively, IMO.

Ruby::Box kind of builds on that and makes the refinement use case more generic (eventually; I am aware that right now this is not the case but you need a transition stage. Syntax-wise Ruby::Box is also weird, so hopefully the syntax gets easier too, but I instantly understood the use cases. Many people don't, in particular about 95% who demanded a name change away from Namespace to something else, really don't understand the underlying use case.)

Now - making isolated per-project changes is not the only use case. For instance, ractors could be simplified if you know that there are separate ruby processes; ruby threads probably too. These I consider secondary benefits though (and yes, that may be far in the future, who knows; when python removed its GIL though, it put ruby under pressure, aka shape-up-or-go-extinct mode).

One thing I would complain a lot is that on rubygems.org, before RubyCentral went shopify-controlled-only, that people would occupy namespaces. Such as Configuration. I wanted to have a project called Configuration so I can do Configuration.new or Configuration.parse_this_file(). This is possible of course, but when it comes to distributing code, who owns that toplevel namespace? Normally the one who occupied the name first on rubygems.org, sort of. Via Ruby::Box, it should be possible to have ownerships. This could be strong or weak; weak as a hint, aka "psych is owned by ruby core ownershiper but it can be modified", or strong aka making it immutable. Both have use cases. Could also be both. Having this more organized would be really convenient for developers. I would not have to worry whether anyone else uses that "namespace". And of course we need a way to query this state from within ruby code too aka, say immutable:

"If psych is owned by ruby-core, continue to use it."

psych (for yaml) is not a good example here but you can think of any other namespace where you may only want to consider some gems/projects but not others. (Again, the use case may differ between strong and weak ownership, but the thing is that this is an improvement over the prior status quo.)

There are several additional use cases to be had but I'll stop here. What I find strange is that many people who complain, don't refer to the old issues and discussions. We had discussions before refinements were added. About 80% of the people involved, DON'T EVEN KNOW THESE OLD DISCUSSIONS. Either they have dementia, or these are young ruby users who never were active in the old days. It's very strange.

I am not saying all is perfect about Ruby::Box, in particular syntax-wise I'd like improvements, but many people don't seem to understand the use cases, and this is very very strange.

Re:Ruby 4.0.0 Preview2 Released by werdnapk on Tuesday November 18, 2025 @09:34AM (#45966655)
Ruby dev since 2000 and looks like refinements have been available since 2.4. I just used them for the first time this year. Definitely not a go to feature for me, but it was nice the feature was available.
Re:Ruby 4.0.0 Preview2 Released by davidw on Tuesday November 18, 2025 @09:58AM (#45967033)
As a practical matter, I don't think DHH is a Ruby internals geek, particularly, and seems to have other hobbies as well, so I don't think that's likely to even be a thing the community faces.
Re:Ruby 4.0.0 Preview2 Released by dudeinjapan on Tuesday November 18, 2025 @09:19AM (#45966372)
Ruby::Box in its current form seems to radically miss the mark. Any namespace paradigm only has utility if it is widely adopted across the ecosystem. Javascript did this with ES modules 10 years ago--it IS possible--but it takes a ton of buy-in and effort from the community to achieve it.

I just don't think Ruby has this "burning need" to have namespaces/modules/erm... "boxes". So we're likely to end up with sporadic usage of Boxes leading to inconsistent behavior.

Re:Ruby 4.0.0 Preview2 Released by thebigkick on Tuesday November 18, 2025 @09:22AM (#45966420)
Curious, why would DHH trigger a mass exodus?
Re:Ruby 4.0.0 Preview2 Released by dymk on Tuesday November 18, 2025 @11:13AM (#45968157)
Ignoring DHH's politics (which are enough to make me look for alternatives), he makes breaking technical decisions to tooling with little to no community involvement. E.g., https://github.com/hotwired/turbo/pull/971

He makes it difficult to trust that, were he in charge of Ruby, he wouldn't just take the reigns and stubbornly do whatever he thinks is technically right for "aesthetics" at the cost of all else.

Re:Ruby 4.0.0 Preview2 Released by BuckRogers on Wednesday November 19, 2025 @12:39PM (#45982341)
I just looked up his political views. Because I never cared about them before, to say the least. He's right wing in general which for half of us, probably the majority at this point but we're just less vocal about it, is a good thing. I generally don't just outright disassociate from people with opposing political views to mine though as you suggested there. But I have seen that and it's most often a behavior I see on the left. For whatever reason. Perhaps intolerance of diversity of thought.
Re:Ruby 4.0.0 Preview2 Released by dymk on Wednesday November 19, 2025 @12:52PM (#45982519)
He's not just right wing. He's an outspoken racist. I hope that's not half of us, but just more vocal. What you call intolerance of opinion is also known as the paradox of tolerance.

https://jakelazaroff.com/words/dhh-is-way-worse-than-i-thoug...

Can you read through that and still tell me that you want to see DHH be a part of the community?

Re:Ruby 4.0.0 Preview2 Released by BuckRogers on Wednesday November 19, 2025 @02:38PM (#45984055)
I appreciate you sharing that article—I've read it, and while it makes some strong accusations, I think it fundamentally misrepresents DHH's points and slaps on the "racist" label way too liberally, which is a common tactic to shut down uncomfortable discussions about immigration and cultural preservation. From my perspective, DHH isn't pushing racism; he's voicing legitimate concerns about rapid demographic shifts and their impact on national identity, which many on the right (myself included) see as a rational response to policies that prioritize mass immigration over assimilation.

First off, calling out the decline in "native Brits" isn't code for "white supremacy"—it's about maintaining the cultural and historical fabric of a nation. London has changed dramatically, and if Copenhagen swapped out two-thirds of its Danes for people from vastly different backgrounds without proper integration, it'd feel alien too. That's not hating on diversity; it's acknowledging that unchecked immigration can erode social cohesion, increase crime (like those grooming gangs he mentions, which were real scandals swept under the rug for fear of "racism" accusations), and strain resources. Data backs this up: the UK has seen spikes in street thefts and integration failures, as even left-leaning figures like the Danish PM admit. Framing this as "demographic replacement" isn't a conspiracy—it's observable reality when birth rates plummet and borders are porous.

As for Tommy Robinson's march, sure, some speakers went overboard, but dismissing the whole thing as "far-right extremism" ignores the thousands of ordinary Brits there waving flags out of patriotism, not hate. They're frustrated with elites who label any pushback against radical Islam or failed multiculturalism as bigotry. DHH calling it "heartwarming" highlights national pride, not endorsement of every wild statement. We've seen this playbook before: smear anyone questioning the status quo as a Nazi to avoid debating the merits.

On the paradox of tolerance—yeah, Popper's idea is that we shouldn't tolerate the intolerant if they threaten open society. But who's really intolerant here? DHH isn't calling for violence or suppression; he's blogging his opinions. The article's author, on the other hand, wants to exile him from the tech community over thought crimes. That's the real danger: canceling people for wrongthink, which chills free speech and innovation. Tech thrives on diverse ideas, not echo chambers.

Absolutely I want DHH in the community. He's the guy who gave us Ruby on Rails, revolutionizing web development and empowering countless creators. His politics don't diminish that legacy, and separating the art from the artist (or coder from the commentator) is how we avoid purity spirals. If we start gatekeeping based on views, half the industry—including plenty of left-leaning folks with their own controversial takes—would be out. Let's debate ideas vigorously, but not purge over them. Tech should be apolitical, not contain ideological litmus tests. But this is my opinion, which I think the majority of the population would likely align with.

Re:Ruby 4.0.0 Preview2 Released by brigandish on Tuesday November 18, 2025 @09:39AM (#45966734)
The Ruby "community" has long been dogged by politics and culture war stuff. This comment[0] on a flagged submission has lots of links for getting up to speed.

Maybe they're right, there would be an exodus, I just wonder if other languages' communities will want the trouble. The Japanese Rubyists don't care for a second, a nice by-product of Japanese insularity. Ruby would continue in Japan just fine without westerners, don't worry.

[0] https://news.ycombinator.com/item?id=45379652

Re:Ruby 4.0.0 Preview2 Released by throwaway48921 on Tuesday November 18, 2025 @09:36AM (#45966697)
I'd much prefer Jeremy Evans[0] taking over rather than DHH. Jeremy is a Ruby core committer (and much more pleasant person), unlike DHH.

[0] - https://github.com/jeremyevans

Re:Ruby 4.0.0 Preview2 Released by brigandish on Tuesday November 18, 2025 @09:45AM (#45966835)
Anyone who won't discriminate against others for their politics would be an improvement, because that's not what's been happening in many core projects.
Re:Ruby 4.0.0 Preview2 Released by throwaway48921 on Tuesday November 18, 2025 @09:51AM (#45966939)
I am not suggesting Jeremy Evans simply because of politics. I think he's very underrated in the community and the work he does is incredible. Having interacted with him a number of times, he's been really helpful and pleasant. I think those qualities make him a good candidate.

Fun fact: Jeremy won the Ruby Prize 2019: https://rubyprize.jp/19_iv-nominees01-2-en.html

Re:Ruby 4.0.0 Preview2 Released by brigandish on Tuesday November 18, 2025 @09:59AM (#45967055)
I agree. He has scolded me before though, for submitting code he didn't like the look of. Felt a tad harsh at the time, that's the kind of thing that puts people off contributing. However, he's a better programmer than me so if he didn't like it he's probably right. Could improve his bedside manner a bit though. I'm sure others have said that about me too, perhaps I'm a hypocrite.

Regardless of that, anyone who doesn't discriminate against others for their politics would be an improvement.

Edit: a improvement on the other westerners in the core team who might be touted as the next benevolent dictator, as I doubt that benevolence would maintain.

Re:Ruby 4.0.0 Preview2 Released by throwaway48921 on Tuesday November 18, 2025 @10:21AM (#45967406)
> I agree. He has scolded me before though, for submitting code he didn't like the look of.

Heh, do you have a link to the PR?

Re:Ruby 4.0.0 Preview2 Released by brigandish on Tuesday November 18, 2025 @08:48PM (#45974926)
Yes, Mr Throwaway, of course I do.

What would you need it for?

Re:Ruby 4.0.0 Preview2 Released by jeltz on Tuesday November 18, 2025 @12:33PM (#45969374)
In every interaction with Evans I have had he has been super nice and welcoming to contributors. Maybe he had a bad day.
Re:Ruby 4.0.0 Preview2 Released by brigandish on Tuesday November 18, 2025 @08:47PM (#45974920)
Of course. He actually completely rewrote the code and still merged it in, so I got what I wanted. We've all had such experiences, I'm sure, but I was making the point that different people can have different experiences - I've had straightforward chats with Evan too. I'm sure people have had super nice and welcoming experiences with DHH too.

Should we not include the negative ones for one person and the positive ones for another?

Re:Ruby 4.0.0 Preview2 Released by jeltz on Wednesday November 19, 2025 @10:50AM (#45981051)
I did not include any negative or positive about DHH since I have never interacted with him. He is unimportant to Ruby compared to Evans other than for historical reasons. Evans is a guy who has done a ton and still does a ton in the Ruby community.
Re:Ruby 4.0.0 Preview2 Released by brigandish on Friday November 21, 2025 @08:22PM (#46011173)
I use Sequel far more than Rails, but their relative importance is entirely different, and I suspect Ruby would be still be a minority language if Rails had not happened. Even if we take into account the numerous other contributions anyone could make, could they make up for or match Rails' impact? Doubtful. Hence, I find your claims a stretch.

If Evans were to purge the politics from contributions to the community, then he would be a fine benevolent dictator, and would manage something Matz has failed with (amongst English speaking contributors, at least). That would probably require purging some of the people (as far as possible), as happened recently. Could he do that?

Re:Ruby 4.0.0 Preview2 Released by throwaway48921 on Tuesday November 18, 2025 @10:49AM (#45967844)
Curious why this suggestion was downvoted to hell.
Re:Ruby 4.0.0 Preview2 Released by jeltz on Tuesday November 18, 2025 @12:30PM (#45969339)
No idea, Jeremy Evans is a really good coder and a nice person. Also a much more influential voice in the Ruby community than DHH.
Re:Ruby 4.0.0 Preview2 Released by igravious on Tuesday November 18, 2025 @01:58PM (#45970426)
I've no idea Jeremy ;-)
Re:Ruby 4.0.0 Preview2 Released by jeltz on Tuesday November 18, 2025 @02:03PM (#45970488)
That is clearly not Jeremy Evans. Maybe a funny joke if that innocent commenter had not been downvoted to hell.
Re:Ruby 4.0.0 Preview2 Released by flykespice on Tuesday November 18, 2025 @09:25AM (#45966464)
Would you keep using a programming language leaded by a racist? I wouldn't
Re:Ruby 4.0.0 Preview2 Released by npteljes on Tuesday November 18, 2025 @09:29AM (#45966536)
If programming is just my hobby, then maybe. But would you, for example, quit your current job and look for another, just to change the programming language? I know I'm not that sort of person.
Re:Ruby 4.0.0 Preview2 Released by chipotle_coyote on Tuesday November 18, 2025 @10:11AM (#45967248)
I think it's not as much "if this guy becomes the lead I'm immediately quitting my Ruby job to return to PHP" as much as "if this guy becomes the lead I'm probably going to return to PHP for my next job."
Re:Ruby 4.0.0 Preview2 Released by npteljes on Tuesday November 18, 2025 @10:44AM (#45967761)
I have my doubts, even for this softer version. These are things where one might feel very strongly in a moment, or even for a longer time, but facing a real life decision, there are so many other factors.

Of course we will never know the outcome of this, it's just my two cents.

Re:Ruby 4.0.0 Preview2 Released by yes1would on Tuesday November 18, 2025 @02:19PM (#45970704)
Yup, I quit Shopify because the CEO and COO are both Nazis, and coincidentally Tobi is good friends with DHH.
Re:Ruby 4.0.0 Preview2 Released by npteljes on Wednesday November 19, 2025 @02:29AM (#45976791)
Commendable action! If feel like it's a different case though. Two points:

1. Working for someone, even through a large company, is a much more directly supportive relationship, than using someone's free project. Especially since the project has a lot of large contributors.

2. A company is interchangeable, a skill is much less so. You can do the same, or very similar thing at the next company, but moving to a different language involves a lot of learning, even though both are programming languages.

For these reasons, if talking about a lot of people, I can see many of them leaving a problematic company, and only some of them changing their primary language. I'm sure there's someone out there throwing away two decades of experience for an ideal, but I don't think it's realistic, especially not for 1 problematic blog entry.

Re:Ruby 4.0.0 Preview2 Released by Jake787 on Friday November 21, 2025 @02:29AM (#46002067)
Sure, if someone does follow your train of thought call him a nazi. I am old enough to know that those who call others nazis, are themselves pathetic fascists and nazis. Like DHH did not want someone talking about politics and gender issues out in the open in this company official forums, call him nazi. He did not support the system shoving down our throat gruesome dancing drag queens in front of children, call him nazi. He called out the madness about the preposterous idea that a man can be a woman and a woman can be a man call him nazi. You are the one who is nazi. All of you. Well, at least he has 3 children, he is millionaire and can live anywhere in the world. What do you do other living a miserable life calling others who are much better than you, nazis?
Re:Ruby 4.0.0 Preview2 Released by dudeinjapan on Tuesday November 18, 2025 @09:34AM (#45966647)
This is exactly why we shouldn't use KKScript either. Plus it has 1-based array indexes.
Re:Ruby 4.0.0 Preview2 Released by jeltz on Tuesday November 18, 2025 @12:29PM (#45969322)
Ruby is not and has never been led by DHH.
Re:Ruby 4.0.0 Preview2 Released by culi on Tuesday November 18, 2025 @04:20PM (#45972258)
A mantra in the Ruby community is "Matz is nice so we are nice". By contrast, DHH is the type of person who would use the hey.com domain[0] to post rants about London being only 1/3rd white, "Pakistani rape gangs", etc. His racist tirades used to be limited to his twitter, but he's shown he's very willing to use business resources to push his racist politics. More discussions here:

- https://lobste.rs/s/fpri94/dhh_problem_2014

- https://old.reddit.com/r/ruby/comments/1no4zu2

[0] https://world.hey.com/dhh/as-i-remember-london-e7d38e64

Re:Ruby 4.0.0 Preview2 Released by ecshafer on Tuesday November 18, 2025 @01:10PM (#45969875)
If Matz ever retires, I hope it is still maintained by Japanese devs, to keep the insanity that is western politics out of it.
Re:Ruby 4.0.0 Preview2 Released by bdcravens on Tuesday November 18, 2025 @02:49PM (#45971111)
While there's certainly drama of technical and personality in many projects, are there any languages that we can see evidence of "insanity of western politics" being present?
Re:Ruby 4.0.0 Preview2 Released by ecshafer on Tuesday November 18, 2025 @03:14PM (#45971418)
There are literally people in this thread saying they wouldnt use ruby if dhh became lead because of his politics. Ruby in the west it seems to come up a lot. Mozilla/JS it came up with brendan eich being fired for his politics. Mostly its against anyone that steps out of line with far left san fransisco politics.
Re:Ruby 4.0.0 Preview2 Released by culi on Tuesday November 18, 2025 @04:10PM (#45972127)
i don't think it's unreasonable to not want someone who has a habit of ranting about "Pakistani rape gangs" on twitter to represent/head a community project. Especially one that has contributions from people all over the world. Even ethics aside it's just bad business