Joe Tsai
Joe Tsai
I don't quite understand how your use of `bgzf` works to begin with, so I'm unable to suggest an equivalent use with `xflate`. Do you have an example?
Also, keep in mind that XFLATE operates differently than BGZF. BGZF is effectively a linked-list of independently compressed segments, so you need to read through the whole file to determine...
This does seem like surprising behavior. It should either be documented or the encoder will need to jump through some hoops to copy the value so that it can be...
We can't the behavior in "encoding/json" as this would break existing usages. The ["encoding/json/v2" draft design](https://github.com/golang/go/discussions/63397) proposes to fix this issue by always treating values as addressable (shallow copying if...
(I'm the author of both `cmp` and one of the primary authors of Go protobufs) Google heavily uses protobufs and I have been asked many times for `cmp` to provide...
The JSON mapping for protobuf follows RFC 7493, which requires strict checking of surrogate halves (see [section 2.1 of RFC 7493](https://datatracker.ietf.org/doc/html/rfc7493#section-2.1)). The "encoding/json" package only adheres to RFC 8259, which...
The proposed future "encoding/json/jsontext" package [produces a better error message](https://go.dev/play/p/MfA-n1r-9Ld): ``` jsontext: invalid surrogate pair `\udca0'none'` within string ``` as it preserves the context that this is occurring within a...
The usage pattern with an arena would look something like: ```go a := arena.New() for { var m foopb.MyMessage proto.UnmarshalOptions{Arena: a}.Unmarshal(&m) ... // make use of m a.Free() } ```...
Renaming `MarshalOptions` as `Marshaler` sounds fine to me as long as the naming convention is consistently applied. I can't quite remember, but I believe @neild is correct that the pre-existing...
As @puellanivis mentioned, the Go implementation will only adopt this if the wider protobuf project deems this as standard behavior. The issue tracker for the wider protobuf project is https://github.com/protocolbuffers/protobuf/issues.