Show HN: A 300k-line Zig desktop environment with its own compositor,GUI toolkit

54 points by oxydizer 4 hours ago on hackernews | 20 comments

truekonrads | 2 hours ago

Snappy. Somehow reminds me of e16

[OP] oxydizer | 2 hours ago

haha yeah thanks, get that a lot!

DeepLogin | 2 hours ago

Does it support Vulkan?

[OP] oxydizer | 2 hours ago

yep, with HDR
Does the about at the top of the page need to be updated? It says it’s built on OpenGL ES—“RediWM is a Wayland compositor written in Zig (OpenGL ES) that includes everything in one process”.

[OP] oxydizer | 9 minutes ago

probably but OpenGL ES is if you have older hardware so it still works, Vulkan isnt forced

shoobiedoo | 2 hours ago

Looks very nice. I'm beyond happy with Plasma but I will definitely fire up a VM and try this out

[OP] oxydizer | 2 hours ago

thanks mate, you can run it nested as well on your Wayland session

xstas1 | 2 hours ago

vibe coded in a month?

keyle | an hour ago

Looks great, and if it were a little tool like a differ, I'd be enthusiastic about trying it. But this is a windows manager, it's much more vital "I have to live with it", and for this I would prefer a horde of people have worked on it rather than Claude spewing it in 2 months. But the video demo, the website, the wiki, impressive work for mostly 1 person to have delivered.

bscphil | 55 minutes ago

What's the library used for font rendering? Looks slightly broken in the screenshots, like antialiasing isn't working properly. Maybe the alpha is being blended with the wrong gamma?

[OP] oxydizer | 51 minutes ago

Font rendering uses FreeType, HarfBuzz for text shaping, Cairo for drawing the rendered text. The font looks sharp it's just screenshots look overly compressed.
Feels a little strange to advertise here by the amount of lines of code it has in various languages?
It’s obviously vibed, LoC might be the only thing the author actually knows about the codebase.

[OP] oxydizer | 19 minutes ago

yeah same, sadly when you list technical bits like custom scene graph, own ui toolkit , etc nobody's really interested! although I feel LOC is at least some relatable measure of a project's scope
What's your estimate of equivalent LOC if it were human coded? 30k? 10k?
(src/calculator/app.zig fn clicked is the kind of thing I have in mind... clearly it's an insane implementation, but as a non-zig-fluent developer it's not clear to me if this should be 2 lines, or if like in most other languages it shouldn't exist at all because the insanity is the definition of labels as an implicitly-indexed array rather than as a map. That's just the first random file I opened, but the second one had completely different insanity that looks like it might be a verbose workaround to zig's lack of RAII rather than just normal AI puffery…)

skullone | 28 minutes ago

I'm getting tired of this AI slop "look what I didn't write!"

skullone | 27 minutes ago

And the OP is just reposting this every month.

brandonmenc | 9 minutes ago

I thought this said 300 lines.

I’m somewhat less impressed now.