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

How is the state stored for "natural style" functions? Is this continuation style something that Lua supports natively?


Lua has built-in support of this functionality through coroutines [1]. Serializing the coroutines to a database does requires a library [2].

[1] http://lua-users.org/wiki/CoroutinesTutorial

[2] http://lua-users.org/wiki/PlutoLibrary




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: