Re: LuaJIT as a C coroutine library

  • From: Mike Pall <mike-1410@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Tue, 21 Oct 2014 00:28:44 +0200

Thiago Padilha wrote:
> Since luajit already implements true C coroutines across different
> platforms to enable yields across C calls, is it possible to reuse
> it's coroutine infrastructure for managing pure C coroutines(and avoid
> having to depend on another coroutine library)?

LuaJIT 2.x does NOT use true C coroutines. It's a resumable VM,
which has no need to switch C stacks. So, the basic answer is no.

--Mike

Other related posts: