Saturday, April 26, 2025
All the Bits Fit to Print
Overview of creating a Ruby interpreter for the Monkey language.
Mario Arias presents a talk on writing a Monkey language interpreter in Ruby for the RedDotRuby Conference 2024, exploring lexer, parser, AST, and evaluator components with performance benchmarks against other languages.
Why it matters: Demonstrates building an interpreter in Ruby, enhancing understanding of language design and implementation concepts.
The big picture: Covers all interpreter phases and compares execution speed with Python, Lua, Go, Crystal, and Ruby variants.
Stunning stat: Transpiled Ruby interpreter runs benchmarks in 0.15 seconds, outperforming native Ruby and other languages tested.
Commenters say: Many appreciate Ruby's metaprogramming and DSL capabilities over custom interpreters, highlighting practical lessons from their own experiences.