Carmine Paolino makes a convincing case that Ruby is the best language for building AI applications in 2026. ML training is Python’s domain, but modern AI development is just HTTP calls to an LLM. Most of the work is everything around those calls: streaming responses, persisting conversations, tracking costs, and switching providers. That is web engineering, and it’s where Rails shines.
The post compares RubyLLM with LangChain and the Vercel AI SDK. RubyLLM’s API reads like prose:
RubyLLM.chat.ask "Hello!"
Python requires more ceremony: you specify providers, wrap messages in classes, and deal with response structures that differ across providers. LangChain returns token usage under different keys depending on the model provider, and Gemini doesn’t return it at all.
A few points that stood out:
- Cognitive overhead compounds. Fewer abstractions mean faster onboarding, fewer bugs, and easier debugging at 2 AM.
- Rails gives you the rest of the product: auth, billing, background jobs, streaming UI, and persistence are already solved. The streaming chat example with ActiveJob and ActionCable is absurdly concise.
- Scalability isn’t an issue. LLM workloads are network-bound, not CPU-bound, and Ruby’s Fiber-based async handles high concurrency without thread explosion.
RubyLLM is also popular: it hit #1 on Hacker News and has about 3,600 GitHub stars and 5 million downloads. Teams that migrated from LangChain aren’t going back.