Live data from Hacker News

Building a TUI is easy now

hatchet.run

121–130 of 262 posts

Re: Building a TUI is easy now

#121

I love Claude Code, but how they made the TUI is just plain stupid. Not how it looks, but you know, the React part.

If the render is already made in JavaScript it makes sense to reuse react as the reconciliation engine instead of building one from scratch.

Re: Building a TUI is easy now

#122

I don't see any real advantage of TUIs over web forms or GUIs for the same thing. I do like CLIs though, especially the ones that are properly capable of working in pipelines. Composing a pipeline of simple command-line utilities to achieve exactly what you want is very powerful.

Gemini made a lovely TUI for my C# project, but afterwards it said it could just spin up a Kestrel web server inside the app instead which would be a much better solution for managing it, which was fair. (I have a line in my Agents to warn me when I specify a way of building something and it's not the ideal solution)

> I have a line in my Agents to warn me when I specify a way of building something and it's not the ideal solution

And that helps? I tried that a while ago and it very often said this is not a good way of doing something even though it was objectively the best way of doing something. I removed it after a while because it was too random.

Re: Building a TUI is easy now

#125
I haven’t done much with Claude code yet but I’ve watched some rather recent videos of other people leverage it to get work done and I couldn’t help thinking, are we going to end up with a similar UI but with fully deterministic “agents” at the end of this hype cycle.

All of the skills I saw demonstrated were deterministic. So does this end in a Functional Core, Imperative Shell scenario that looks like a Terraform Plan and a search engine-style natural language processor out front?

Re: Building a TUI is easy now

#126

Earlier quoted context omitted.

You're right - I'll remove that now until we can get it more performant or drop it altogether. This wasn't something we caught during testing. I appreciate the feedback!

While you are at it, it would be good, if the post was readable at all, without having to run JS on the page.

It rendered perfectly, without JavaScript, in Emacs EWW.

Re: Building a TUI is easy now

#127
post #48

I think TUIs-that-want-to-be-GUIs (as opposed to terminal commands just outputting plain text) are sad. Mainly because they’re largely inaccessible. They flatten the structure of a UI under a character stream. You’re forced to use it exactly the way it was designed and no different. Modern GUIs, even web pages too, expose enough structure to the OS to let you use it more freely. I get why people build TUIs, but it’s…

They are GUIs --- just minecraft GUIs. One day, we will rediscover why GUI toolkits exist. The only real advantage TUIs have over GUIs is easy remoting, TBH. Maybe that's enough for people. Otherwise? They're just hair shirts.

I've use Claude to make myself a number of little tools and weird apps that only I would want lately. They need to be cross-platform between Linux and Mac and sometimes Windows. The best approaches I've found are Tauri (+Svelte for making layout easier) for lightweight GUIs but for anything more complex I prefer a TUI. The Ratatui framework works very well. A TUI feels like a "real" app as opposed to a glorified webpage. For actually serious software I'd want a native GUI on each platform.

Re: Building a TUI is easy now

#128
post #88

Earlier quoted context omitted.

> to Commodore 64 level That’s unfair to C64 which can smooth scroll very well.

I owned a C64. Remember how buttery smooth the interfaces of those '80s computers were?

fewer layers between software and hardware...

Re: Building a TUI is easy now

#129
post #88

Earlier quoted context omitted.

> to Commodore 64 level That’s unfair to C64 which can smooth scroll very well.

I owned a C64. Remember how buttery smooth the interfaces of those '80s computers were?

Not Apples. But Amigas, omg those were smooth.

Re: Building a TUI is easy now

#130

I love Claude Code, but how they made the TUI is just plain stupid. Not how it looks, but you know, the React part.

If the render is already made in JavaScript it makes sense to reuse react as the reconciliation engine instead of building one from scratch.

What is a "reconciliation engine" and why does a TUI need one?
Post reply on HN