Skip to content
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

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

Open
elect86 opened this issue Jan 11, 2023 · 2 comments
Open

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

elect86 opened this issue Jan 11, 2023 · 2 comments

Comments

@elect86
Copy link

elect86 commented Jan 11, 2023

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

@hunyadi
Copy link
Contributor

hunyadi commented Jan 14, 2023

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.

@ax3l
Copy link

ax3l commented Jan 31, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants