Hacker News new | ask | show | jobs
by wmsiler 1341 days ago
Every time I see this project, I think it looks awesome and useful, but I hate that it's written in python. I love python and I use it all the time, but I hate to see so much effort and innovation going into something that can only be used by this one language. If this had been written in C, Zig, Rust or some other language that produces easily embeddable binaries with a C API, then you could have idiomatic APIs for lots of languages instead of having to repeatedly reinvent the wheel.

I don't mean that as any kind of insult to the people who work on this project -- I'm sure writing it in python is way more pleasant than writing in C. I'm just bummed that projects I have in mind that I intend to write in a language other than python can't use this.

2 comments

I agree with you.

https://youtu.be/Gv2I7qTux7g?t=175

If it doesn't speak the C ABI, someone's gonna rewrite it in C.

There are dozens of TUI projects in C. None come close to the ease of use of Textual. I'm not sure I buy this idea of "someone's gonna rewrite in C" as a rule.
> None come close to the ease of use of Textual.

I agree with you there. I wonder how it works under the hood, especially those animated panels. I'm gonna go read the source code.

Kinda agree. A rust version would be awesome.
tui-rs[0] is the closest equivalent. It's like the pre-css version of textual.

[0] -- https://github.com/fdehau/tui-rs