ocsigen / lwt

OCaml promises and concurrent I/O
https://ocsigen.org/lwt
MIT License
709 stars 175 forks source link

Use cstruct? #396

Closed raphael-proust closed 6 years ago

raphael-proust commented 7 years ago

Currently, providing new system calls involve several files with many macros.

Is this the kind of thing that cstruct could make simpler? And if so How many dependencies cstruct has? Which ones? Is it worth rewriting the unix bindings with a cstruct version?

I'll investigate some of that. If someone already have answers to those questions, please comment below.

aantron commented 7 years ago

The status of this is:

aantron commented 7 years ago

The other effect of using libuv is that Windows will get first-class support.

avsm commented 7 years ago

I agree with @aantron that the port to libuv would be more fruitful than using Cstruct, in the short term. We've had good results with using libuwt in vpnkit (cc @djs55)

aantron commented 6 years ago

Closing this as accepted, because we definitely want to use cstruct/ctypes, and it's on our minds for any major future Lwt work.