Before handling libuv, I took a detour to build an API for using libev in ATS:
https://github.com/githwxi/ATS-Postiats-contrib/tree/master/contrib/libats-/hwxi/libevAs far as interface design is of the concern, libev seems to be far superior to libevent
in my opinion. If something can be done both in libev and in libevent, then I would, for now,
prefer to do it in libev.
Cheers!
PS: There is an example test00-pkgreloc.dats in the TEST directory; this example
shows how to use the API for libev without pre-installing it. The following lines tell
atspkgreloc where the API for libev can be located:
//
#define
PATSCONTRIB "\
https://raw.githubusercontent.com/\
githwxi/ATS-Postiats-contrib/master/contrib"
//
require "{$PATSCONTRIB}/libats-/hwxi/libev/SATS/ev.sats"
require "{$PATSCONTRIB}/libats-/hwxi/libev/DATS/ev.dats"
require "{$PATSCONTRIB}/libats-/hwxi/libev/CATS/ev.cats"
//
If you execute 'make test00-pkgreloc.wget', then the libev package will be downloaded.
Then you can do 'make test00-pkgreloc' to compile the example.