Re: Anyone aware of a LuaJIT FFI-based libevent library?

  • From: Tim Caswell <tim@xxxxxxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Wed, 6 Jun 2012 14:06:46 -0500

On Wed, Jun 6, 2012 at 1:59 PM, Mike Pall <mike-1206@xxxxxxxxxx> wrote:

> demetri wrote:
> > I've done some digging and found Lua/C API based libraries, and
> obviously I
> > could just bind specific functions myself, but I thought this was
> something
> > that might be a "solved problem" in the LuaJIT community.
>
> If you don't mind it's wrapping libev (not libevent), here's one
> from Evan Wies:
>
>  https://gist.github.com/1409794
>
> I didn't try it, but the code looks good. And this is in no way an
> endorsement for libev vs. libevent (they all have their flaws, the
> most obvious is requiring C callbacks).
>

How else would you implement a non-blocking, single-threaded system without
C callbacks?  I'm curious.  Maybe bake in co-routines instead?


> --Mike
>
>

Other related posts: