4 ms·
My favorite part about Niri is that a bunch of people said that writing a Wayland compositor in Rust was too hard to do for years. Turns out they're wrong!
by Ericson2314 10mo ago
My favorite part about Niri is that a bunch of people said that writing a Wayland compositor in Rust was too hard to do for years. Turns out they're wrong!
- therein 10mo agoI haven't checked the repo but just carefully use unsafe as an escape hatch when needed and Rust gets out of your way. Sure you give away some of the guarantees that some people get cultish about but you get to tap into a beautiful ecosystem and reap the benefits.
- wongogue 10mo agoThere are more. Jay, cosmic and even xfce is writing their new compositor in Rust.
- tvshtr 10mo agoAlso Pinnacle https://github.com/pinnacle-comp/pinnacle https://github.com/pinnacle-comp/pinnacle
- porkloin 10mo agoThe majority of the projects in this comment chain don't actually independently implement a compositor in Rust - which is a good thing IMHO. Cosmic and Pinaccle at least come from a common core written in rust that is associated with the cosmic project: https://github.com/Smithay/smithay/ https://github.com/Smithay/smithay/
- abhinavk 10mo agoniri also uses smithay. jay is its own thing.
- yencabulator 10mo agoI wish Smithay was actually in Rust and not a wrapper for the C libraries, though. Playing with client-side Wayland programming, wayrs is a lot nicer to deal with than the C library wrappers. https://github.com/MaxVerevkin/wayrs https://github.com/MaxVerevkin/wayrs