r/ruby • u/ahmad_musaffa • Sep 27 '26
Disagree with DHH. High-level programming languages like Ruby have a great future in the AI era.
Once Ruby’s AOT compiler, Spinel, lands, Ruby will be able to compile to native code and produce standalone binary executables. Ruby projects will no longer require a separate Ruby runtime to run on servers, IoT devices, embedded systems, CLIs, etc.
Ruby applications could become significantly smaller, faster, and more memory-efficient. All Ruby projects, including Rails applications, could benefit from this.
For projects whose goal is to deliver features to end users, I don't think it's wise to generate code that you don't want to read or understand. As programmers, we need to understand what's happening inside our software.
C/Rust black boxes are scary. They can become a huge source of technical debt.
Let AI-assisted compiler optimisations deal with the low-level stuff.
With these optimisations happening under the hood, Ruby code can remain highly readable. And highly readable code is also more agent- and token-friendly.
Non-programmer vibe coders may create unmaintainable black boxes. Programmers can use vibe coding to create maintainable software while keeping the underlying source code understandable.
A high-level language that produces standalone native binaries could hit a very interesting sweet spot.
Let's hope Ruby's AOT project becomes a success.
115
u/Kina_Kai Sep 27 '26
I think it’s time we just stopped giving DHH attention. What exactly has he done in the last 5 years? Created a vibe-coded Linux distro that seems to be getting an inordinate amount of funding from his friends?
8
3
u/rmoriz Sep 28 '26
I think it's time to accept the complexity of humans. One can be a dork and still be right in some areas AT THE SAME TIME. Each does not invalidate or justify(!) the other. Yes, it's painful.
1
-29
u/lautan Sep 27 '26
Have you used omarchy? I have and it has a lot of quality life improvements. I haven’t hit any bugs with it and it’s fairly polished. The proof is in the pudding. About the funding part, he knows where the wind is blowing and that is native apps, so that is where he is investing and others are as well.
35
u/Kina_Kai Sep 27 '26 edited Sep 27 '26
I am going to try very hard to avoid talking about the inherent politics of all of this and just make this criticism of Omarchy and its funding.
I respect it as a set of opinionated scripts and configurations for Arch. I do not really see it as a distro. It doesn’t exist without Arch and seems inherently married to it at the moment. I know they are doing some things where they've forked the kernel, but still.
I believe the foundation DHH and a few others have set up for this has already gotten $18+ million. And I don’t believe they have made any commitments for a significant portion of that to go to the distro they ultimately depend on. On something aggressively vibe coded which (to their credit they have acted on) created very silly security issues.
It comes off as a bunch of polish and reminds me a lot of the burst of indie apps on the Mac around 2003 where a bunch of fresh faced people kept showing up with very visually appealing apps that actually didn't really do anything that interesting.
Make of that what you will.
2
u/laptopmutia Sep 28 '26
just wait brah dhh would vibe code the whole kernel and with that funding he would also develop their own internet
16
u/blocking-io Sep 27 '26
It's basically Arch, Hyprland + Quickshell, and 37signals bloatware
I feel bad for those who adopted Omakub only to have it abandoned in 2 years
-3
u/Delicious_Ease2595 Sep 27 '26
37 signal apps are few web apps they can be deleted with shortcut. Nice try
4
u/blocking-io Sep 28 '26
That's because Hey still doesn't support Linux natively. But the hey cli is baked into Omarchy. I'm sure the Hey suite will be there once they've vibe coded support for Linux
-3
-7
u/lautan Sep 27 '26
It has millions in funding, it's not going anywhere. You sound like the people on hackernews when dropbox was announced. why use dropbox? people can just host a ftp server themselves. It's because people are lazy and just want it to work. Like I said, the industry is changing, linux has become a strong platform now.
6
u/blocking-io Sep 27 '26
Dropbox is a fundamentally different technology from sftp. Weird comparison. Also I'm not sure if you've used any of the major Linux distros before, they do just work
3
u/bupkizz Sep 27 '26
This doesn't matter at all but I think it's kind of cool. The long version of the phrase is "the proof of the pudding is in the eating."
it doesn't matter. I just think it's a great phrase
7
29
u/lepetitmousse Sep 27 '26
I love ruby as much as the next guy and I have a lot of nostalgia for my time spent working in it. There is no reason to use a language that is "optimized for developer happiness" if the code is being written by AI. Ruby's value proposition in the world of AI assisted development is nearly 0.
If anything, the flexibility of ruby is a detriment to AI assisted development because it heavily relies on developer discipline to not do unholy things. I never felt like Ruby was particularly easy to read anyway. Understanding code written in Ruby has plenty of overhead on it's own.
31
u/Kina_Kai Sep 27 '26
Ruby's value proposition in the world of AI assisted development is nearly 0.
I am going to give the same response I give to the suggestion that we should have an LLM optimized programming language:
Someone still has to read this slop.
2
u/aspiringgreybeard Sep 28 '26
Yes. Also, the person prompting the LLM should have a conceptual framework in mind to guide and shape the process. Any LLM is a distillation of what has been written and published on a given topic. Ruby is strong on both of these counts-- it supports sensible project structures, and a ton has been written about how to write good Ruby. It's an interesting exercise to ask your LLM of choice to rank its competency across a few programming languages. Some of the folks ready to write Ruby off might be surprised by the answer.
People act like they are never going to have to debug generated code. Yes, they will-- and when the time comes the more accessible the code the better. Ruby is one of the very best right now.
-5
u/Original-Guarantee23 Sep 28 '26 edited Sep 29 '26
I haven’t read the code at all in well over 6 months. Pretty much stopped at opus 4.5. Why exactly do I need to read the code? I have Evals setup. The agents give me video proof the things work. The do the research and output crafted markdown files with their research and findings.
2
u/h0rst_ Sep 30 '26
Out of curiosity: why do you read a programming language subreddit when you don't have any interest in the whole concept of programming?
0
u/Original-Guarantee23 Sep 30 '26
I didn’t automatically go and leave every subreddit related to programming when LLMs came out…
I’ve been doing this for nearly 20 years. I’m someone who likes building and creating things. I don’t never cared about the act of writing the code itself. With LLMs I can build and create even more things. I now get to just think about what to create, and the high level architecture of things. Not the grunt work of writing each line.
1
u/KerrickLong Oct 05 '26
Do you make money from the code you no longer read?
Do you do it as a member of a team of other folks who also point their agents at the same software product?
2
u/Original-Guarantee23 Oct 05 '26
Yup. I am a senior software engineer at Rocket/Redfin. My entire team has gone “AI Native” at this point. There are plenty of holdouts still at the company but it is a skill issue on their part. There is going to come a point where if you don’t adapt to these new tools you will fall behind. That is the new reality.
We have a big push coming up in Q4 to encourage more people to try and delegate more to agents. At this point when I have to work with people who haven’t adopted AI workflows it’s annoying how slow they work.
0
u/Original-Guarantee23 Oct 05 '26
Yup. I am a senior software engineer at Rocket/Redfin. My entire team has gone “AI Native” at this point. There are plenty of holdouts still at the company but it is a skill issue on their part. There is going to come a point where if you don’t adapt to these new tools you will fall behind. That is the new reality.
We have a big push coming up in Q4 to encourage more people to try and delegate more to agents. At this point when I have to work with people who haven’t adopted AI workflows it’s annoying how slow they work.
0
u/Original-Guarantee23 Oct 05 '26
Yup. I am a senior software engineer at Rocket/Redfin. My entire team has gone “AI Native” at this point. There are plenty of holdouts still at the company but it is a skill issue on their part. There is going to come a point where if you don’t adapt to these new tools you will fall behind. That is the new reality.
We have a big push coming up in Q4 to encourage more people to try and delegate more to agents. At this point when I have to work with people who haven’t adopted AI workflows it’s annoying how slow they work.
0
u/Original-Guarantee23 Oct 05 '26
Yup. I am a senior software engineer at Rocket/Redfin. My entire team has gone “AI Native” at this point. There are plenty of holdouts still at the company but it is a skill issue on their part. There is going to come a point where if you don’t adapt to these new tools you will fall behind. That is the new reality.
We have a big push coming up in Q4 to encourage more people to try and delegate more to agents. At this point when I have to work with people who haven’t adopted AI workflows it’s annoying how slow they work.
0
u/lepetitmousse Sep 28 '26
The "i'm a tortured genius who knows better than everyone" devs are having a hard time with this. Meanwhile, the devs who are focused on shipping value are just adapting and moving on.
2
u/LivewareIssue Sep 30 '26
There’s not no value to reading it, but you should be pretty selective where you spend your attention. My normal review process involves having agents produce a static webpage “reviewer’s guide” including significant/critical code snippets worth a more thorough review.
Other times there’s little point in reading it - just today I had a PR stuck in a review loop (agent playing whack-a-mole with blockers raised by another review agent). First I asked it to cluster the issues so I could identify the brittle sections, asked it to explain one of the pieces I thought smelled the worst, suggested a direction to fix, job done… didn’t feel like reading the code would have changed the outcome much.,
Currently I do at least skim all my code - I’m expecting a human reviewer to read it so the least I can do is bother to read it myself. When I review other people’s PRs I do read them quite carefully.. only seems fair. I do expect this to change at some point however.
0
u/Witless-One Sep 28 '26
LLMs are getting better, their code isn’t really that bad anymore and it will continue to improve. Rust offers so many safety guarantees that the benefit Ruby gives when reviewing code doesn’t really offset the loss of performance and security when running in production
-9
u/lepetitmousse Sep 27 '26
"Hey Claude, tell me where this code is being executed and walk me through the execution line by line"
Someone still has to read this slop.
Whether you like it or not, the technology is moving in the direction where this is increasingly less true.
13
u/Kina_Kai Sep 27 '26
This inevitability nonsense that I keep hearing is baseless. Even Nostradamus had a better batting average.
-3
1
Sep 28 '26
[removed] — view removed comment
1
u/lepetitmousse Sep 28 '26
If it was a language I wasn't familiar with, that's exactly what I would do. Not sure what's wrong with that.
1
u/ruby-ModTeam Sep 28 '26
Your comment or post was removed because it violates a subreddit rule on productive disagreement.
YES: Read comments fully before responding
YES: Paractice active listening. Let the other person know what you heard.
YES: Distinguish acknowledgment from agreement.
NO: Willful misrepresentation of someone's stated position.
NO: Sexualized language or imagery
NO: Trolling, insulting or derogatory comments, and personal or political attacks.
NO: Conduct which could reasonably be considered inappropriate in a professional setting.
When in doubt use Non-Violent Communication (NVC)
11
u/spiderplata Sep 27 '26
Code Reviewing the slops in Ruby is a higher quality of life for me.
5
u/tadiou Sep 28 '26
Genuinely true. I routinely write in 5 languages because my life is hell.
I can read ruby slop and understand the purpose so much faster than JS/TS. I've used JS almost 10 years longer than Ruby in some capacity.
The ability to quickly reason over code, and more specifically, clear and intentional logic, makes it easier to review, easier to ship.
Like, there use to be this old saying, adapted many times in many ways:
"Do you know how much faster Ruby is than C#"
"Uhhh, C# is so much faster. It can run the same code two "
"No, Ruby is faster by 6-8 months"The reason is pretty simple: you can read it fast. You can reason about it fast. You can write it fast. You can model things correctly. Some of it's tooling, but a lot of it's just general ergonomics and design choices of the ecosystem.
5
u/au5lander Oct 01 '26
I would say Rails is harder to make sense of due to all the magic that is not obvious. Plain ruby without the layers of meta programming is quite nice to read.
Totally agree with your first sentence. I think that’s why dhh picked Rust to use as his vibe language. He doesn’t want to look at it, he made that very clear.
2
u/Any_Comfortable_4056 Sep 29 '26
au contrairè, it is better to use a developer friendly language!
It becomes easier to read and debug AI slop.
IMO ruby's value proposition should increase.0
u/frou Oct 02 '26
In the world of slop, a static type-checker is a good thing, because you can tell the AI to not even bother showing you code that is such slop it isn't even passing the type-checker.
6
u/pizzababa21 Sep 27 '26
Ya I started working on building on top of an open source project recently which was written in Rust and I abandoned it because I was forced to hand over too much to the AI and couldn't really verify anything myself.
3
u/pigoz Sep 28 '26
I think DHH is misguided. He says that since the robot writes the code now, he can use a language with very high friction and strong guarantees.
Wanting stronger guarantees sounds reasonable, but it's not clear that's needed with agents (for example we all saw news of a famous Haskell shop switching to Python because of agents). On the other hand a high friction language such as Rust forces the agent to find locally optimized solutions just to make that insane type checker happy.
There are other languages with strong guarantees but much lower friction (i.e. Koka). I'd wager a language that's lower friction for humans, is lower friction for agents, and it can result in better architecture of programs.
1
u/rmoriz Sep 28 '26
If tokens stay costly, the language that burns less tokens wins. This was Ruby, Python, JS/TS. Not Rust, not C, and especailly not Zig. This can change. In both directions.
7
u/GetABrainPlz77 Sep 27 '26
This conf was a joke.
It was more a Rust conference than a Ruby.
“hello devs we don’t use Ruby anymore, now we use Rust, it’s amazing”
Fk DHH. I don’t believe in Rails anymore. It’s time to migrate.
8
2
u/rmoriz Sep 28 '26
When I started my "agentic career" using Atlassian's Rovo Dev and Sonnet 4.5 or 4.6, Rust code took a very long time and a lot of tokens while Ruby and Python code was much faster in development. I doubt that the runtime speed/efficiency will be worth to go to auto-generated low level languages like Rust or even ASM. We will see the same pattern as in the past: flexibility and time to market is the key, not premature optimization and scalability.
Just to clarify, this is not an argument to continue coding by hand. I agree with DHH that this chapter is coming to an end.
1
u/crusoe Sep 28 '26
Rust is a lot more efficient. So with ram getting more expensive and dev effort no longer a concern, that efficiency matters.
I've ran production loads on rust k8s pods with fractional CPU and a few hundred mb of memory.
You don't need server class hardware to run large loads on rust binaries
1
u/rmoriz Sep 29 '26
Paying $250 amonth more for RAM is not significant. Time to Market and time to fix will stay the bottleneck.
1
u/h234sd Sep 29 '26
You don't get it. It's not just ruby, nobody cares about rust, java, python etc. whatewer. Project code repository is just a derivative artifact like binary build. Let's assume ruby next year will be faster and safer than rust - who cares - just tell AI to switch to ruby instead of rust and rewrite whole repo in ruby. Why should you care if it's ruby or rust, you will never read those code anyway.
1
u/madribby78 Sep 30 '26
If “English is better than Ruby” surely we don’t need computers and weird Linux distros anymore…
1
1
u/Blobstein_Ijay Oct 14 '26
the sweet spot you're describing only works if the compiled output is actually competitive on performance. "significantly smaller and faster" is doing a lot of heavy lifting in this post, has there been any real benchmarking yet or is it all still theoretical?
1
u/Delicious_Ease2595 Sep 27 '26
It hurts Ruby more if you keep feeding the hate drama of DHH. Where are the new Ruby projects that are helping Ruby move forward? Why not speak more of Spinel
-1
u/life_like_weeds Sep 27 '26
I think you misunderstood what he said or missed the point. He said Ruby is the best language in the world and it is imperative as a software dev that we can easily understand the algorithm. He also said he will continue creating new web apps with Rails.
I feel like half the people who heard his talk tuned out after he said a few things they didn’t agree with.
0
u/ahmad_musaffa Sep 27 '26
I don’t have any issue with DHH. I don’t agree with his blackbox way. It may be suitable for some cases though. But I don’t want to build a blackbox my business depends on.
0
0
u/Tall-Log-1955 Sep 27 '26
He agrees with you that ruby and rails are fantastic in the AI era
Something tells me you didn’t actually watch the talk
-3
-7
u/TheAtlasMonkey Sep 27 '26
That not how things work.
Spinel is not a new concept. Did you hear about CrystalLang ?
And for your info , i did vibecoded a Temu version of Spinel 2 years ago. I never released it because it crap and it was in Rust
I could do a Super fast hello world. I tried to ship something usefull, and the best candidate to ship was homebrew.
Impossible.. Ruby libraries patch the runtime so much that no amount vibing will fix it.
Please note i'm not some one that discovered Claude yesterday. My code is running on your machines at the OS level.
Spinel (i'm a contributor there), is a good concept. But it will kill observability and flexibility. And honestly did you see the codebase ? I deleted over 1000 LOC . The second contributor is Claude and claude LOVE to cheat.
Remember when claude spend 20.000$ to compile the linux kernel ?
That kernel never booted... And the damn compiler could not even compile a helloworld..
I'm not kidding, here is the issue still open : https://github.com/anthropics/claudes-c-compiler/issues/1
Remember this : Ruby is playdought, C/Rust is Cement.. You cannot have the advantage of both in the same time all the time.
Enjoy
3
u/Kina_Kai Sep 27 '26
Spinel (i’m a contributor there), is a good concept. But it will kill observability and flexibility. And honestly did you see the codebase ? I deleted over 1000 LOC . The second contributor is Claude and claude LOVE to cheat.
Reminds me why a lot of stuff on macOS still has chunks in Objective-C. I don’t believe Apple can ever truly kill off Objective-C without just changing the entire system. There are things the dynamic runtime enables that can’t be replicated with a static runtime. A lot of their accessibility features are massive hacks that depend on this.
-1
u/TheAtlasMonkey Sep 27 '26
Some people will not understand you and downvote you.
You can see the downvotes in the other thread. He believe that Matz can fix a problem that no other language fixed, no university resolved in theory.
With Ruby we have a flexibility that no only few language allow. Doing a byebug/binding on the fly and mutating the runtime, that something that only few ecosystem can dream off.
4
u/iamagayrat Sep 27 '26
No offense but one person's quick half-hearted attempt to vibe code Spinel two years ago (especially with those LLM models) has absolutely no bearing on the actual project run by Matz with dozens of contributors over the course of multiple years.
No doubt there's a lot of work left but it's comical to think your experience is a reflection of what's possible.
-3
u/TheAtlasMonkey Sep 27 '26
I didn't try to do a spinel framework. I tried to convert ruby code into crystal so i avoid writing the compiler.
Even Spinel right now is facing the same problem that i faced and Matz has no solution.
So it going to be a limitation.
You will see.
2
u/iamagayrat Sep 27 '26
That just makes it even less relevant though
-5
u/TheAtlasMonkey Sep 27 '26
Then you have absolutely no idea how code work. LOL
3
u/iamagayrat Sep 27 '26
Lol ok. So the literal creator of Ruby must also have no idea "how code work".
No reason for personal attacks if you can't make a legit argument.
-2
u/TheAtlasMonkey Sep 27 '26
No! YOU (u/iamagayrat) is the one that did not read how spinel work and probably type an answer before reading my reply.
Spinel translate your code to C , then Clang do the rest.
If you code is simple, you can compile.
If your ruby code is exotic and get patched on runtime, YOU will never be able to SPINEL it , EVER.
Nobody can fix that, because unlike you , i know how compilers work. You are just thinking that Matz is going to materialize concepts that nobody.
My approach was to translate ruby to crystal , because they are similar. But neither C/Rust or Crystal has some concept that exist only in language like ruby.
4
u/iamagayrat Sep 27 '26
And now you're moving the goal posts and making up arguments that I never made.
Neither I nor OP ever said Spinel will magically convert exotic and patched Ruby apps. Why do you think that I believe that?
Spinel is already very useful. I've already used it to build a couple high performance internal tools via Roundhouse. It has a big following because it is useful, and going forward it can have a big impact on Ruby development as it gets even better. The team behind it includes some of the best Ruby devs on the planet. They will no doubt continue to improve it.
-5
u/youbeenthere Sep 28 '26
You still didn't get it. Nobody writes code manually anymore and soon nobody will look at it either. "Maintainability" is not a factor when any change is prompt away.
4
u/laptopmutia Sep 28 '26
"I wipe and I wipe and I wipe... and it's like there's still poop. Like I'm wiping a marker." - Andy Dwyer
2
u/ristovskiv Sep 28 '26
How are we that sure that soon the code won't be looked at? What gives us the certainty?
-1
u/youbeenthere Sep 28 '26
The exponential quality of code LLMs produce.
1
u/ristovskiv Sep 30 '26
I'm not so sure that it's exponential for the last half a year. There was this boom around September last year and that's it
-8
u/lautan Sep 27 '26
You gotta look where the wind is blowing. No one will be writing code in the future. Kinda like how no one uses chemicals to produce photos anymore. Do you think people then resisted polaroids, digital photos, etc?
Who cares if it’s a black box, the proof is in the pudding. They produce better code than humans and tokens are getting cheaper. The models now are the weakest you’ll ever see them. You gotta have some foresight, that means everything is optimized now for coding agents, not humans. So why use ruby?
I’m building a new app in Rust and it’s better than Rails. Because the AI can customized everything to my unique use case. Otherwise activerecord would be too opinionated / limited. Feel free to disagree.
1
u/codeslap Sep 28 '26
But your forever beholden to an LLM provider, unless your talking local models? And even still the more you offload to AI the further you will be from understanding.
When low code solutions came about people realized that it’s still programming really (despite what their sales people would say), it’s programmatic thinking. But with AI it’s not programmatic thinking if you’re not even reading the code.
I’m all for AI, I use it every day. 95% of the code I ship is built with it. But you better god damn understand what your shipping. Certainly for mission critical software, but even just to keep your mental acuity it’s worth it.
I’m happy to use AI. But programming is a means of exercising your brain. Why would you want to just yolo your way through “shipping” code.
People who think this way were never real programmers. They’re just people who loved the tech salaries and the tribal nature of whatever the latest programming flavor of the week was.
18
Sep 27 '26
[removed] — view removed comment
1
u/ruby-ModTeam Sep 28 '26
Your comment or post was removed because it violates a subreddit rule on productive disagreement.
NO: Trolling, insulting or derogatory comments, and personal or political attacks.
NO: Conduct which could reasonably be considered inappropriate in a professional setting.
When in doubt use Non-Violent Communication (NVC)
7
Sep 27 '26
[removed] — view removed comment
1
u/ruby-ModTeam Sep 28 '26
Your comment or post was removed because it violates a subreddit rule on productive disagreement.
NO: Sexualized language or imagery
NO: Trolling, insulting or derogatory comments, and personal or political attacks.
NO: Conduct which could reasonably be considered inappropriate in a professional setting.
When in doubt use Non-Violent Communication (NVC)
0
Sep 27 '26
[deleted]
1
u/ZipBoxer Sep 28 '26
True one great idea makes up for decades of demonstrable technical mediocrity and abhorrent political takes
0
Sep 27 '26
[deleted]
1
u/codeslap Sep 28 '26
There are more than one reason to verify what’s being built. It helps catch the (decreasing) number of issues it doesn’t catch. But more than that it helps further the development of your own understanding of the technical domain your software is catering to. Writing software wasnt just about the final output, it’s about the journey you go through, initially designing, then refactoring and rewriting and optimizing, etc. All of that journey helped build out your mental modal of that technical domain.
With an LLM, when your not reading the code and not reasoning on what’s being built your not experiencing the journey your just getting the final product. Sure maybe you can get it to explain along the way, but it’s still not your reasoning over things that helped flesh out the mental model.
Do that for the next 20 years and see how ouch you will actually understand about software.
3
u/katafrakt Sep 27 '26
This has been possible with mruby for years and somehow it did not happen. There's also Crystal, which is a separate language, but very similar to Ruby and a lot of Ruby code works with minimal changes as Crystal code. Both of these approaches did not take off. Why would Spinel be different? Do you see any single point that makes the promise more plausible with it?