Unofficial Hacker News companion — get notified on comment replies, and more.

Prospero: Bloat-free, native AI coding harness with ImGui (opens external site)

89 points by ingve 4 days ago | github.com | 39 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (6)

  1. This comment makes me wonder: could an AI be used to make binaries leaner, and by what fraction?
    Replies (4)
    1. Of course, and to the extent technically possible. Modern AIs can do pretty much anything as long as there is a clear objective function, and the binary size is absolutely one of them. The problem is just that it is not a commonly asked objective.
      Replies (1)
      1. You could just as well ask the model to minimize startup time and it'll just move all the init into lazy loading on first click - formally the target metric improves but in reality it only gets worse
    2. Check out os8088, a Mac-like operating system for the original IBM PC that comes with a lot of apps for it. AFAICT everything is vibecoded using Claude, Codex, etc and pretty much all apps are very tiny (a few KB).
    3. You absolutely can! Just using cl.exe and not linking everything in Visual Studio will likely cut down your compile times and binary size.
    4. The factor starts by what programming language and GUI toolkit gets chosen, and nowadays more often than not, the wrong path is taken.