--
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
In summary, there could be two alternative binding tools:
1) only allowing synchronous calls, but supporting all types
2) allowing both synchronous and asynchronous calls, but with a limited set of types, until a better solution is found
As an example, and I don't know what the numbers are here, but if go code is grabbing an xml feed and deserializes to go structs and then reserializes to [insert-serialization-format] to have java deserialize that format, why bother with all the step-arounds? Grab the xml and send it verbatim to Java and let it deserialize once. The details of this are sketchy at best because again it comes down to the use-case and what needs to be done, but simply having a serialization format only solves a small part of the overall problem.
As an example, and I don't know what the numbers are here, but if go code is grabbing an xml feed and deserializes to go structs and then reserializes to [insert-serialization-format] to have java deserialize that format, why bother with all the step-arounds? Grab the xml and send it verbatim to Java and let it deserialize once. The details of this are sketchy at best because again it comes down to the use-case and what needs to be done, but simply having a serialization format only solves a small part of the overall problem.
The advantage of a serialization protocol like FlatBuffer is that it makes no allocation. So it's much faster and more memory efficient.
--
At the moment i am using byte[] for exchange of data works and so it would be unable for now. A android / ios would then act as a middleman for exchanging data between the golang layer and the UI layer. Because it's a byte array what it truly represents ( prototocol buffers, flat buffers or even json ) is independent.
I personally am more interested in using polymer for the GUI. I am happy to loose performance but get cross platform ease.
On another approach:
Hanna has a a nice gomobile project on within for serving godoc on her report that I found useful. Extending that to ios but allow developers like myself to get useful project work done near term.
I personally would be very productive if the IOS code for the above project was done.
It would give me one clear option that works now, despite low performance.