# Compiling a Call to a Block

DevFeed: [Compiling a Call to a Block](<https://devfeed.tech/articles/compiling-a-call-to-a-block-31809.md>)

Original publisher: [Read original article](<https://patshaughnessy.net/2025/11/3/compiling-a-call-to-a-block>)

Author: Pat Shaughnessy

Published: 2025-11-03T00:00:00Z

Content type: tutorial

Language: en

Sources: [Pat Shaughnessy](<https://devfeed.tech/sources/pat-shaughnessy.md>)

Topics: [Ruby](<https://devfeed.tech/topics/ruby.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>), [Parser](<https://devfeed.tech/topics/parser.md>), [Code](<https://devfeed.tech/topics/code.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [language](<https://devfeed.tech/tags/language.md>), [ruby](<https://devfeed.tech/tags/ruby.md>), [syntax](<https://devfeed.tech/tags/syntax.md>), [updating-ruby-under-a-microscope](<https://devfeed.tech/tags/updating-ruby-under-a-microscope.md>)

## AI overview

An excerpt from a revised edition of Ruby Under a Microscope explains how Ruby's compiler handles a call to the 10.times method with a block. It examines the Prism parser's redesigned abstract syntax tree and the corresponding YARV instruction generation.

## Source excerpt

I've started working on a new edition of Ruby Under a Microscope that covers Ruby 3.x. I'm working on this in my spare time, so it will take a while. Leave a comment or drop me a line and I'll email you when it's finished. This week's excerpt