#zwl: a wayland implementation(not binding) in zig

1 messages · Page 1 of 1 (latest)

shut karma
#

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

GitHub

a libwayland implemented in zig. Contribute to ItaloYt/zwl development by creating an account on GitHub.

GitHub

A program that generates the mandelbrot-set using the cpu and the zwl library - ItaloYt/mandelbrot-set

restive moon
#

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?

azure gull
#

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

wooden coyote
#

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)