3 ms·
Since GoJava generates jar binding, does it mean other JVM languages can use the jar to call Go too? Edit: Java has generic Go doesn't, how do the bindings wor
by namelezz 11y ago
Since GoJava generates jar binding, does it mean other JVM languages can use the jar to call Go too?
Edit:
Java has generic Go doesn't, how do the bindings work for generic?
- pookeh 11y agoYes
- vendakka 11y agoYes. The only constraint is that the jar will only work on the architecture it was built on.
- meddlepal 11y agoStill pretty awesome and that's not really a big deal. I'm going to guess most Java these days is running on x86_64 or ARM.
- vendakka 11y agoRegarding generics: the tool generates Java bindings from Go code. Since Go doesn't have generics we just generate non-generic bindings.