Hacker News new | past | comments | ask | show | jobs | submit login

How does it balance tasks across CPU cores?

The thing I like in Go is that I don’t have to worry about that, it’s all automatic.




It does the scheduling for you. That's why all Futures put onto task through `async_std::task` must be `Send`. That's Rust parlance for "can be safely migrated between threads".

It's not Go, but we know what people like about Go. <3


I am wondering that also, scheduler is of most importance.

Go is such a joy to work with.


Has preemptive scheduling landed in Go ? Because last time I worked with it (Go 1.10) it was still cooperative and you had to worry about it otherwise you could get bitten badly.


In Rust you use async/await with a scheduler like mio that will automatically do that for you as well.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: