Skip to content

Source code of Hylki is bloated compared to similar GTK4 email clients. #308

Closed

Description

@taprobane99

I've just compared Hylki to 2 other recently developed email clients.

  1. Hand-written client in c - 21,000 lines

  2. Ai assisted client in python - 6500 lines

  3. 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.

Activity

  1. yioannides commented on Sep 27, 2026

    @yioannides
    Contributor

    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.

  2. hyprlab commented on Sep 27, 2026

    @hyprlab
    Owner

    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.

    Image
  3. 1 remaining item

  4. yioannides commented on Sep 27, 2026

    @yioannides
    Contributor

    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.

  5. hyprlab commented on Sep 27, 2026

    @hyprlab
    Owner

    Im going to move this one out of issues and into a discussion thread

  6. Repository owner locked and limited conversation to collaborators on Sep 27, 2026
  7. converted this issue into a discussion #311 on Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions