2 ms·
Python has a runtime too, but it still did async in a half-assed way :/
by pas 6y ago
Python has a runtime too, but it still did async in a half-assed way :/
- kaba0 6y agoWell, Python is very dependent on C FFI, which may make it harder.
- _old_dude_ 6y agoIt's only an issue when you have a C callback that calls a Python code, because you have C code in the middle of your stack thus you can not move the stack frames back and forth (because the C code can reference stack addresses). I may be wrong but most of the C calls in Python do not have callbacks and you can pin the coroutine to the kernel thread if there is a callback.