Kruci: Post-mortem of a UI library

Patryk27 | 21 points

> but that, in turn, means that you have to lock that RwLock every frame, also not great.

Unless that RwLock is in contention to get acquired every frame I doubt it will add anything significant to the frame time. Worrying about things like this without profiling can cause a lot of unnecessary complexity when planning abstractions in Rust.

Furthermore- UI updates are usually all run from the same single thread, so it’s unlikely the other widgets could even contend for that lock! You might be able to get away with the lock approach and you may even be able to use Rc<RefCell<_>>, which would get a little speed up.

efnx | 2 hours ago

Very interesting thought process, with lots of nitty gritty details. I recently had some idea around a repetitive process at work, and decided to try it in TUI. Oh what a ride it was!

Even armed with a library like charms or bubbletea in Golang, sometimes its just amazing how all the internals "clicked" together, to render layouts and widgets.

altbdoor | 2 hours ago

I appreciate the name, a niche Polish Internet culture meme

yu3zhou4 | 9 minutes ago