ktbind icon indicating copy to clipboard operation
ktbind copied to clipboard

I'd like to use this lib but I have no idea where to start

Open elect86 opened this issue 2 years ago • 2 comments

Hello,

cool project!

I'd like to create a Kotlin binding for OpenPMD, which is written, as you can imagine, in C++

I have very few experience with native and I have no idea where to start from or how to generate it..

Could you help me?

Thanks in advance

elect86 avatar Jan 11 '23 10:01 elect86

I am not familiar with openPMD but looking at the Dependencies section, it mentions pybind11, which seems to suggest that openPMD has Python bindings. Since KtBind has been inspired by pybind11, and the syntax is very similar, you might want to understand how pybind11 bindings work in openPMD. Looking at the source code, you might want to start at src/binding/python/openPMD.cpp.

Please note that I am no longer affiliated with Kheiron Medical, and don't control or monitor this repository. For the latest changes, look at my my fork of KtBind.

hunyadi avatar Jan 14 '23 14:01 hunyadi

Hi @elect86,

This is a great idea and happy to help with @franzpoeschel from the openPMD side.

Can you potentially provide a mini example with a comment where you would like openPMD export/import from Kotlin objects? Based on that, we can guide you if an implementation on the C++ or Python side and at which place (upstream in Kotlin, downstream in openPMD-api as helper includes/imports) is most feasible.

ax3l avatar Jan 31 '23 18:01 ax3l