Hacker News with Generative AI: Ruby

Fast Allocations in Ruby 3.5 (railsatscale.com)
Many Ruby applications allocate objects. What if we could make allocating objects six times faster? We can! Read on to learn more!
Fast Allocations in Ruby 3.5 (railsatscale.com)
Many Ruby applications allocate objects. What if we could make allocating objects six times faster? We can! Read on to learn more!
SDB Scans the Ruby Stack Without the GVL (github.com/yfractal)
What Is the Difference Between a Block, a Proc, and a Lambda in Ruby? (2013) (awaxman.com)
While it looks like these are all very similar, there are subtle differences that I will cover below.
Demystifying Ruby: It's all about threads (2024) (papey.fr)
Ruby is a dynamic, interpreted, open-source programming language known for its simplicity, productivity, and its “human-readable” syntax. Ruby is often used in web development, particularly with the Ruby on Rails framework. It supports object-oriented, functional, and imperative programming paradigms.
Coding agent in 94 lines of Ruby (radanskoric.com)
“It’s not that hard to build a fully functioning, code-editing agent.”
ZJIT has been merged into Ruby (railsatscale.com)
Following Maxime’s presentation at RubyKaigi 2025, the Ruby developers meeting, and Matz-san’s approval, ZJIT has been merged into Ruby. Hurray! In this post, we will give a high-level overview of the project, which is very early in development.
Ruby 3.5 Feature: Namespace on read (ruby-lang.org)
This replaces #19744
Show HN: A backend agnostic Ruby framework for building reactive desktop apps (codeberg.org)
A backend agnostic ruby framework for building reactive desktop applications
CVE-2025-46336 (rack-session): Rack session gets restored after deletion (rubysec.com)
When using the Rack::Session::Pool middleware, simultaneous rack requests can restore a deleted rack session, which allows the unauthenticated user to occupy that session.
Unicorn Unix Magic Tricks (2014) (thorstenball.com)
Unicorn is a webserver written in Ruby for Rails and Rack applications. When I first used it I was amazed. This is magic, I thought. It had to be. Why?
The Unofficial Ruby Usage Guide (caliban.org)
You may be interested to know that this document was originally written for internal use in the Operations department at Google.
Fast(er) regular expression engines in Ruby (serpapi.com)
Performance-oriented comparison of alternative regexp engines that may (or may not) speed up your Ruby code.
Creating beautiful charts with JRuby and JFreeChart (headius.com)
I recently returned from RubyKaigi where I had the opportunity to sit down with members of the Japanese Ruby community and show them a little bit of JRuby. One of the items that came up a few times was the difficulty of utilizing external libraries from Ruby: if it’s a C library, typically you have to either write a C extension or do the extra work of writing up an FFI binding.
Homebrew 4.5.0 (brew.sh)
Today, I’d like to announce Homebrew 4.5.0. The most significant changes since 4.4.0 are major improvements to brew bundle/services, preliminary Linux support for casks, official Support Tiers, Tier 2 ARM64 Linux support, Ruby 3.4 and several deprecations.
Write an Interpreter in Ruby (speakerdeck.com)
mruby 3.4.0 (mruby.org)
We are announcing the first stable release of mruby 3.4 series - mruby 3.4.0.
RubyKaigi: Empowering Developers with HTML-Aware ERB Tooling (speakerdeck.com)
ERB tooling has lagged behind modern web development needs, especially with the rise of Hotwire and HTML-over-the-wire. Discover a new HTML-aware ERB parser that unlocks advanced developer tools like formatters, linters, and LSP integrations, enhancing how we build and ship HTML in our Ruby applications.
Show HN: I built a Ruby gem that handles memoization with a ttl (github.com/mishalzaman)
MemoTTL is a thread-safe memoization utility for Ruby that supports TTL (Time-To-Live) and LRU (Least Recently Used) eviction.
Blogging with Ruby, Middleman and Tailwind CSS (harrisonbroadbent.com)
You probably haven’t heard of Middleman, a Ruby static site generator.
Ruby: Proposal to Upstream ZJIT (ruby-lang.org)
For the past 3 months, the YJIT team at Shopify has been working on a next-generation Ruby JIT, which we refer to as ZJIT. This new compiler is currently being developed in a private fork, with the hope that we can eventually upstream it into ruby/ruby. Maxime Chevalier-Boisvert will give a talk at RubyKaigi 2025 to officially announce the project to the Ruby community and the broader public.
JRuby 10 released with support for Ruby 3.4 (jruby.org)
The JRuby community is pleased to announce the release of JRuby 10.0.0.0.
MonkeysPaw – A prompt-driven web framework in Ruby (worksonmymachine.substack.com)
Meet MonkeysPaw: a web framework where all the pages are prompts and what you see is whatever the LLM thinks you meant. Welcome to the first installment of “Works on Your Machine” where I’m sharing things that have graduated beyond just working on my machine.
RubyUI (Former PhlexUI): Ruby Gem for RubyUI Components (github.com/ruby-ui)
Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
Ruby makes advanced CLI options easy (searls.co)
If you're not a "UNIX person", the thought of writing a command line application can be scary and off-putting.
The Gang of Four is wrong and you don't understand delegation (2012) (saturnflyer.com)
The Gang of Four got it wrong. Ruby's standard library has it wrong. Rails has it wrong.
Nōdo – Call Node.js from Ruby (github.com/mtgrosser)
Exploring Ruby Ractors – I paid for for 10 cores I'm gonna use 10 cores (jpterry.com)
“I paid for 10 cores, I’m gonna use 10 cores!”
Ruby, Ractors, and lock-free data structures (iliabylich.github.io)
This story is about concurrent data structures in the context of Ruby. The goal here is to demonstrate how true parallelism can be achieved with global mutable state (which at the time of writing, is not supported by built-in Ruby primitives).
Ratomic: Provides Mutable data structures for use with Ruby's Ractors (github.com/mperham)