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

Gevent wasn't designed for multicore because it doesn't exist today. It's fair to assume some work would have to be done to continue using it safely.

Edit: Solve the problems you actually have.




And that's exactly my point, the entire framework doesn't scale to multicore without a lot of work, just like callbacks. Which was my initial claim.


That's entirely dependent on what the work being done is. It's typical for gevent users to use the built-in queue systems to pass messages between coroutines, similar to Erlang's actor model. I do t believe a lot of work would be required if gevent users stuck to this style, as gevents docs suggest.


The guarantees of the framework no longer exist when you want to do things in parallel. Sure, not every line of code using gevent would break from this, but that's not the point. Even people using queues are often still playing with shared resources, which would be unsafe in multicore still.


You, my friend, have made excellent points and I yield to you now.

I hope this conversation is informative for readers.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: