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
(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…)
I don't see anything insane about it? It looks like any other code for programmatically generating a UI and handling its events, layout, and keypresses.
If you're used to your RAD or layout design tool hiding that stuff from you then sure, it looks messy. And it could definitely be made more readable. And like you I've already identified some unhandled edge-cases. But is it insane? Nah.
It creates an array of non-localized labels on line 20. Most of these labels are single utf-8 characters, with one exception. Then, starting on line 134, there's a (nested! we'll get back to that) switch statement that maps the indexes of those labels to actions. This is completely unreviewable -- to confirm that item 19 has a label matching the action for equals requires counting them. Then the nested switch... passes things along to yet another function (why?) with stringly-typed enum actions, but at the end gets bored and just... decodes the first character of the non-localized label and uses that as the stringly-typed enum value. Except of course that most of the previous entries (1, 2, 11, 15 at a glance... maybe more; as I said, this is unreviewable!) could use the exact same logic if you're willing to trust that the label matches what the downstream function (which needn't even exist) expects.
In what way is this sane? The obvious approach would be to have the global const structure encoding the non-localized label (or a key for a localized label) and the action in a map of some sort so that they're next to each other and reviewable. If an index is needed for layout code, that could be included, preferably explicitly so it can be reviewed... or the parameters the layout code actually needs (position and size) could be in the table as well, making it clear what the heck is being built in one place in the code.
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?
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.
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.
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”.
Feels a little strange to advertise here by the amount of lines of code it has in various languages?
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
It’s obviously vibed, LoC might be the only thing the author actually knows about the codebase.
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…)
I don't see anything insane about it? It looks like any other code for programmatically generating a UI and handling its events, layout, and keypresses.
If you're used to your RAD or layout design tool hiding that stuff from you then sure, it looks messy. And it could definitely be made more readable. And like you I've already identified some unhandled edge-cases. But is it insane? Nah.
It creates an array of non-localized labels on line 20. Most of these labels are single utf-8 characters, with one exception. Then, starting on line 134, there's a (nested! we'll get back to that) switch statement that maps the indexes of those labels to actions. This is completely unreviewable -- to confirm that item 19 has a label matching the action for equals requires counting them. Then the nested switch... passes things along to yet another function (why?) with stringly-typed enum actions, but at the end gets bored and just... decodes the first character of the non-localized label and uses that as the stringly-typed enum value. Except of course that most of the previous entries (1, 2, 11, 15 at a glance... maybe more; as I said, this is unreviewable!) could use the exact same logic if you're willing to trust that the label matches what the downstream function (which needn't even exist) expects.
In what way is this sane? The obvious approach would be to have the global const structure encoding the non-localized label (or a key for a localized label) and the action in a map of some sort so that they're next to each other and reviewable. If an index is needed for layout code, that could be included, preferably explicitly so it can be reviewed... or the parameters the layout code actually needs (position and size) could be in the table as well, making it clear what the heck is being built in one place in the code.
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?
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.
Looks very nice. I'm beyond happy with Plasma but I will definitely fire up a VM and try this out
thanks mate, you can run it nested as well on your Wayland session
Snappy. Somehow reminds me of e16
haha yeah thanks, get that a lot!
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.
I thought this said 300 lines.
I’m somewhat less impressed now.
haha yeah anyone would be impressed! at least I've tried?
I'm getting tired of this AI slop "look what I didn't write!"
And the OP is just reposting this every month.
Does it support Vulkan?
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”.
probably but OpenGL ES is if you have older hardware so it still works, Vulkan isnt forced
vibe coded in a month?
Yeep