Hacker News new | ask | show | jobs
by banachtarski 3357 days ago
Point 3

Goroutines are more performant than python threads if you don't understand the difference between a thread and a routine.

1 comments

How about asyncio in python 3 and gevent etc. in python 2?
Right I'm not saying that python 2/3 doesn't have these abstractions (to be honest I'm not an expert in either Python or Go, I'm a C++/Haskell guy). Just that the author is creating an obvious false dichotomy.
Callbacks (asyncio & gevent) are not the same as coroutines. You have to experience the callback hell to understand the difference.
asyncio and gevent are coroutines, at least in all the senses that goroutines are.

In fact, so are regular post-PEP342 generators.

Asyncio does not use callbacks. It uses async/await syntax