bendk

Results 297 comments of bendk

I think this would be especially useful for the Gecko-JS bindings. For example, async calls are currently handled by a fairly complex system: - [CallAsync](https://searchfox.org/mozilla-central/rev/39e6d5b609b74a19c0824d98ae654b60d6310152/toolkit/components/uniffi-js/UniFFIScaffolding.cpp#71) creates a `UniffiAsyncCallHandler` subclass. This...

I like a lot about this proposal, but there's one drawback that I don't know how to workaround: it requires a static set of primitive FFI return types. That works...

As mentioned in the description, this issue is a working document. The above represents my understanding of the issue after talking it over with a couple other UniFFI devs. If...

Hi all, thanks for all the thoughtful comments on this thread and sorry that I haven't been able to follow up on this yet. It's interesting to me that a...

I wonder if we could use libffi more-or-less directly with some jni shim code. AFAICT, all the other solutions we're talking about depend on libffi and add an extra layer...

[It seems like it uses JNI](https://github.com/search?q=repo%3Aopenjdk%2Fpanama-foreign%20jni&type=code). Is there another low-level way for JVM code to make calls to a C library?

> Any change here should be accompanied by a benchmark that measures performance changes. Interestingly, the [very first benchmark](https://github.com/mozilla/uniffi-rs/pull/1481) tackled an issue related to this: the callback interface system that...