notes on binding C++

Samuel Audet samuel.audet at gmail.com
Tue Jan 30 08:45:18 UTC 2018


On 01/30/2018 02:14 PM, Henry Jen wrote:
> 
>> On Jan 29, 2018, at 8:37 PM, Samuel Audet <samuel.audet at gmail.com> wrote:
>>
>> BTW, if the C API of libclang exposes all the features we need, it is already possible to use it from Java: https://github.com/bytedeco/javacpp-presets/tree/master/llvm  Is jextract in a good enough shape to offer us such an interface to work with and do some dogfooding? If so, it might also be a good place to start a testbed for jextract too. That is exactly what the JavaCPP Presets are: A testbed for JavaCPP. This is what makes JavaCPP actually work with (a few) C++ libraries out there in the wild--unlike SWIG, CppSharp, rust-bindgen, etc. Thoughts?
>>
> 
> We have achieved to run jextract on top of libclang binding generated by jextract awhile back, probably need to bring up-to-date with current updates.
> 
> It’s the idea that after this bootstrapping process, we would like to be able open up other capability provided by libclang, also this dogfooding would server as a validation to our approach is working.
> 

Ok, cool! Has anyone tried with the C++ API of Clang since then? Now 
that sounds like awesome dogfooding to me. And if we can get that 
wrapped, we're probably not going to have much of any issues with other 
C++ libraries out there, and I will happily retire JavaCPP. :)

Samuel


More information about the panama-dev mailing list