Writing · 2026 · 3 min
Two months after leaving Rails for Rust
It’s been about two months after I saw Rails world 2026. It made a huge impression that coding is dead, it’s something I knew was coming but I caught off guard it would happen so quickly. The gist of it is Rails is dead, and essentially frameworks / libraries. Coding agents are now smarter than any developer and it can code anything for you and this is just the beginning, how much better will agents get in the future? This time in history is the weakest they ever will be.
Dropped Rails
From there on out, I took a day to think about it, and then I dropped Rails and moved completely to Rust. Rust on the backend, Rust native clients and native mobile apps (with a Rust crate for shared logic). This seemed crazy at the time but it was completely worth it. Let me break this down for you.
I thought frameworks would always be best
Before coding agents, a batteries-included web framework like Rails made complete sense. All the important decisions were made for you like the ORM, naming conventions, MVP pattern, and it was well tested and supported by all the large players like Github. How could anyone see AI could replace all of it with it’s own custom code?
I always thought frameworks had the edge against rolling your own web stack on top of a thin library like Axum, because ai agents learn from their training data. Ruby on Rails has had decades of source code to read from, so agents can leverage that to write better code with less thinking. On top of that, the support of the standard gems like Devise, activerecord, sidekiq etc. How could any ai replace those?
Fast forward to June 2026, I released Devise was holding me back. I wanted to update it’s views and so had to run it’s view install script. Then I had to add custom routes. And eventually, released, hey, why can’t ai just replace devise with it’s own implementation? And it did, much better, because an ai agent can see your entire code base, your intent and write out the perfect solution for what you need. This is a common theme and I thought was amazing. But I didn’t expect this to expand to replacing an entire framework like Rails!
Libraries and frameworks are too restrictive
Little by little, ai agents got smarter. First they replaced the little gems like holidays, then devise, and then even larger ones. So after Rails world, I gave it a shot to move off of Rails and try Rust.
This made me realize, ai agents are smart enough to build entire frameworks just for your needs. Rails was actually holding me back, looking back it makes sense. Rails is a generic web framework so it includes the most important elements for every general website and of course other elements that 37 signals needs. So when my application – Wenmar Pro – needs isolated tenant dbs, I’m out of luck. Rails was never designed for that and suddenly the ORM, much praised in the community, as turned into an obstacle.
After letting my ai agent go wild and build out it’s own solution. These are the things my Rust app can do which was not possible in Rails:
- Isolated tenant dbs – activerecord got in the way preventing this before.
- Analytics dbs for each tenant.
- Shared code between mobile, web and native clients (Although native clients were added later, this was initially a web app).
- Native desktop apps. Rails cannot share code between native apps and web.
- Reduced ram / cpu usage by 99%.
- No need for caching.
- Custom background jobs tuned for analytics and other jobs. Activejob got in the way.
- Native mobile apps with shared code. I was using hotwire native for mobile and it just barely worked well enough.
AI agents build the perfect solution
I can’t believe I’m saying this but AI agents build the perfect solution now. Rails was holding back the application, activejob, activerecord, and others. It was made for humans writing code, but not for ai agents. Giving an ai agent all your context and intention, then it can write out some amazing solutions.
Try out Rust
In tech you gotta go where the wind is blowing. It looks like Rust is gaining a lot of steam, it was always on the back burner for me. I personally liked the Crystal language more, but it’s built for human coders. Rust is being used at just about every company now. And as well as, native apps are the new solution. I imagine web apps won’t be around for much longer, any sort of day to day app makes more sense as a native Rust app. So try it out.
Comments
No comments yet. Be the first.