Hacker News new | ask | show | jobs
by buremba 12 days ago
Not really because you're not building a database or GUI app where using native elements & data structures help a lot with memory pressure.

TUI renderer is the one using the memory heavily so your terminal takes the heavy lifing. If you're managing the buffers and out-of-screen context good enough, Typescript can be pretty efficient.

1 comments

I love opencode but it chews through memory on my 64gb MacBook Pro. Can’t have too many long running sessions because the memory use just slowly creeps up.

It’s not about the terminal at all which as you noted accounts for minimal isage. It’s all the internal chat and history and everything else the agent tracks - all of which are smallish (and largish) strings allocated on the heap.

I don’t have the same issues with rust based tuis.

What's the rust based tui that has same capability as opencode?
not 100% feature compatible but close enough in terms of capabilities that I use: codex, and grok build.