I’ve never understood the “async I/O is too complicated, why can’t we just use goroutines?” criticism of Rust. You can! They’re called threads, and they work great.
-
-
This is the result of an argument between me and a friend over scalability of OS threads. - You can't spawn 10ks threads in OS. - Yes you can! - Oh really? Just try that! - Here you go:https://github.com/elazarl/10kthreads#readme …
-
You can spawn far more than thousands of OS threads. The practical limit on Linux for threads with guard pages is based on the arbitrary max_map_count configuration option, and that's due to the approach to detecting stack overflow rather than the choice of 1:1 vs M:N scheduling.
- 3 more replies
New conversation -
-
-
This all OS dependent, most(?) exokernel impl had upcalls and barrelfish in particular doesn't deal with threads in the kernel (iirc) instead there was task level parallelism.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.