Skip to main content

Inside Reflection

UB5.132 | Day 2 | 10:30 - 11:00 | Speakers: Valentyn Yukhymenko

Inside Reflection
A picture of a devroom at FOSDEM 2024
Open in browser

Notes

Abstract

Reflection is a form of metaprogramming that often feels like magic — letting you inspect and manipulate your code at runtime. But there's no magic here at all — just clever engineering that makes your programs simpler and more flexible.

In this talk, we'll take a look at how reflection actually works under the hood in Go. We'll explore how types and values are represented at runtime, what really happens when you call reflect.ValueOf or reflect.TypeOf, and how the compiler keeps this dynamic capability simple, yet powerful in its implementation.

After this talk, reflection will look a little less mysterious — and a lot more elegant.

Attachments


Notice: The placeholder video image is licensed under CC BY-SA 4.0. The original image can be found hereChanges made to the image are: Cropped the image to a new ratio, part of the image was cut off.