-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate PosixTypes
#624
Comments
Yes, I'm fine with that. Would you like to submit a PR to deprecate it when the new package/module is available/released?
I'm not sure offhand where |
Great, thanks! I'll add at least a simple module with a Lastly, I need to coordinate with other modules, I might need to rename some of them I cannot convince some maintainers to switch to this one (mwweissmann/ocaml-posix-time#1 for instance). Nothing blocking, though, so I hope to be able to push a PR relatively soon. Thanks again! |
Ok, I have added |
It might make sense to maintain these in the ctypes repository itself as subpackages. We already have the burden of having to work with some posix types due to the tests and examples, and once bound, they should be fairly stable. |
I'm down for that as well. My current build system is all based on |
Excellent. I'm down! |
@avsm Sorry, one more question though: will releases of sub-packages be possible with this configuration? It would be nice to not e.g. tie up release of an important bug fix in one sub-package to a release of the biggest/whole set of packages.. |
Ok, with the release of |
@avsm I just had a look through your PR, it looks great. I hope we can fix the remaining tests and merge it soon! I have to admit, however, that I am running a little short on spare developer time lately. I don't think that I can take over helping with this effort. Plus, I am still curious about why/how you would integrate posix-specific modules in a dune project that is multi-OSes, including OSes that do not support POSIX. Wouldn't that add a lot on unnecessary complexity? I think that I'm gonna go ahead and submit a PR to deprecate here. We could perhaps revisit this one/when |
Hi,
Following a conversation in #620 I have worked on a consolidated ocaml-posix module.
This module aims at giving a unified structure to all existing POSIX bindings, with support for both high-level consumer API as well as low-level ctypes APIs.
Also, these modules take advantage of the most recent
dune
support which, in particular, allows for powerful compilation configuration, including multi-layered builds and config tests. which makes it possible to write all these bindings without writing a single C file. The gist of this scaffolding is described here: https://medium.com/@romain.beauxis/advanced-c-binding-using-ocaml-ctypes-and-dune-cc3f4cbab302The
posix-types
module included inocaml-posix
provides the exact same API as thePosixTypes
, except for support forsigset_t
.Support for
sigset_t
is actually specified in POSIX in<signals.h>
instead of<sys/types.h>
and I would like to address it as part of a properposix-signals
.Would you be okay to deprecate this module to be replaced by the new one? If dropping support for
sigset_t
is a problem, I could look at implementingposix-signals
before that happen.I have also submitted a similar request to
ocaml-posix-types
here: yallop/ocaml-posix-types#5. I the maintainer agrees to it, this would lead to a single, unified modern implementation.It is, of course, my intent to give all previous maintainer commit access to the new repository so the work can continue jointly there.
Let me know what you think!
Romain
The text was updated successfully, but these errors were encountered: