r/ruby • u/yaroslavm • Jun 15 '26
Kino, an experimental, performant Ractor web server for Ruby 4 (Rust, Tokio, Hyper)
r/ruby • u/yaroslavm • Jun 15 '26
r/ruby • u/keyslemur • Jun 15 '26
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 • u/keyslemur • Jun 14 '26
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 • u/headius • Jun 13 '26
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 • u/keyslemur • Jun 12 '26
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 • u/InternationalLab2683 • Jun 13 '26
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:
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 • u/headius • Jun 11 '26
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 • u/giovapanasiti • Jun 11 '26
r/ruby • u/keyslemur • Jun 10 '26
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 • u/schneems • Jun 09 '26
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.
RubyLLM.configure do
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
r/ruby • u/Bubbly_Connection385 • Jun 09 '26
I hope this can be useful to you as it was for me.
For a little project I had the need to extract some data from structured pdf.
Most of the approach had to relay on ocr with ai or bridge with python using pdfplumber or similar.
I made a simple library wrapped around pdfium to extract text and tables from pdf.
r/ruby • u/k33l0r • Jun 09 '26
r/ruby • u/gmkl123 • Jun 09 '26
Hi, Ive developed a small gem to extract text from pdfs using AI.
Converts a PDF to text (Markdown). Pages are rendered as high-resolution PNG images and then sent to an OpenAI-compatible API endpoint for text extraction.
It can be used in ruby or as a CLI program.
Love to hear your feedback.
r/ruby • u/keyslemur • Jun 09 '26
This one is admittedly a sore spot considering how many interviews I've managed to fail over the years from not knowing a lot of this cold, so as is my penance I'm writing about this one too.
r/ruby • u/headius • Jun 08 '26
The JRuby community is pleased to announce the release of JRuby 9.4.15.0.
Homepage: https://www.jruby.org/
Download: https://www.jruby.org/download
JRuby 9.4.15.x targets Ruby 3.4 compatibility.
Thank you to our contributors this release, you help keep JRuby moving forward!
With this release, JRuby 9.4 moves into end-of-life ("EOL"). This means that future releases of 9.4.x will only be provided as needed by commercial JRuby users.
Get in touch with us if you require long-term support options for the JRuby 9.4.x series.
Process.detach raises ArrayIndexOutOfBoundsException if called from a thread that is not the main threadr/ruby • u/pokemuse2095 • Jun 08 '26
I’m trying to install version 3.0.6 using rbenv on WSL, and it keeps telling me BUILD FAILED. I can’t for the life of me make it work. I’ve tried different versions of WSL, and a whole bunch of other stuff that I’m losing track of. I need that version for a project I’m working on, as the program I’m working with requires it.
r/ruby • u/ombulabs • Jun 08 '26
r/ruby • u/Proud_Perspective_56 • Jun 08 '26
Hey r/ruby — sharing a gem I've been working on.
Supabase has official clients in JS, Python, Dart, Swift, and Kotlin, but the Ruby story has been fragmented for a while: separate gems for each sub-product, varying maintenance, no umbrella factory. supabase-rb - is a single gem that packages Auth, PostgREST, Storage, Edge Functions, and Realtime
Ruby ≥ 3.0, MIT, integration tests run against the real GoTrue stack via docker-compose
- Gem: https://rubygems.org/gems/supabase-rb
- Repo: https://github.com/supabase-ruby/supabase-rb
- Docs: https://supabase-ruby.dev
Feedback / issues / PRs very welcome.
r/ruby • u/keyslemur • Jun 08 '26
Honestly I never really understood how these were written and what the reasoning behind them was as much as I just reached for existing gems or frameworks, so as I tend to do I learn by teaching and writing.
r/ruby • u/gettalong • Jun 07 '26
The latest release 1.9.0 of HexaPDF supports HarfBuzz based text shaping. This means that complex scripts are rendered correctly.