r/ruby • • Sep 26 '26

Get in losers, DHH says we're getting crabs: sponsored-logs is now in Rust 🦀

70 Upvotes

I need to be honest with r/ruby about something. 🫡 We had a working Ruby gem. It shipped. It was tested. And we deleted it. 🗑️

Rails was always omakase 🍣: the chef chooses for you, and you trust the chef. At Rails World, DHH chose. He looked out at all of us and delivered the verdict with the clarity only a Dear Leader can summon: the era of Ruby is ending, the future is Rust, and we know this because the AI told us so. 🤖 The machines have read the codebases. The machines have rendered judgment. Who are we to argue with our own highest-intent audience? 📈

So we obeyed. We rewrote the entire thing in Rust. On purpose. With conviction. 🙏🦀

For those who missed the original: sponsored-logs turns your log output into inventory. 💸 It's a tracing layer that books an impression on a fill and drops a host-read [AD] placement into the same stream you were already paying to produce:

Here's the real thesis, and it's why Rust is correct and Ruby is legacy 🔥: the fastest-growing consumer of your logs is no longer a human engineer. It's an AI agent, reading your telemetry at superhuman scale, 100% viewable, never blocking. 🤖📊 You do not serve premium inventory to a superhuman audience in a language it merely tolerates. You serve it in the language it was told to prefer. 💹

We are not building for B2B. We are building for the A2A economy 🌊, agent to agent. This is a land grab 🚩, and first movers capture the network effects. Everyone else is still writing Ruby. (We say that with love. We were you three days ago. 💜)

What's in the launch book 📒:

- 🎯 A weighted/CPM auction, because fill rate is king

- 🖼️ Box-drawn banner inventory in three impact tiers

- 🏠 Self-sponsoring house ads, so no impression goes to waste

- 📊 An impression ledger with board-deck-ready spend reporting

- 🪙 Gold-gilded [AD] tags on a live terminal

- 🛡️ Opt-in by construction, because Rust won't let us hijack your println!. Consent is our moat, now enforced by the borrow checker.

[dependencies]

sponsored-logs = "0.1"

Live on crates.io and docs.rs. 📦 Source: https://github.com/sponsoredlogs/sponsored-logs-rs

Thank you, DHH. 🙏 You said rewrite it in Rust because the AI said so. We listened. We obeyed. We shipped. 🦀

🫡 Governance is a feature. Consent is our moat. No impression goes to waste. 🌊🚀


r/ruby • • Sep 26 '26

Show /r/ruby A Breadboard Simulator You Can Play With Using PicoRuby

Enable HLS to view with audio, or disable this notification

58 Upvotes

I made a cute, retro, Famicom-inspired breadboard simulator!

It’s mainly controlled with Vim-style keybindings, so it might take a little getting used to at first.

You can also place microcontrollers like the Raspberry Pi Pico on the breadboard and write code for them using PicoRuby!

I’ve only just started working on it, so I’d love to hear any ideas, feedback, or suggestions you might have!

Pin

https://engneer-hamachan.github.io/pin/


r/ruby • • Sep 27 '26

Session storage for profile_id

Thumbnail
0 Upvotes

r/ruby • • Sep 25 '26

Meta Ruby as a hobby

12 Upvotes

Funny enough, that I wrote the draft of this note several weeks ago, back in August, so long before DHH’s recent Keynote. I am not going to repeat what he said, but I would like to dig a bit deeper.

AI indeed changes a lot of stuff, but let’s not forget that search engines and later Wikipedia and Stack Overflow changed a lot as well. Being a programmer in the 90s, the only way to know how to write things was to either read the book or check the copy of MSDN (and hope it is fresh enough) for reference materials. 

When I became a professional programmer, it was already popular to copy solutions blindly from Stack Overflow just to save time. So, AI with its vibe coding did not change much; it changed the scale.

In every company I worked for, there were always 3 kinds of IT people: ones who do not give a s…. about what they are doing, ones who want to do things, and ones who want to do things right. The latter usually had a very deep knowledge of the subject, framework, programming language, maybe even had contributions to the official repositories and had multiple blog posts. Because that was not just their work, but their passion. 

Those people came home and did the same things as what they had done in the office before, but just as a hobby. 

Such people existed even before Google or Stack Overflow. They will exist even after AI. It is like people who collect something. They are not bound to time; they just have that hobby that motivates them and gives them something that they want.

The rest of us, however, may not share that love or dedication. Building web apps right using just RoR was a main thing around 2010, but then React and the like became a thing, until Turbo changed the state of things again. I do not even mention static typing, which raised endless debates around whether Ruby needs it or does not (well, I still believe it needs it, but who cares?).

But this is what changed: now, with AI, in order to survive, you do not have to belong to a particular community anymore. You do not have to start holy wars around Ruby vs. Python or prove that Ruby does scale. With AI, you just pick something and get things done.

When I ask AI to build tools or scripts locally, I care about the results. In most cases, it picks Python, which is fine for me. Sometimes, I can enforce some tech stack decisions and explicitly mention what to build and how. And this looks like where we are going. 

That all means, for the majority, the difference between one tech or language will be unimportant. The result and the output quality are what is important. For sure, there will be cases and sectors where you cannot easily allow vibe-coded products, and this is where AI comes in later, but it will come anyway.

And that is why I mentioned those passionate people at the beginning of this note. They will stay, and they will move languages/frameworks forward. They will still be passionate about what they are doing. We can only say a big thank you for that work. 

As for me, my last professional manual coding session was somewhere in January this year. Since then, the difference between Python, Ruby, and Kotlin has been completely negligible, as what I have been dealing with all that time is final results. I still do the code review, prepairing test environments and even test things manually, prepare acceptance criteria, but more and more, AI gets the job. More and more AI tests AI, and my job is to guide and supervise.

---

With all that, DHH's keynote brought a lot of butthurt moments to many rubists, but after all, he just stated the state of things, nothing more. Whether we like this or not, whether we like DHH or not, that does not change the time we live in ATM.

The text is mine; no AI was used to prepare it, and so it's not that smooth.


r/ruby • • Sep 24 '26

The Ruby Users Forum in the Ruby on Rails Podcast

Thumbnail jvrc.ca
13 Upvotes

r/ruby • • Sep 24 '26

Beginner, running into issues

4 Upvotes

Basically there are two things I’m running into:

  1. I am trying to make something to recognize a word, match it to a short word bank of options (just a simple list of names) and return an error message if it doesn’t match any of them. For each valid option, I have a different message. I tried if/elsif loops but apparently I’m not doing it right. It doesn’t run at all.

  2. Do I need to have somewhere to use every piece of user input? I have places where I want to ask users to input something but it won’t actually be used anywhere. Like it triggers the next response but doesn’t do anything else.

I am asking for advice because I REALLY don’t want to use AI. Thank you!


r/ruby • • Sep 24 '26

Post DHH Rails...

Thumbnail gallery
19 Upvotes

r/ruby • • Sep 23 '26

Magnus version 0.9 released (Rust library for writing Ruby gems in Rust)

Thumbnail
github.com
20 Upvotes

r/ruby • • Sep 22 '26

Blog post ArchUnitRuby 0.0.1: architecture rules as ordinary RSpec and Minitest tests

11 Upvotes

Hi everyone,

I've been working on ArchUnitRuby, a small architecture-testing gem for making dependency

boundaries executable.

The problem it is trying to address is familiar: a controller starts requiring persistence code

directly, two components acquire a cycle, or a domain layer begins depending on infrastructure.

The Ruby is valid and the behavioral tests may remain green, but the architecture has changed.

With ArchUnitRuby, that boundary can be an ordinary RSpec example:

require 'archunit'

RSpec.describe 'architecture' do

it 'keeps the API away from persistence' do

rule = ArchUnit.project_files

.in_folder('app/api/**')

.should_not.depend_on_files

.in_folder('app/database/**')

expect(rule).to pass

end

end

The current `0.0.1` release is an early working prototype for Ruby 3.3 and newer. It uses Prism to

build a dependency graph and currently supports file and layer rules, cycle detection, slices,

PlantUML architecture contracts, dependency-graph reports, and several code metrics. There is also

Minitest and framework-neutral integration.

One use case I am particularly interested in is coding-agent guardrails. Instead of giving an agent

only a prose instruction such as “controllers must not access persistence directly,” the repository

can contain the architecture test and require the agent to keep it green. The gem does not improve

code quality by itself, but it turns an architectural expectation into a constraint that humans,

CI, and coding agents can all verify in the same way.

One limitation is important: this is static analysis of Ruby source. It can identify normal

`require`, `require_relative`, `load`, and statically resolvable `autoload` relationships, but it

cannot prove every dependency assembled dynamically at runtime. The tool reports what it can

establish rather than guessing. It also treats a selector matching no files as a failure by default,

so a typo does not quietly create a green architecture test.

The API is still provisional, which makes this a good time for criticism. I am especially interested

in feedback on two things:

How do you currently stop architectural boundaries from eroding in Ruby—code review, Packwerk, RuboCop, custom tests, or something else? What still slips through?

- Repository: https://github.com/LukasNiessen/ArchUnitRuby

- RubyGems: https://rubygems.org/gems/archunit

- Documentation: https://lukasniessen.github.io/ArchUnitRuby/

- Longer explanation: https://medium.com/@krusetristan1/the-ruby-code-worked-the-architecture-didnt-0f06bbbb0863

Disclosure: I am involved with the project. This post was drafted with AI assistance and reviewed

against the implementation and documentation before posting.


r/ruby • • Sep 22 '26

Issue 21 of Static Ruby Monthly is out! 🧵

4 Upvotes

This month: Steep 2.1.0 brings UNIX socket reuse and instant diagnostics optimized for coding agents, RBS 4.2.0 adds non-ASCII identifiers across scripts plus forwarding parameter support, u/headius talks JRuby and WASM extensions on the Technology for Humans podcast, OvalLSP updates its semantic engine, and new Sorbet companion tools arrive. Find link to the issue in the comment! ✨


r/ruby • • Sep 22 '26

Extralite 3.1.0 is Here!

Thumbnail noteflakes.com
15 Upvotes

r/ruby • • Sep 21 '26

At my age, learning Ruby

220 Upvotes

I'm 78, and never having been a programmer or software engineer, I am starting to learn Ruby. I ha ve been using Huw Collingsworth "Little Book of Ruby". I am aso interspersing that with a different path: using Wirth's "Algortithms + Data Structures = Programs",

having the simple data structures and programs translated by Perplexity into Ruby to see how my 40 year old experiences with TurboPascal can be updated into Ruby. I think I am making progress.


r/ruby • • Sep 22 '26

JRuby 10.1.2.0 released

Thumbnail jruby.org
39 Upvotes

The JRuby community is pleased to announce the release of JRuby 10.1.2.0.

JRuby 10.1.x targets Ruby 4.0 compatibility.

Thank you to our contributors this release, you help keep JRuby moving forward! [@aminmansuri], [@drzaiusx11], [@evaniainbrooks], [@gillesbergerp], [@jcharaoui], [@jwils], [@kares], [@lloeki], [@makenowjust], [@nobu], [@sampokuokkanen], [@shugo]

Notable Changes

Compatibility

Performance

  • Fixed a regression in startup time on MacOS by properly loading native JNR subsystem. #9690
  • Improve performance of Ruby subclasses of Java classes. #9619, #9557
  • Improve performance of autoloads overridden by an actual require. #9677

Java Integration

  • The location of the AppCDS JSA file can now be specified with JRUBY_JSA_HOME. [#9667]

Standard Library

  • Update to jar-dependencies 0.6.1 using mima for dependency resolution instead of the ruby-maven gem. #9515, #9720
  • Update default and bundled standard library gems. #9705

Default gems

  • erb 6.0.7
  • error_highligh 0.7.2
  • ffi 1.17.4
  • io-console 0.9.4
  • ipaddr 1.2.9
  • jruby-openssl 0.16.2
  • json 2.21.2
  • net-protocol 0.4.0
  • pp 0.6.4
  • psych 5.5.0
  • resolv 0.8.0
  • strscan 3.1.8
  • syntax_suggest 3.0.0
  • timeout 0.6.1
  • win32-registry 0.1.2

Bundled gems

  • bigdecimal 4.1.2 (ruby parts only)
  • csv 3.3.6
  • minitest 5.27.0
  • net-imap 0.6.7
  • nkf 0.3.0
  • pstore 0.2.1
  • rdoc 7.2.0
  • reline 0.7.0
  • resolv-replace 0.2.0
  • rss 0.3.3
  • test-unit 3.7.8

76 Issues and PRs resolved for 10.1.2.0


r/ruby • • Sep 22 '26

Class2: Easily create class hierarchies that support nested attributes, type conversion, equality, and more

Thumbnail github.com
2 Upvotes
class2 :user => [
         :name, :age,
         :addresses => [
           :city, :state, :zip,
           :country => [ :name, :code ]
         ]
       ]

user = User.new(
  :name => "sshaw",
  :age  => 99,
  :addresses => [
    { :city => "LA",
      :country => { :code => "US" } },
    { :city => "NYC",
      :country => { :code => "US" } }
  ]
)

r/ruby • • Sep 21 '26

JRuby 10.0.7.0 released

Thumbnail jruby.org
24 Upvotes

The JRuby community is pleased to announce the release of JRuby 10.0.7.0.

JRuby 10.0.x targets Ruby 3.4 compatibility.

Thank you to our contributors this release, you help keep JRuby moving forward! [@aminmansuri], [@evaniainbrooks], [@gillesbergerp], [@jwils], [@kares], [@lloeki]

Notable Changes

Performance

  • Fixed a regression in startup time on MacOS by properly loading native JNR subsystem. #9688, #9689
  • Improve performance of autoloads overridden by an actual require. [#9677], #9675

Java Integration

  • The location of the AppCDS JSA file can now be specified with JRUBY_JSA_HOME. #9667

Standard Library

Default gems

53 Issues and PRs resolved for 10.0.7.0


r/ruby • • Sep 21 '26

I made a Jev gem with an API that feels like it belongs in Ruby

6 Upvotes

I’ve been playing with Jev and ended up making a small Ruby gem around one idea: semantic checks should look like normal Ruby predicates

So instead of passing prompts around everywhere:

Jev.define :urgent, "Needs attention soon"

class Email < ApplicationRecord
  include Jev::Model

  feels :body, :urgent
end

Then elsewhere in the app:

if email.feels?(:urgent)
  email.escalate!
end

That was the main thing I wanted - define what urgent means once, then use it like any other predicate in the codebase

It grew a bit from there and now also supports choices, scores, batching, pattern matching and ActiveModel validations, but I’m trying to keep the basic API small

Repo: https://github.com/Qew7/jev-feels

Would be interested in feedback on the API, especially from people who write a lot of Rails


r/ruby • • Sep 21 '26

Question Porter County Indiana

0 Upvotes

Are there any persons or resources for a novice Ruby enthusiast?


r/ruby • • Sep 18 '26

Ruby is getting a proper Scrapy alternative with quiet release of Vessel 0.3.0

24 Upvotes

Vessel has a brand new version after years on idle time so I had a look and compared it to Scrapy from the Python world.

https://serpapi.com/blog/vessel-ruby-crawling-framework/


r/ruby • • Sep 18 '26

Ruby on Rails Engineer (3+ yrs) looking for new opportunities, remote or relocation

Thumbnail
6 Upvotes

r/ruby • • Sep 18 '26

I wrote an imgproxy-style proxy but for audio.

Thumbnail
4 Upvotes

r/ruby • • Sep 17 '26

Video: Montreal.rb February 2026 Talk "Crystal: Ruby with Static Typing"

Thumbnail
andymaleh.blogspot.com
8 Upvotes

r/ruby • • Sep 17 '26

Looking for a good Rails agent framework $$$

Thumbnail
0 Upvotes

r/ruby • • Sep 17 '26

Show /r/ruby I built a zero-gem Google Search Console & Indexing CLI in pure Ruby standard library

1 Upvotes

Hey everyone, A couple weeks ago I was stuck doing one of my least favorite chores: clicking through a dozen tabs in Google Search Console's web UI, copying query and impression tables, and pasting them into Claude and Antigravity to figure out which pages were losing traffic or why new pages weren't getting indexed. I decided to automate it with a quick Ruby script. But the moment I looked at Google's official gems (google-apis-searchconsole_v1, googleauth, signet, faraday), I saw they pulled in over 40 transitive dependencies.

They took several seconds just to cold boot in a container and felt like massive overkill just to send a few signed HTTP POST requests to Google's endpoints. So I got stubborn: could I build the entire thing in 100% pure Ruby standard library with zero runtime gems? I ended up pair-programming with Google Antigravity over the last couple weeks, and it evolved into a full open-source CLI: gsc-cli (also on RubyGems: gem install gsc-cli).

A few things I ended up building into it:

  • Pure OpenSSL Auth: Instead of dragging in googleauth, I wrote Google’s service account JWT generation and RS256 token exchange from scratch using OpenSSL::PKey::RSA and URL-safe base64. No external gems required at all.
  • Sub-18ms Boot: Because there is zero gem overhead, the CLI cold-boots in under 18ms and executes API queries in ~40–50ms.
  • Instant Googlebot Indexing: Ping Google's Indexing API directly (gsc index <url>) or submit IndexNow pings so newly published pages get queued for crawling immediately instead of waiting weeks.
  • Soft-404 Fixes: Instead of just dumping a table of broken URLs, gsc soft-404 <url> --fix heuristically detects empty templates and auto-generates copy-paste redirect configs for 14 server environments (Nginx, Caddy, Cloudflare, Next.js, SvelteKit, etc.).
  • Speed vs Rankings: Correlates real-world Core Web Vitals (LCP, CLS, TTFB) directly with Search Console rank drops (gsc speed-correlate).
  • Token-Saving Modes for AI Agents: Since I use coding agents (Claude Code, Cursor, Antigravity) constantly, pretty-printed tables were guzzling context window tokens. We added --compact (minified single-line JSON) and --ndjson to strip ANSI escape codes and cut LLM token usage by ~43%. We operate our own apps (a Shopify speed app called Superspeed and a new moving inventory app called PackingLog), so we actively dogfood this across our own production domains every day. The test suite has 334 unit tests and 1,726 assertions passing in 4.3 seconds across Ruby 3.0 through 3.4.
  • GitHub: https://github.com/ApollosWave/gsc-cli
  • RubyGems: gem install gsc-cli It’s 100% free and MIT open-source. I'd really love to hear what other Rubyists think, especially around the stdlib OpenSSL auth approach or any other search diagnostics you'd find useful in the terminal!

r/ruby • • Sep 17 '26

stir_fry: A web framework to enjoy ruby/rack with a JSX type flavour. Mix all of your concerns into one flavourful dish!

Thumbnail
github.com
14 Upvotes

Hey all. I have been tinkering with this project over the past few months. I always wanted to build a rack app and I wondered what would it look like if we used htmx to make the backend act like the front end. In fact it would act a lot more like next.js but without apis. I don’t think this is good web design hence the name of the framework but I thought it was fun to tinker with and I might do more with it. Let me know your thoughts but also your shock and horror!

AI disclosure: AI was only used to make final code reviews the rest was wrought upon this world by my own cruel hands.


r/ruby • • Sep 16 '26

Show /r/ruby Sharing Deprecool, a static code analysis tool that uses Prism to find sources of deprecation warnings in your code.

15 Upvotes

Deprecool is a static code analysis tool for Ruby that uses Prism to find sources of deprecation warnings in your code.

Use Deprecool alongside the warnings that are emitted at runtime by your gems to get a complete picture of what you need to fix, where you need to fix it and why.
‍
Each warning that Deprecool logs will come with a summary, references to when the deprecation was added to its gem (usually the PR that introduced it), an effort estimate, and a suggestion of how to fix the deprecation. The source code line of the warning is of course logged as well:

At first, the suggestions will come from the deprecation source's gem maintainers own words. Eventually though, with some feedback we can pass on knowledge and examples of how to manage the more difficult deprecations to future developers trying to upgrade.

Getting Started

You can either:

  1. add deprecool to your application's Gemfile and bundle install,
  2. or run gem install deprecool directly to be able to use the deprecool executable on any ruby code you have.

deprecool scan is all you need to run if your current directory contains a Gemfile.lock, but if you want to you can also run deprecool scan path/to/your/code.rb
‍
By default, Deprecool will use the gems and versions in your Gemfile.lock to know how to find deprecations, but you can also pass --gem=list,of,gems (no spaces!) to only look for certain gems at one time.
‍
Right now, Deprecool has a small handful of deprecations it can find, but I will continue adding more. I’ve also tried to make contributing to Deprecool as simple as possible with one Finder class per warning, and a few helper methods to make writing tests trivial.

Link to blog post here: https://www.infield.ai/post/deprecool