These are chat archives for scala-android/sbt-android

25th
Feb 2017
Alex Reisberg
@a-reisberg
Feb 25 2017 00:23
If I write something in Rust, wonder if I can use this javacpp thing to call it.
Perry
@pfn
Feb 25 2017 00:28
That's not its use
You might as well just use jni/ndk
And rust doesn't offer a good way to call into it from C
Alex Reisberg
@a-reisberg
Feb 25 2017 00:30
Oh? So maybe I misunderstood what javacpp does lol
I thought that it's a fancy jni or smth
Perry
@pfn
Feb 25 2017 00:31
it's a fancy jni. pretty much
not similar to jna
Alex Reisberg
@a-reisberg
Feb 25 2017 00:32
Ah, so it allows you to write c++ code inside java?
Perry
@pfn
Feb 25 2017 00:32
no, it creates reasonable. bindings for. c++ libraries automatically
Alex Reisberg
@a-reisberg
Feb 25 2017 00:32
i see
Perry
@pfn
Feb 25 2017 00:33
so you can still use some of the object interfaces somewhat seamlessly
Alex Reisberg
@a-reisberg
Feb 25 2017 00:34
Ah, I see. Nice!
Perry
@pfn
Feb 25 2017 16:17
yeah, nothing to be impressed with