News for hackers. Stuff that matters.
Re:Ruby's Proposed STM by andrewzah on Friday October 30, 2020 @01:59PM (#24945048)
From what I can tell, both solve different problems.

There are times when one might want async executors like node's event loop or rust's tokio/async-std, but in other situations one might want os threads or "green threads" with a RwLock or Mutex.

What about a few long running threads that use async internally? ;-)

Re:Ruby's Proposed STM by mumblemumble on Friday October 30, 2020 @05:06PM (#24946895)
That's another thing that C# (or, rather, .NET) handles really well. I can't remember the exact syntax, but the Task API has a way of declaring a background task as "long-running". The key difference is, long-running tasks get a dedicated thread; short-running tasks execute on the thread pool.
Re:Ruby's Proposed STM by dullgiulio on Friday October 30, 2020 @03:10PM (#24945733)
That's the Go runtime.