logoalt Hacker News

vmg12last Sunday at 7:13 PM6 repliesview on HN

Drawing to the terminal / rendering / whatever, this is all arguing semantics and very uninteresting and not insightful.

> they need a high powered game engine rendering loop

Don't believe the bs on twitter. Claude code source was leaked, there is no high powered game engine rendering loop.

> It needs to stream text to stdout

These apps are doing real work taking text that is streaming in and doing syntax highlighting, calculating diffs, and rendering markdown. If the work was split across threads they would not use anywhere close to as much power and there would not be a slow ui.

If you think this is actually nothing, prove it. Put the code up on github that shows taking a constant random stream of markdown, code, and diffs and displays it in the terminal can be done cheaply on a single thread.

The reason the computer gets hot and uses more power is because the cpu is getting close to 100% utilization.


Replies

wild_egglast Sunday at 8:20 PM

There are two different arguments here.

> These apps are doing real work taking text that is streaming in and doing syntax highlighting, calculating diffs, and rendering markdown.

The first argument is that these are expensive operations. They are not. And the second argument is the assumption that these are desirable things for an agent system to be doing. That's a personal preference but, personally, I don't want them and would appreciate a way to disable all of that to reduce CPU use.

show 1 reply
mixmastamyklast Sunday at 8:59 PM

Stuff doable on a pentium 90, and before that, just slowly.

show 1 reply
nnmglast Sunday at 8:27 PM

I don't think any of that seriously counts as real work.

Casey Muratori addressed this years ago with the windows terminal drama, https://github.com/cmuratori/refterm

cdelsolarlast Monday at 12:35 AM

The heck? It does all that rendering for a tiny fraction of the total amount of time that the TUI is running. The streaming is IO bound, there’s no way that it’s outputting nearly enough text to tax the CPU that much.

anthklast Sunday at 7:30 PM

Sorry, but nope; Golang there would be there a beast doing that in a much, much faster way. Not to mention C/C++ with NCurses.

show 1 reply
redsocksfan45last Sunday at 8:07 PM

[dead]