News for hackers. Stuff that matters.
Re:Willow Protocol by rklaehn on Wednesday January 17, 2024 @10:49AM (#39029333)
Not officially. We currently have bindings for rust, python, golang and swift.

These were the most asked for bindings (python for ml, golang for networking and swift for ios apps).

We are using uniffi https://mozilla.github.io/uniffi-rs/

Would you need C or C++ bindings?

Re:Willow Protocol by binary132 on Wednesday January 17, 2024 @04:59PM (#39034117)
Ah, I see. Hm. I might be interested in a C API since that could be used in C, C++, and Lua equally well. I really was just wondering what the common implementation between the bindings was since it struck me as unusual that there would be a number of bindings but not C (which is AIUI the only interface besides Rust that Rust can really export.)
Re:Willow Protocol by rklaehn on Thursday January 18, 2024 @01:57AM (#39038814)
So, I am not the one that is doing the bindings, so take this with a grain of salt.

It seems uniffi does create C compatible bindings in order to make bindings for all these other languages. But these are internal bindings that are ugly and not intended to be used externally.

Re:Willow Protocol by binary132 on Thursday January 18, 2024 @09:53AM (#39042359)
Perhaps if an issue were opened describing the necessary steps to provide a fluent and stable C API, staying consistent with the uniffi approach you're using for the other wrappers, then someone enterprising could pick up the ball and run with it. :)