libp2p / devgrants

want to hack on libp2p? this repo tracks libp2p endeavors eligible for incentivization.
https://libp2p.io
Other
40 stars 3 forks source link

Libp2p for Ocaml by Developing a C Wrapper for the Go Implementation #12

Open onokognome opened 5 years ago

onokognome commented 5 years ago

Motivation and context

My ultimate goal is to use libp2p from Ocaml. But rather than starting from scratch writing an Ocaml implementation, I'd like to write a C wrapper for the Go implementation, then either using the C wrapper directly in Ocaml, or writing an Ocaml wrapper (library) around the C wrapper (depending on how things look when we get there)

Value

The two main benefits are

Benefits (if addressed)

The C wrapper would be generally useful to others that want to port the library.

Risks (if not addressed)

Expected output and constraints

I would expect:

Relevant discussion

Design/implementation notes

Since the C wrapper should be generally useful, some agreement on its signature before going too far is important. In fact, this is probably a good first step - defining the signature of the C representation of a module.

Potential funders

Funding would be great and since I'm between jobs at the moment it would be helpful; but I'd move forward with this in any case. I'm more interested in getting plugged in at this point.