-
Notifications
You must be signed in to change notification settings - Fork 86
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
Questions about cross-language data exchange and Android support #138
Comments
Yes, you should be able to compile your .capnp schemas with capnpc-java and then use the capnproto-java runtime library. The Addressbook example shows one way to set up a pom.xml to achieve this: capnproto-java/examples/pom.xml Lines 52 to 71 in ed9a67c
There is also this maven plugin (but I've never used it): https://github.com/expretio/capnp-maven-plugin One annoying bit about all this is that capnpc-java is still written in C++: #111 |
@dwrensha No bad. I'll give it a try. |
There is a C++ native library I used for my Android app and it's able to provide data in Cap'n Proto. Naturally I want to utilize the ability to speed up the data exchanging, especially get data from C++ to Java/Kotlin, because common JNI object converting is really slow (ranges in ~40,000 µs to ~120,000 µs). So is there anyway to properly deal with this, like some Gradle plugins or any else example?
The text was updated successfully, but these errors were encountered: