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

No, not at all. Stackless coroutines only preserve a single call frame, while stackful coroutines [1] preserve the whole stack. For example python, C#, C++ coroutines are stackless, while lua and Go are stackful.

It is hardly a coroutine at all if no state, other than the instruction pointer, is preserved.

[1] See the lua coroutine papers where the nomenclature is introduced.



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

Search: