Building a Multithreaded TUI With Rust and Cursive (absolutely-vivid.srht.site)
from absolutely_vivid@programming.dev to rust@programming.dev on 17 Aug 2024 20:51
https://programming.dev/post/18254815

I wrote a quick blog post about a pattern I discovered while building TUI applications in Rust. It’s a bit unrefined, and I’m working on package to help make the pattern easier. Let me know what you think!

#rust

threaded - newest

Deebster@programming.dev on 31 Aug 2024 01:53 collapse

I’m of the belief that spawning threads on demand is an anti-pattern; threads should spawn on program startup, and sleep until they have work to do.

Hmm, I need to think on this to decide whether I agree. What’s your reasoning for this opinion? Is it just based on lower latency, or is it more of an architectural/correctness thing?