D Programming Language "bindings" for libev.

Kris foo at bar.com
Sat Jan 26 19:18:27 PST 2008


Nice!

Will be really interested to see how the higher-level API works out. Please 
keep us posted :)

- Kris


"Leandro Lucarella" <llucax at gmail.com> wrote in message 
news:20080126220211.GA16035 at homero.springfield.home...
> Hi! I wanted to play arround a little with the D programming languageD[1],
> specially with C interfacing, so I wrote this "bindings" for libev[2].
>
> This was written using GDC (D 1.0), using phobos and libev 2.01 on a 32
> bits
> x86. I don't know if it works under other plataforms / combinations, but
> I'll be very happy to know your experiences =)
>
> For know there is only the same API as in C, but a more higher level API
> is planned. It took me a couple of hours to put it toguether (with
> testing, the struct alignment was the only "tricky" part).
>
> I'm looking for some feedback before I start with the higher level API, so
> comments are much appreciated.
>
> The "ev" module (ev.d) and a simple test (test.d) are attached.
>
> You can compile it with: gdc -o test -lev ev.d test.d (you need libev 2.01
> installed with EV_MULTIPLICITY=1, for now at least, if you have disabled
> some event types, take a look at version identifiers EV_ENABLE_SELECT and
> EV_XXX_ENABLE).
>
> Of course, this isn't even a release yet, just a preview for comments,
> use it at your own risk ;)
>
> TIA
>
> [1] http://digitalmars.com/d/
> [2] http://software.schmorp.de/pkg/libev.html
>
> -- 
> Leandro Lucarella (luca) | Blog colectivo: 
> http://www.mazziblog.com.ar/blog/
> ----------------------------------------------------------------------------
> GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
> ----------------------------------------------------------------------------
> - Los romanos no tenían paz, loco... Necesitaban un poco de chala...
> 




More information about the Digitalmars-d-announce mailing list