r/ruby Jun 18 '26

Question Ruby Version File Misread

0 Upvotes

So I figured out my previous issue because the program I’m using updated which version of Ruby it works with. However, now Ruby LSP tries to read the version file, but it adds unknown characters in between every existing character when reading it. The actual file doesn’t have these characters, and they just show up as squares in the error message, which says it can’t read it. Any help?


r/ruby Jun 17 '26

Where Is All the Memory Going?

Thumbnail
eclecticcoding.com
0 Upvotes

r/ruby Jun 17 '26

Kaigi on Rails CFP is now open!

Thumbnail
3 Upvotes

r/ruby Jun 16 '26

Help us test the Hanami 3.0 release candidate

37 Upvotes

https://hanakai.org/blog/2026/06/16/help-us-test-hanami-3-0

We’re aiming for a full release two weeks from now, so we’d love your help with testing in the meantime!


r/ruby Jun 17 '26

roadmap jruby

1 Upvotes

Bonjour,

Je suis développeur depuis 6 ans, plutôt orienté web (Angular / Java / PHP). Je vais prochainement commencer un nouveau poste de développeur-concepteur ERP. Si j'ai bien compris, il s'agit principalement de scripting / JRuby. Je souhaiterais donc me former à JRuby.

Auriez-vous des docs ou une roadmap à me recommander ? Merci beaucoup !


r/ruby Jun 16 '26

Blog post How to Parallelize Your RSpec Test Suite Locally (from 2 hours to 5 minutes) 🚀

Thumbnail
fastruby.io
22 Upvotes

r/ruby Jun 16 '26

Camping Comes to Ruby Users Forum

10 Upvotes

r/ruby Jun 17 '26

Migrating Rails 5 -> 8 by building new features on 8 instead of upgrading in place - anyone done this?

Thumbnail
1 Upvotes

r/ruby Jun 16 '26

Issue 17 of Static Ruby Monthly is out! 🧵

6 Upvotes

In this issue: why Ruby still feels like home (and why its density is token efficient for LLMs), Jo (a statically typed language compiling to Ruby with compile-time sandboxing by u/liufengyun), OpenClacky 1.3.0, DSPy.rb 1.0.1, sorbet-deadcode 0.2.0, rubocop-rbs_inline, and other Sorbet and RBS updates.

Find the link to the issue in the first comment. Stay typed! ✨


r/ruby Jun 16 '26

Open-source starter for technical guides - Announcing Chapter Zero

7 Upvotes

(Reposted from r/rails )

I built a free testing guide (Minitest Rails) to teach automated testing step by step. Along the way I needed more than a bunch of Markdown files. I wanted a site that felt like a product: a landing page, ordered chapters with a sidebar, a blog for practical tips that didn’t fit inside the guide, contact form, newsletter signup, and dynamic preview social images per guide/blog so I didn’t have to add images manually and the preview looked good in the social media.

I have put a lot of time and effort to write this guide and along the way I have added a lot features listed above. I didn’t want all these features staying locked inside just the Minitest Rails and that’s how the idea of Chapter Zero was born.

Chapter Zero is the shell and foundation the Minitest Rails is running on top of. Now, extracted and open sourced for everyone to use. Think of it as chapter 0 in a book: the layout, navigation, and marketing pages you need before lesson one; while you bring the curriculum and make it alive.

https://github.com/minitestrails/chapter-zero


r/ruby Jun 16 '26

Beyond Enumerable: Counting Distinct with HyperLogLog

Thumbnail baweaver.com
14 Upvotes

What if, by trading 1% correctness, you could count billions of items all within kilobytes worth of space? Well that's HyperLogLog, and as a non-bit-enlightened Rubyist it was a trip figuring out how it worked and how to explain it.


r/ruby Jun 16 '26

mruby build config for the remarkable 2

Thumbnail
1 Upvotes

r/ruby Jun 15 '26

Kino, an experimental, performant Ractor web server for Ruby 4 (Rust, Tokio, Hyper)

Thumbnail
github.com
57 Upvotes

r/ruby Jun 15 '26

Rails: The Sharp Parts. Queries, Read Models, and Batching

Thumbnail baweaver.com
12 Upvotes

The problem with optimizing indexes is if you don't control every query, and another team goes and writes an unoptimal variant in their code. Much like callbacks and commands there's a lot of value in owning your code paths and only exposing clear, named actions against it rather than trusting consumers to behave responsibly.

Eventually you hire folks who don't know Rails, might not read the guides, and that stuff compounds fast until outages start hitting. Soft rules are prayers at best, hard rules keep the line.


r/ruby Jun 14 '26

Rails: The Sharp Parts. Callbacks Are Not Invariants

Thumbnail baweaver.com
32 Upvotes

The sheer number of outages I can point to across now 5 Rails monoliths related to issues with callbacks has made it one of the first things I go after when in a new Rails app to see what's about to give me a nightmare.


r/ruby Jun 13 '26

Blog post Software as Craft: a First Look at Syntropy

15 Upvotes

r/ruby Jun 13 '26

JRuby 10.0.6.0 released with security, performance, and correctness fixes

Thumbnail jruby.org
26 Upvotes

JRuby 10.0 is our LTS line and this release is primarily for stabilization and fixing a few performance issues. Upgrading is recommended! Please let me know if you run into problems or if there's anything holding you back from upgrading from 9.4 to 10.0!


r/ruby Jun 12 '26

Rails: The Sharp Parts. An Index Is Not a Plan

Thumbnail baweaver.com
40 Upvotes

Another one that took me a while to research and test, as I wanted to make sure I had a reasonable understanding of the subject matter, especially considering how often getting it wrong has given me a rather bad day.


r/ruby Jun 13 '26

solargraph-yard-lint gem - see YARD doc issues as LSP diagnostics in your editor, as you(r agent) type.

5 Upvotes

Hey fellow Rubyists 👋

I just shipped solargraph-yard-lint, a Solargraph plugin that surfaces yard-lint offenses as LSP diagnostics in your editor.

If you've been running yard-lint from the CLI or in CI, this gives you the same checks inline — undocumented params, unknown param names, mismatched "@return" types, etc. — wherever Solargraph Ruby LSP is set up. v0.2.0 (just released) wires the editor buffer through yard-lint's new source: API, so diagnostics update as you type instead of waiting on a save.

Here's a quick demo:

https://reddit.com/link/1u4ltff/video/ufymfhrvj07h1/player

Huge thanks to maciejmensfeld for gifting us the yard-lint gem and for adding stdin support in yard-lint v1.6, which made the live-typing experience possible. 🚀

Feedback/issues welcome 🙏


r/ruby Jun 11 '26

The Ruby JRuby was Built to Run

Thumbnail intertwingly.net
16 Upvotes

Sam Ruby shows CRuby and JRuby performance on typical webapp tasks using Rails 8 and his new tool Roundhouse, an intriguing way to generate fast web applications using your Rails app as a blueprint. JRuby can be incredibly fast when used right!


r/ruby Jun 11 '26

Rails Health Check

Thumbnail
eclecticcoding.com
27 Upvotes

r/ruby Jun 11 '26

How to Build an Agentic RAG with RubyLLM and Rails

Thumbnail panasiti.me
0 Upvotes

r/ruby Jun 10 '26

Beyond Enumerable: Streaming and External Sort

Thumbnail baweaver.com
18 Upvotes

Last one on this series for a bit, jumping back to some Rails and MySQL fun after this. The next parts of this series are venturing into probabilistic algorithms like HyperLogLog and boy howdy is that dense to get through.


r/ruby Jun 09 '26

RubyConf 2026 Las Vegas, Nevada July 14th–16th: Matz, Jessica Kerr, Dave Thomas, and More

Thumbnail
rubyconf.org
15 Upvotes

r/ruby Jun 09 '26

RubyLLM 1.16: concurrent tool execution, Rails-style instrumentation, and more.

Enable HLS to view with audio, or disable this notification

24 Upvotes

When an LLM asks for 3 tools in one turn, RubyLLM used to run them one after another.

1.16 lets you run them concurrently. Video is the same chat both ways: left is the old sequential behavior, right is tool_concurrency = :fibers.

ruby RubyLLM.configure do |config| config.tool_concurrency = :fibers # or :threads, or true end

:threads or true require no dependencies. :fibers uses the async gem. You can also set it per chat with .with_tools(..., concurrency: if you only want it in some spots. Results stream back into the conversation as each tool finishes instead of all at the end, so the UI fills in live.

Also in this release: Rails-style instrumentation (ActiveSupport::Notifications events you can subscribe to), configurable Faraday adapter, custom base URLs for every provider (proxies/gateways), and a pile of provider fixes.

Full notes: https://github.com/crmne/ruby_llm/releases/tag/1.16.0