You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of Nim strength is C compatibility, and with C compatibility comes compatibility with most other languages through FFI
It would be great to create a C library out of nim-libp2p, which can then be used from other languages (ie python, which is missing a libp2p implementation)
I see 2 alternatives to do so:
Macro based
For instance genny. This project is used to generate python & other wrappers automatically, for instance pixie-python.
However, genny lacks multiple features, and it's not clear how async integration should be done
Manually
For instance, libwaku (examples in various languages: link)
The text was updated successfully, but these errors were encountered:
For async, you might want to have all the procedures that return a future handle use an Async suffix, and you expose wait_mytype(future_mytype* handle).
This is how Nvidia does it for async Cuda procedures.
One of Nim strength is C compatibility, and with C compatibility comes compatibility with most other languages through FFI
It would be great to create a C library out of nim-libp2p, which can then be used from other languages (ie python, which is missing a libp2p implementation)
I see 2 alternatives to do so:
Macro based
For instance genny. This project is used to generate python & other wrappers automatically, for instance pixie-python.
However, genny lacks multiple features, and it's not clear how async integration should be done
Manually
For instance, libwaku (examples in various languages: link)
The text was updated successfully, but these errors were encountered: