My hope is that this might be done more neatly in the future. It'd be cool if it became closer to Golang's threading model. Golang doesn't make use of round-robin to assign work. Instead it knows what the load of each core is and schedules tasks accordingly.
Heh, found out today that Rust's async model is turning out to be pretty close to how Node works. This example spawns up 4 event loops, and round-robins requests between them. Like with require('cluster')! https://github.com/tokio-rs/tokio-core/blob/master/examples/echo-threads.rs …
-
-
Show this thread
-
Also: a lot of complexity here seems to come from working around OS shortcomings. What if operating systems had a light threading abstraction built in? Would that make sense even? There seem to be many people working on this problem in parallel. So maybe?
Show this thread -
Tldr: I'm impressed by Go's threading model, and wish Rust could schedule work in the same way
Show this thread
End of conversation
New conversation -
-
-
I really like the await!() macro! The reason is that round-robin thread management can be really inefficient if your workloads aren't uniform. Instead it seems like a more natural fit to spread N workloads over M threads, based on available resources. Shouldn't be manual either
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Cool! Any public code by any chance?
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.