Dec. 16, 2018
8:03 a.m.
Christophe Bailly wrote:
I copy paste the main idea from an article I have written: contextual async <https://pythonc.home.blog/2018/12/14/premier-article-de-blog/>
All of your examples there are C++. It's not clear how any of this relates to Python.
Do we have the tools to do this ? Yes because thanks to boost::context we can switch context between tasks.
How does it work? Is it pulling some kind of stack switching trick? If so, I would be skeptical about the portability and reliability. Also, if it requires the Python interpreter to become C++ or depend on a C++ runtime, it's not going to be accepted. -- Greg