lzaeh commented on issue #2423:
URL: https://github.com/apache/fory/issues/2423#issuecomment-3101463282
> Thank you for your explanation! I understand meaning of
withRefTracking=true. Reducing the size over http is what I am trying to do.
When I mentioned:
>
> > I am very interested in the flag withRefTracking=true, because it also
does not work with XLANG mode, at least in the previous version.
>
> I meant it does not work properly in a cross language mode. In my case if
I use Java for serialization, transfer data over http, and then use Golang for
deserialization, will it work properly without any errors?
Personally, I wouldn’t recommend using the Go implementation for anything
beyond what’s already covered in the test files — whether it's for Go itself or
cross-language usage — because the current Go version is still not very mature.
In the version you were using before, there were some subtle issues when
serializing and deserializing structs across languages. Some of those problems
have been fixed in the current version, but there are still known bugs when it
comes to arrays and slices — especially when you try to serialize or
deserialize them on their own across languages. Within Go itself,
array/slice-related issues are less common, but still something to be mindful
of.
Also, when deserializing, I strongly recommend using the exact, correct
types instead of falling back on interface{}. While the test files use
interface{} for convenience, after some discussions we realized that in some
cases it's actually important to use the precise type to receive the data
correctly. That’s something I didn’t handle well earlier, and I plan to improve
this part going forward.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]