Before people get too up in arms about a C API accessing some binary blobs, rest assured there is XML you could process instead.
Re:GTK4 Bindings for Common Lisp
by jmercouris on Tuesday September 20, 2022 @11:57PM
(#32920693)
Well, actually not everything possible via CFFI is possible via GIR. I've run into some issues before. I cannot recall what exactly, but it was a showstopper for me :-(.
The second step builds a .typelib file which is a mmap()'able data-structure used at runtime by dynamic languages. It's smaller as it doesn't contain things like function/class documentation.
Additionally, the language bindings tend to use the GIRepository base structure which handles loading those mmap()'able data structures with an C API on-top of it.