Hacker News new | ask | show | jobs
by neomantra 18 days ago
This funny to read! I drive Codex TUI daily. In the past, I paired it with VSCode for better code navigation and file reading; seems similar to what you are saying or do you also mean Source Level Debuggers, etc.? But, I eventually worked on Kitty terminal typesetting instead and now reading the files with my gloss tool [1]; combined with Rex blocks it's really nice, easier on my eyes.

Thanks for Ratatui, which certainly has a top tier name, and also has had tons of great software written with it! I've been inspired by much of that ecosystem, especially the charting libs. The weird GUI stuff I'm doing with Kitty+Bubbletea, can certainly be done on Ratatui, in the spirit of Makepad. IMO, Golang needs this more than Rust.

[1] Viewing the gloss README in the Gloss web viewer (Golang WASM in a Ghostty frame), press 't' to typeset it. Alpha release quality. https://nimbleterminal.github.io/gloss/app.html?src=https%3A...

1 comments

I stopped using the TUI as the Codex app surpassed it for all my use cases including writing TUI stuff. I let it spin up betamax and give me PNGs / GIFs of output to validate in the transcript.

When I was using the Codex CLI, usually had the TUI open in a VSCode terminal window and would run 4-10 windows. The app cut that effort down a bunch.

I've since moved to using T3 Code, though I do use the ChatGPT app to access dots and ChatGPT Pro, but that's about it.

> Thanks for Ratatui, which certainly has a top tier name

The name predates my involvement in the project by about 1 week :D

> [1] Viewing the gloss README in the Gloss web viewer (Golang WASM in a Ghostty frame), press 't' to typeset it. Alpha release quality. https://nimbleterminal.github.io/gloss/app.html?src=https%3A...

neat :)

Oh I didn't know you were the author of that too! I tried your original version for my Kitty-heavy needs and it didn't work for that, just like vhs didn't. I subsequently built one on libghostty-vt some months back, not thinking to circle back to your project. Now I see yours is based on it as well, so I'm sure it works much better than the previous one for that use case!

Not sure if you do this with betamax, but it has been absolutely sick using ntrecord in agent loops. The LLMs make themselves tapes to get to a state and then can look at it to validate or improve. I don't even ask them anymore, they just do the whole thing themselves. I've fixed charting bugs and improved TUI browser conformance this way.

Will check out T3 Code as my workflow is close to what you describe; Rex helps but I still lose focus. Never got into the Codex app.

> Oh I didn't know you were the author of that too! I tried your original version for my Kitty-heavy needs and it didn't work for that, just like vhs didn't.

Betamax now supports kitty image protocol pretty well. Should be even better when libghostty-vt for rust drops the 1.0 version. Happy to take issues on it if there's missing bits.

> Not sure if you do this with betamax, but it has been absolutely sick using ntrecord in agent loops. The LLMs make themselves tapes to get to a state and then can look at it to validate or improve. I don't even ask them anymore, they just do the whole thing themselves. I've fixed charting bugs and improved TUI browser conformance this way.

Yup - it's pretty neat to watch the agent build out Ratatui widgets like https://www.joshka.net/ratatui-diff/ with zero code being seen during the process and steering via only screenshots etc. Documented the process here: https://www.joshka.net/betamax/testing/visual-development/

Wow, we have very similar outlooks in this space! Much of what you are doing for Rustaceans, I am doing for Gophers. Given that, I have a pitch for you:

I found ghostty-web to be important for showing the warez. Coder wasn't updating or improving it, but we needed it so I carried it much further. For example, the Kitty shared memory feature allows much higher graphics performance. Also a lot of work rendering, a WebGPU backend along with support for RTL and non-Western languages.

Recently, post-ghostty 1.0, I formally forked it to a new namespace: ntwebterm. I still expect Ghostty or Singularity to make such. component, but will keep maintaining until then.

I've then made "Booba" to write-once, run-native/browser for Golang programs. The "go tool" feature helped there. You or somebody could probably fashion the same thing, that Rust meta-magic is wild.

Live demo of ntdiff (more of an experiment in using ASTs and typesetting, needs more work): https://nimbleterminal.com/ntdiff/?view=typeset

One can also build hybrid web/terminal applications: https://fuzz.nimbleterminal.com

I've actually done a full ghostty rust rewrite, it works. If anything I'd use that as a basis.

See https://github.com/joshka/qwertty-term/. I probably won't keep it updated though as tracking a moving target is tough.

Not quite sure I follow your improvements / need. I'm not really doing anything in the web gpu space though.