You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Source code of Hylki is bloated compared to similar GTK4 email clients. #308
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.
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.
Yeah I had Claude do an assessment and I was able to trim down the code by about 3k lines but this is what's left over (See screenshot). A pretty sizable chunk of those lines are comments, tests and things lingering for the demo mode I use to make screenshots and run tests outside of my actual accounts. So if we absolutely had to, we could shave around 34k lines off the codebase.
What I absolutely don't want to do is, in the process of this, break anything or mess up a working feature. Everything is working great right now, inspite of the bloat lol.
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):
AI doesn't know what "good code" is
AI doesn't necessarily know when a good opportunity stems from having shared properties and libraries with another function / section
Lines of code include:
excessive commenting, sure
excessive & arbitrary commits
arbitrary .po strings (I've noticed a lot of redundant duplicates while translating and that multiplies for every other language)
interestingly, SVG files are just code instructions
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.
Activity
yioannides commentedon Sep 27, 2026
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.
hyprlab commentedon Sep 27, 2026
Yeah I had Claude do an assessment and I was able to trim down the code by about 3k lines but this is what's left over (See screenshot). A pretty sizable chunk of those lines are comments, tests and things lingering for the demo mode I use to make screenshots and run tests outside of my actual accounts. So if we absolutely had to, we could shave around 34k lines off the codebase.
What I absolutely don't want to do is, in the process of this, break anything or mess up a working feature. Everything is working great right now, inspite of the bloat lol.
refactor: remove code nothing calls (#308)
refactor: decode and encode base64 with the base64 crate (#308)
refactor: one percent-encoding module in place of eight copies (#308)
refactor: escape HTML with glib::markup_escape_text (#308)
refactor: read key files and resolve URLs with GLib (#308)
refactor: dates, sizes and passwords from chrono, GLib and rng (#308)
refactor(imap): code mailbox names with base64's IMAP_MUTF7 (#308)
refactor: write hex colors with color::to_hex (#308)
refactor(composer): parse HTML for Markdown with html5ever (#308)
fix(list): show previews for mail with a <header> element (#308)
refactor(composer): style Markdown's HTML with css-inline (#308)
refactor: find a site's icon links with html5ever (#308)
refactor(worker): build error events with two constructors (#308)
1 remaining item
refactor(worker): share the Outbox handling across backends (#308)
refactor(settings): read privacy.toml once at startup (#308)
refactor(settings): save privacy.toml from a PrivacyFile (#308)
refactor(settings): send plain settings changes to the app (#308)
refactor(settings): one pref! macro for storing a changed setting (#308)
refactor(settings): carry Preferences' settings in AppMsg::Pref (#308)
refactor(settings): one update_state helper for state.toml (#308)
refactor(graph): one helper drops the draft a message came from (#308)
refactor: look up Junk and Trash with folder_path_for (#308)
refactor(graph): move the Microsoft 365 backend to worker/graph.rs
Merge the #308 work: bug fixes, library swaps and deduplication
yioannides commentedon Sep 27, 2026
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):
.postrings (I've noticed a lot of redundant duplicates while translating and that multiplies for every other language)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.
hyprlab commentedon Sep 27, 2026
Im going to move this one out of issues and into a discussion thread