~/talk

Niri: Experience Building a Wayland Compositor in Rust

TalkinRussianat RustCon 2024 · on Friday, 2024-12-06· [rust, web-platform]
links:none on file
slides:none on file

An experience report on building the Wayland compositor niri in Rust, covering how Wayland I/O and async programming are integrated with shared global state, using proptest for randomized testing to ensure logic correctness, and using the Tracy profiler plus a custom tester to measure input latency. It names Rust, Wayland, proptest, Tracy, and discusses compositor responsibilities like input event dispatch, monitor rendering, window layout and screen recording frame preparation.

AI-written summary · about

  1. 0:00Introduction
  2. 1:54What is a Wayland compositor
  3. 3:20Goals of compositor
  4. 4:06Why use compositor libraries
  5. 5:07Wayland protocol basics
  6. 7:39Rust async calls
  7. 9:28Maintaining compositor correctness
  8. 11:44Testing compositor
  9. 12:49Mock testing window layout
  10. 14:56Property testing with proptest
  11. 17:44Visual testing with animations
  12. 18:49User feedback and config tests
  13. 19:10Profiling with Tracy
  14. 25:16Debugging memory leaks
  15. 26:38Latency testing hardware
  16. 28:48Rust challenges in compositors
  17. 30:33Conclusion and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.