Supercharging Ruby with Embedded TypedData Objects

June 7, 2025 Ruby continues to evolve, balancing its expressive elegance with a growing focus on performance. One of the latest improvements introduced in Ruby 3.3 is embedded TypedData objects, a low-level optimization with impressive results. This advancement, developed by Peter Zhu and Jean Boussier, is already paying dividends in core Ruby operations—and soon, third-party … Continue reading Supercharging Ruby with Embedded TypedData Objects

Why Enumerable#tally Can Be Slower Than each_with_object in Ruby

April 29, 2025 Since Ruby 2.7, the Enumerable#tally method has provided a clean and elegant way to count element occurrences in an enumerable. While it's an excellent addition for code readability, many Rubyists have noticed that in performance-critical scenarios, it tends to be slower than the classic each_with_object approach. In this article, we’ll explore why … Continue reading Why Enumerable#tally Can Be Slower Than each_with_object in Ruby

🧠 Understanding Ruby’s YARV (Yet Another Ruby VM) Stack Mechanics – From Code to Execution

April 21, 2025 Ruby is often praised for its expressiveness and ease of use. But behind the scenes, there's a powerful virtual machine making it all happen: YARV (Yet Another Ruby VM). If you’ve ever wondered how your Ruby code actually runs, this article is for you. Let’s dive into the inner mechanics using this … Continue reading 🧠 Understanding Ruby’s YARV (Yet Another Ruby VM) Stack Mechanics – From Code to Execution