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.
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?
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?
7
u/tomekrs Sep 27 '26
Regarding Spinel, have you checked Roundhouse?
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.
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.
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.
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/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
u/Khalil_Gharbaoui Oct 02 '26
I both agree and disagree with him😅
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/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
u/luscious_lobster Sep 27 '26
Have you actually looked at Rust? It’s not that hard to read.
-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
-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.
-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.
18
u/[deleted] Sep 27 '26
[removed] — view removed comment
0
u/[deleted] Sep 27 '26
[deleted] — view deleted comment