https://github.com/ItaloYt/zwl its still missing the wayland-server and may have a few bugs on the multithreading logic, but it kinda works, there's also an example I made while developing the zwl: https://github.com/ItaloYt/mandelbrot-set
#zwl: a wayland implementation(not binding) in zig
1 messages · Page 1 of 1 (latest)
I understand Phoenix making a Zig implementation of X11 because C is such a horrible unsafe language (plus Xorg isn't adding any new features by choice). But Wayland is written in Rust, what's the benefit of rewriting it in Zig?
But Wayland is written in Rust
not true, the majority of compositors are not written in rust
wlroots - c (many compositors use wlroots, some examples sway (c), hyprland (c++), river (zig))
weston - c (reference impl by the wayland team)
KWin - c++ (KDE)
Mutter - c (GNOME)
Niri and Cosmic are written in rust and both use smithay which is similar to wlroots
the actual libwayland, as well as basically everything else in the Wayland space (other than the compositors themselves) are written in C
They then just make bindings that, say, a WM written in rust uses
That doesn't make the binded code "safe", though (not inherently anyway)
Hyprland has not depended on wlroots for a while now
https://hypr.land/news/independentHyprland/