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 (3)

  1. This sounds like a valid criticism until you realise that at a low level you need to redraw the UI for every frame anyway.

    It's only in higher level operations that frequent redrawing becomes a problem.

    Replies (1)
    1. Of course you don't; you only need to redraw things that have changed, when they change.

      Back when computers didn't have so much spare capacity that's how most UIs worked. That's why the Win32 and X11 systems (and probably others but those are the ones I'm familiar with) give your application information about what specific rectangle of the window needs to be repainted when they ask the application to repaint something.

      Replies (1)
      1. That's still redrawing everything, just with caching.

        With the current rise in compute capacity, caching is not automatically faster than recomputation.