Time  Nick            Message
02:23 swift110-mobile sup folks
06:18 swift110-mobile hey all
08:55 BuckarooBanzai  hey all, quick question: are coroutines available everywhere? (in plain lua and luajit environments) background: i've ported the Promise/async/await combo to lua/minetest: https://github.com/mt-mods/promise?tab=readme-ov-file#asyncawait-with-promiseasync with coroutines it makes the code-flow a _lot_ more readable
09:05 MTDiscord       <et086> they should be, but lua/luajit have some coroutine differences, like luajit claims to be fully resumable unlike lua5.1  "The LuaJIT VM is fully resumable. This means you can yield from a coroutine even across contexts, where this would not possible with the standard Lua 5.1 VM: e.g. you can yield across pcall() and xpcall(), across iterators and across metamethods. " - luajit.org  and in luajit, the thread argument in debug.sethook is
09:05 MTDiscord       useless (so you only have global debug hooks)
09:06 MTDiscord       <et086> but who even uses plain lua with minetest...
09:16 sfan5           BuckarooBanzai: the devtest unittests use coroutines
09:16 sfan5           that should answer your question
10:58 BuckarooBanzai  nice, thanks for the answers :)