We're sorry but this page doesn't work properly without JavaScript enabled. Please enable it to continue.
Feedback

Zig: the perfect language for a wayland compositor?

Formale Metadaten

Titel
Zig: the perfect language for a wayland compositor?
Untertitel
Bringing increased type safety to libwayland and wlroots
Serientitel
Anzahl der Teile
637
Autor
Mitwirkende
N. N.
Lizenz
CC-Namensnennung 2.0 Belgien:
Sie dürfen das Werk bzw. den Inhalt zu jedem legalen Zweck nutzen, verändern und in unveränderter oder veränderter Form vervielfältigen, verbreiten und öffentlich zugänglich machen, sofern Sie den Namen des Autors/Rechteinhabers in der von ihm festgelegten Weise nennen.
Identifikatoren
Herausgeber
Erscheinungsjahr
Sprache

Inhaltliche Metadaten

Fachgebiet
Genre
Abstract
I explore how I have eliminated nearly all void pointer casting from the libwayland/wlroots APIs in my Zig bindings without introducing overhead or significantly increasing complexity. This will include a demonstration of how Zig's compile time code execution features make such a task quite straightforward. I will then discuss the experience of updating river, my wayland compositor, to use the bindings over the auto-generated bindings provided by Zig's cImport() feature.