-
Notifications
You must be signed in to change notification settings - Fork 15
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
Mirage support #67
Comments
I asked about this on the OCaml Discuss forum: https://discuss.ocaml.org/t/easiest-way-to-ensure-a-package-is-usable-in-mirage-in-ci/5607 |
I should mention that the pgx master branch works with MirageOS. I am wondering if, after improving the API, you would be open to a PR adding a pgx-mirage subpackage containing the adapter and a simple test, which at least does a non-unix build? |
@paurkedal I was also working to add a pgx-mirage subpackage, but if you already have an implementation working, we'd be very interested in merging support for mirage! |
@anuragsoni Depends how far you got. If you look at the discuss thread, you'll see I'm missing functoria support, but it's otherwise working (well, at least a simple query). I posted by version in a gist, so you can compare. |
@paurkedal I just looked at your gist, that's pretty much what i had as well (modulo some differences about at what point the channel was flushed. I also was leaning towards failing for I missed the update on the discuss thread yesterday, and functoria indeed looks like the way to go here. I'm still pretty early in my mirage journey so I didn't think about functoria as for some reason I assumed that's more for use by the unikernel application vs a library that's usable via a unikernel. |
Good, I suggest you pull ahead with your implementation then. I think an option for |
@paurkedal Sounds good. I'll add an initial implementation soon just to get the ball rolling, while i learn a little more about how to improve the library via functoria. There are a couple of points in my implementation (around opening the connection) that i'd like to adapt based on your gist. I was curious about what's the LICENSE for the gist? |
Maybe it's simplest if I make it public domain, just checking what's the right way to do it. |
I updated the draft with an LGPL 2-or-later license header, as it wasn't clear to me how to make the public domains statement, but I can assign over copyright or make it public domain if you know the procedure. |
Would this need to be LGPL 2 with the OCaml linking exception? That's the current license for pgx. I'm guessing this exception is present because of OCaml statically linking by default? I'd appreciate any guidance here since I've mostly dealt with MIT/BSD license before. |
Fixed. @brendanlong I copied the header from |
#57 and #58 are both attempts by @paurkedal to support Mirage. The point of this ticket is to:
For Mirage support, I'm wondering if this would be Pgx_unix, or another new Mirage-specific one?
Is there a way we can run a CircleCI build to ensure this works?
The text was updated successfully, but these errors were encountered: