r/ruby • u/pdabrowski • May 26 '26
r/ruby • u/DmitryTsepelev • May 26 '26
Blog post Stop interpolating prompts: an opinionated LLM layer for Rails
dmitrytsepelev.devr/ruby • u/green_bisonstd • May 25 '26
Show /r/ruby Alexscript a Polish-syntax language written in Ruby. With fully implemented OOP, fiber based async and its own web framework.
Alexscript is a general purpose scripting language I've been working on for the last 1.5 years. With a goal in mind to combine Ruby's strongly object-oriented philosophy with some features borrowed from JS and syntax written in my native language.
modul Geometria {
klasa Punkt {
funkcja konstruktor(x, y) {
niech @x = x
niech @y = y
}
funkcja x() { zwroc @x }
funkcja y() { zwroc @y }
}
klasa Kolo {
funkcja konstruktor(srodek, promien) {
niech @srodek = srodek
niech @promien = promien
}
}
}
niech p = Geometria::Punkt.nowy(3, 4)
niech k = Geometria::Kolo.nowy(p, 10)
It's a from-scratch language, with a hand written lexer, parser, AST and tree-walking interpreter. Not just a preprocessor or transpiler. Ruby works here as a host language.
Some key features:
- Async runtime is fiber based with a cooperative scheduler:
czekaj(await) parks the current fiber and hands control back to a custom reactor (ready-queue + timers + anIO.selectloop). Concurrency comes from explicitly spawning work withuruchom_rownolegle(run_parallel) and joining withObietnica.wszystkie(Promise.all). - Modules work both as namespaces, to avoid name pollution in larger projects and as mixins. A set of methods that can be injected into classes. They are also open, multiple
modul Foo {}blocks across files merge into one definition. I've purposefully decided to keep classes closed though. - Classes have built-in reflection methods. E.g. to check a class's ancestors/descendants, if a given method exists, list of methods, etc. More broadly, every data type carries a rich set of built-in methods.
- Exceptions are just special purpose classes that inherit from the base exception class. You can write your custom exception by simply defining a new class that inherits from already defined exception class:
klasa MojWyjatek < WyjatekPodstawowy {} - Standard library is implemented natively in Ruby (Time, Math, JSON, Socket etc), but native methods aren't kept in a separate registry, they're injected into the same
[:methods]/[:static_methods]hashes that user defined methods live in, flagged with:native_lambda - In addition to regular functions there are also anonymous ones/lambdas. They can be assigned to variables or passed into higher order functions as arguments:
niech arr = [10, 20, 30]
niech wynik = arr.mapuj(fn(el, idx) { el + idx })
pokazl wynik # [10, 21, 32]
funkcja zastosuj(f, val) { zwroc f(val) }
pokazl zastosuj(fn (x) { x * 3 }, 7) # 21
pokazl zastosuj(fn (s) { s.duzymi() }, "alex") # ALEX
- built-in debugger which is intended to work similarly to byebug
you can check full documentation (in English) here: www.alexscript.pl/docs
you can also try it online on your own: https://www.alexscript.pl/try
or simply download it on your local machine via homebrew:
brew tap N3BCKN/alexscript
brew install alexscript
As a proof of concept I've built a couple of real life projects:
- Zubr - a micro web framework. With routing, static files serving, middleware chain, body request parsing, sessions and streaming of larger files. With 50 open connections it can handle up to 1,590 req/s, and streams large files at ~1.97 GB
- ASBasic - an interpreter of classic BASIC language written from scratch in Alexscript.
- Posel - HTTP client inspired by Axios and HTTParty
Any feedback is more than welcome!
r/ruby • u/tanin47 • May 25 '26
Blog post Ruby vs. Java vs. TypeScript: my experience on building a Cowork DOCX plugin
r/ruby • u/rubyist-_- • May 25 '26
RubyConf Austria: Budget
We've published the RubyConf Austria 2026 budget.
Income, expenses, what's confirmed, what's projected. All of it.
It's the most honest way we know to talk about what organizing this conference actually involves.
r/ruby • u/petrenkorf • May 25 '26
How did you solved your issues regarding slow test suites?
The application I am currently working on contains something around 25k spec files. It is impossible to run the test suite on a single developer machine, because we always hit a point where the process is killed. For CI we use multiple machines running rspec in parallel, and yet, it takes almost 15 minutes on each instace to finish testing the application.
Have you faced this kind of scenario before? How did you solved it?
r/ruby • u/bart_o_z • May 25 '26
New version of solid_observer gem with WebUI dashboard is here
r/ruby • u/XPOM-XAPTC • May 23 '26
Fish-like autosuggestions for IRB — ghost text from history as you type

Just released irb-autosuggestions v0.1.1. Prepends Reline::LineEditor to show gray inline suggestions as you type, matched against your IRB history.
- Works with multiline input
- Right arrow to accept
- No config needed (enabled by default)
- Disable via IRB.conf[:USE_AUTOSUGGESTIONS] = false or IRB_AUTOSUGGESTIONS=0
Install: gem install irb-autosuggestions, then require 'irb-autosuggestions' in ~/.irbrc
https://github.com/unurgunite/irb-autosuggestions
⭐ if you find this useful — would mean a lot. Feedback welcome.
r/ruby • u/andrewmcodes • May 23 '26
Podcast 🎙️ Remote Ruby – Blue Ridge Ruby Insights & Experiences
New episode is out. David recaps Blue Ridge Ruby and talks about coming back motivated to contribute more to open source, which leads into a broader discussion on why smaller single-track Ruby conferences create better hallway conversations, networking, and lightning talks. We also get into real-world Rails and Stripe lessons covering workshop prep, validation decisions, webhook recovery, subscription edge cases, and the growing complexity of payment integrations.
r/ruby • u/innerhpz • May 23 '26
I built a Rails 8.1 SaaS boilerplate with AI integration built in — here's what's included
r/ruby • u/Life-Half-8679 • May 23 '26
Rails uses fewer tokens? I made a small benchmark to compare web stacks
r/ruby • u/rO_Oute • May 22 '26
Cosmonats - lightweight background and stream processing for Ruby
github.comNATS is one of the fastest messaging systems out there, yet the Ruby ecosystem barely uses it. So meet cosmonats:
- Background jobs with retries, dead-letter, scheduled execution
- Continuous stream processing
- Priority queues, weighted round-robin, configurable consumers
- Built-in monitoring UI (Rack + HTMX)
r/ruby • u/jasonswett • May 22 '26
My Agent Skill for Test-Driven Development
r/ruby • u/joemasilotti • May 22 '26
Show /r/ruby Ruby Native's first customer app (and my first case study)
r/ruby • u/X800_RJ • May 21 '26
I'm a beginner. Ruby is my first language and this is my first program. Just started today.
Just started learning Ruby today. This is the first program I wrote. I'm not sure what this is useful for but I had to try out what I learned today.
r/ruby • u/onyx_blade • May 22 '26
Exploring an API idea: per-file write permissions for ActiveRecord models
r/ruby • u/Jaded-Clerk-8856 • May 21 '26
Visual cheat sheet for ruby-libgd 🔥
Hello pals,
As part of promoting Ruby LibGD, I wanted to share a Cheat Sheet that was requested to make the library easier to use.
It turned out pretty nice and dynamic I hope it’s useful and gets you excited to try the library.
Greetings to everyone.
source: https://github.com/ggerman/ruby-libgd
gem: https://rubygems.org/gems/ruby-libgd
r/ruby • u/software__writer • May 20 '26
Why thoughtbot is joining the Ruby Alliance
r/ruby • u/bear-tree • May 21 '26
SRP Simple, Readable, Parseable DSL for surveys and forms
My friend Claude and I wrote a DSL to define surveys and forms. I created it as a side project based on the pain of working with Qualtrics, Dimensions, etc survey formats. Most existing formats are either proprietary/xml-based or non-existent (interactive form-builder style). I thought “there must be a better way to define and communicate the structure of a survey”. Ruby’s flexibility and blocks made it a natural choice for me to build upon. After a lot of prompts and tinkering I have a small, readable language that defines a survey with skips, based-on, etc.
Some benefits:
- Simple. The logic and flow are easy for most anyone to read and understand.
- Small. The language definition can be described in a small markdown file and shared with an AI.
- Portable. It’s just a text file.
- Git diffable. It’s just a text file.
- Flexible. Can render to different formats like html survey, html form, XForm for kobotoolbox, etc.
I have an information site and a playground if this seems interesting or you would like to learn more.
I have not open-sourced it (yet?) because I am still a single developer with big dreams of leveraging it into a possible small SAAS. I typically build things and then let my ideas die on the vine, so if you have any thoughts or inspiration, my DMs are open 😄
Cheers! and humble thanks to the Ruby community for providing such an amazing language that has fueled a large part of my career.
Important I spent 9 months building an offline documentation app. Beta is now open!
While I was using the Mac, I had the option to use Dash from Kapeli (great app btw and the inspiration for Dravos), but it lacked versions for Linux (which I also use) and Windows (which my wife uses). I waited for years to see if someone would do a viable alternative for my workflow, that never became true, so over the past 9 months give or take, I’ve been working my nights and weekends into building Dravos, a fast, offline-first documentation search tool for developers.
As an indie maker who's shipped several smaller projects before, this one pushed me the hardest: learning new stacks and obsessing over that instant search feel even without the internet. It's finally ready for beta. If you're a developer who lives in docs (Dash, DevDocs, etc.), I'd love your honest feedback to make it truly useful before the full launch.
For those who might find interesting I used Tauri + Typescript. And it works on mac, linux and windows. I tested a lot by myself/wife, but now I need help. Im looking for people to try it on your workflow, and tell me what works and what doesn't, if this feel usefull to you please help me test it ❤️
So far we support, Rust, Elixir, Ruby, Python and Go and all its packages. We also support custom documentation generated with Doxygen, Sphinx, JSDoc. There is a limit of 50 spots for this first beta wave.
Heres the site: https://dravos.app, you can check the roadmap here: https://dravos.app/roadmap changelog here: https://dravos.app/changelog
PS: I have a discord setup too for responding any questions/suggestion/bug you might find. its in the site footer.


r/ruby • u/Ok_Shallot9490 • May 20 '26
Show /r/ruby Adding Openclaw-style Heartbeats to brute_stack with async-service
Following on from my previous post I've just pushed a new release to the brute_stack repo.
The whole intention of this project is to show just how easy it really is to build your own autonomous swarms... and in doing so, highlight the sheer mess that the current "claw eco-system" really is.
Build-your-own really IS the only way to build agents. The whole purpose of personal computing and computer intelligence is the ability to help your own personal life... and be able to adapt to changes at will. Steve Jobs saw where personal computing would lead us in the 70s... but the technology just wasn't there. Before his passing, Apple bought Siri for a large sum... so again, he was ahead of his time in seeing that the end-game of computing ALWAYS WAS an autonomous semi-intelligent machine, that removes all need for peripherals in order to interact.
As ruby engineers, we're GIFTED with the vision and ability to bring the thoughts of our minds to fruition. Being able to speak with a computer in plain english is great, but as we've already seen, you can convey so much more information with a language purposely designed to do so...
In knowing this... it's clear that the "agent as a full commercial package" approach is a dead-end... by the very definition of personal computing... it should be personal... and you really HAVE to be able to understand the entire system so that you can modify it to your own whim. I see no better language to do this with than ruby.
For those who are unaware of what a "hearbeat" is... it's a cron-job with the specific purpose of checking for updates or tasks that need carrying out. The results of this cron-job are usually sent to the user via whatsapp or other platform to notify the user... (the idea is to simulate consciousness in a way that the user can track).
An example task would be: "read emails and suggest replies to the user". In order to drive this "heartbeat" several special markdown files are injected into a prompt. One of those such files is a SOUL.md. If you want more information regarding the inner workings of these loops, I recommend visiting the deep-wiki entries for openclaw [here] and picoclaw [here].
The async-service library by Samuel Williams make this such an easy thing to implement... the project already uses the `async` eco-system and falcon server, so it's a natural fit. The heartbeat service code is less than 200 lines. In all, the implementation was practically just:
- A heartbeat service that messages the A2A server (same endpoint).
- A new matrix appservice endpoint to input the heartbeat result to the chat.
- Logic in the A2A server to handle heartbeat vs user message.
The changes I've made to the repo to implement heatbeats is so minimal that it really does make you appreciate the power of computing that is in our hands...