How does GObject Introspection Work?
Channel: James Westman
Date: 25/10/2021

GObject Introspection is what powers the GNOME ecosystem's language bindings so you can write apps in your favorite language. It's an XML description of the API that can be read by bindings and other tools. In this video, I'll explain what it does and how a C library can be used in Python code easily.


Links:
- GObject tutorial: https://docs.gtk.org/gobject/tutorial.html
- More about the GObject type system: https://docs.gtk.org/gobject/concepts.html
- An insightful blog post about the history of GObject Introspection: https://people.gnome.org/~federico/blog/magic-of-gobject-introspection.html


Fun fact: the documentation site linked above is also generated from .gir files! This tool is called gi-docgen: https://gitlab.gnome.org/GNOME/gi-docgen/



You can support my videos, and my work on Free Software, on GitHub Sponsors! https://github.com/sponsors/flyingpimonster/ Thanks to everyone who has sponsored me so far!