Repository navigation
Source code of Hylki is bloated compared to similar GTK4 email clients. #311
Replies: 9 comments 3 replies
|
Yes, I was expressing similar concerns to @hyprlab only just yesterday regarding bloat, how little input the author has over AI commits and trimming down the fat off of Hylki, if possible. It leaves a much wider security risk area and it'll be absolutely impossible for a human to ever read through & maintain (also more than half of the codebase is probably reiterative and arbitrary). I would suggest a code audit request by an actual human programmer, but I'm not sure if it's possible at this point. |
|
I think there might be some cognizant gaslighting going on here from Claude (self-preservation?), but it's honestly way above my paygrade. What I know is this (including things we've previously discussed):
However, most of it is probably unvetted code with a potentially huge security risk surface and making it impossible for a future maintainer to go through. It's not just trimming down stuff for the sake of trimming down, we need to start getting a lot more involved in how Hylki works before it's too late, even if that means actually learning Rust from scratch. |
|
Im going to move this one out of issues and into a discussion thread |
|
From what I know with other Ai-assisted projects, it will scatter unnecessary interlinked functions across multiple files. So even if you methodically read through individual .rs files you won't be able to disentangle the bloat in such a large project. In my opinion you could just build an entirely new app from scratch, using Hylki as a guide, and as each new building block is added, human-review the code for quality and compactness. |
|
The recent discussion over lines of code between apps as a monolith feels unfounded, if not a bit bad faith, so I wanted to do a more in-depth dive of what all these lines of code are being comprised of and provide more accurate readings. Hylki:
Convey (Geary + GTK4):
Stamp:
Pros:
Cons:
While the above data is only non-conclusive / for learning purposes, there are things to be learned from it. @hyprlab : I know we're beating a dead horse with this discussion and I know it's very unpleasant (I promise this is my last essay!), but after fixing integral existing issues in the next few stable releases, I think there would be some merit in considering a parallel / offline rewrite of Hylki, with a 1:1 feature parity to the existing one, but with smarter, more poignant commits that create more opportunities for brevity by cross-referencing its own data base instead of rewriting existing functions over and over. This could also be a good chance for you to instruct smaller code commits, so that you can have Claude guide you through each and every function, so you can get to know how your app works. You don't have to become a Rust expert over night; just enough to learn how to be more selective and curative over what goes and doesn't go in Hylki, as well as be able to troubleshoot issues without an LLM's involvement (cause you never know what could happen tomorrow). I'm only writing all of this out of love for Hylki and the things we've accomplished so far, it would be real shame if we lose it all due to sheer indifference! |
@yioannides you're good my man! This is definitely worth exploring. I like the idea of debloating it with smarter, better code for sure. Using the existing code base as a reference point for the rebuild makes a lot of sense as it would mean less iterative messiness lol |
Meaning what exactly? It's exactly this kind of toxicity in the linux community that makes people drop out of contributing. It's not the first time you've made that type of comment either. |
|
I will now close this discussion. Feel free to open a new discussion that does not involve me. |

Uh oh!
There was an error while loading. Please reload this page.
I've just compared Hylki to 2 other recently developed email clients.
Hand-written client in c - 21,000 lines
Ai assisted client in python - 6500 lines
Hylki in rust - 93,000 lines
There could be two problems here. Firstly, AI is poor at generating compact code. Secondly you might be writing code which is already handled by system libraries.
Also overall, nearly 100,000 lines seems impossible for a human to check and trim down where necessary.
I don't have a solution to this, but I think this will be a problem for maintenance and security of the codebase.
All reactions