Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> coroutines will (often) only use a single core

That's generally the desired behavior. If you have decoupled, parallel workloads they're going to naturally be working on disjoint data. The idea behind coroutines is that you have some kind of local workload with synchronous data that, for whatever reason, is easiest to express "inside out" with a function that gets to loop over something and "push" the results to its abstracted consumer whose code lives somewhere else, vs. the natural functional paradigm where the inner loop is a conceptual "pull" controlled by the caller.



Thank you for eloquently expressing an observation I probably should have learned years ago.




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

Search: