
Product Demo – Summit Bridge Works | ai video made with ngram
About the video
This AI video was made with ngram to walk through a GitHub pull request for the ghostty terminal project. A presenter appears in a webcam overlay while scrolling through PR #9225, titled 'core: PageList tracks minimum metadata for rendering a scrollbar,' opened by mitchellh. The video explains how the PageList data structure now tracks total screen length, viewport offset, and viewport length so a scrollbar can eventually be rendered, while noting that the scrollbar UI itself is not yet implemented in this change. It covers the tradeoff between O(1) offset calculation when the viewport is at the top or bottom versus the more expensive O(N) case for arbitrary jumps, and how delta updates applied during row additions or removals avoid recalculating from scratch. The presenter also explains the renderer's approach to notifying the app of scrollbar state changes: rather than messaging on every terminal change, which would slow the IO thread, updates are triggered in sync with the renderer's vsync and only sent when the scrollbar state actually changes. The discussion closes on performance reasoning, noting that updates only matter once a frame has actually been rendered for the user to see. Overall the video documents the internal design reasoning behind a core terminal engineering change ahead of the scrollbar feature itself shipping.
- Ghostty
- GitHub
- Pull Request
- PageList
- Scrollbar
- Code Review
- Terminal