# Writing DSL for DSL: Catch Code as It's Born with TracePoint

- URL: https://evilmartians.com/events/writing-dsl-for-dsl-rubykaigi
- Date: 2026-04-22T00:00:00.000Z
- Conference: RubyKaigi 2026
- City: Hakodate, Hokkaido, Japan
- Speakers: Andrey Novikov
- Event website: https://rubykaigi.org/2026
- Video: https://www.youtube.com/watch?v=K_XzFQdAuKY
- Slides: https://speakerdeck.com/player/bab6b48a1bee41699c333a8cea555a6a

---

Let's dive into how to leverage TracePoint API not for performance profiling, but for introspection in metaprogramming-heavy contexts, focusing on real-world use cases like building DSLs for DSLs. We'll explore how TracePoint enables elegant solutions where traditional methods fail—such as dynamically linking logic to DSL-generated methods. Expect a blend of advanced Ruby techniques, practical insights, and a fresh perspective on a lesser-known API.
