On Dec 23, 2020, at 3:45 PM, meera <lordho...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/0562184e-bbcc-44c9-adbf-37e8d5411c7cn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAE%3DAWBXN46idvqUbCsGs%2BZbZt%2BCj4MowJ4Ozj3_U9_6-68OWDw%40mail.gmail.com.
On Dec 23, 2020, at 4:19 PM, Matthew Zimmerman <mzimm...@gmail.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/214752B6-2666-4892-A9B8-E4BC4127FD42%40ix.netcom.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAEkBMfGWtULh8Q3Jqu_gq5m5Si4PvJ1oVSZY7DVhu%3D6hGK83bg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAE%3DAWBUsmp2sbiEh%3D3z0cC9EhjLig%2B8exXyA05YngBJ-tsC_uA%40mail.gmail.com.
On Dec 23, 2020, at 5:20 PM, Matthew Zimmerman <mzimm...@gmail.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAD53Lr5yREUMGwgwk%3D5G%2BTDDipRLUKLc1SvPdsWsW_6mjVqvzQ%40mail.gmail.com.
On Dec 23, 2020, at 6:09 PM, Artur Vianna <lordho...@gmail.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAE%3DAWBU%3DZBR8O9na44vsXCg9NXrH9tdo5xxuBjYqMOYoGU4N0w%40mail.gmail.com.
On Dec 23, 2020, at 6:40 PM, Artur Vianna <lordho...@gmail.com> wrote:
I was referring to the comments about the encoder keeping state. You can reset the encoder. You may need your own framing to do so - I’m not looking at the gob streaming encoder docs - but if it is a decent streaming encoder it should have a reset mechanism.
Before using gob was using encoding.BinaryMarshaler, but that would mean the user of the api would need to implement a MarshalBinary for every type, which is kind of cumbersome.
An option might be to let the user choose gob, BinaryMarshaler or Json etc to best fit the use case, but that takes the simplicity of only gobs away.
On Dec 23, 2020, at 6:56 PM, 'Axel Wagner' via golang-nuts <golan...@googlegroups.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAEkBMfFcE9fJvLaEB1oSRFaWOWWAOy%2BuZgO6NQs56O_1SxovzQ%40mail.gmail.com.
Exposing the bytes would hurt the abstraction.
I will certainly look into Json and maybe MessagePack. But first i may fiddle with the gob source code, if my sanity allows it. If i can control when the type information is sent i may be able to fix this without changing the API. The ideal enconding would be a stateless gob, with the proper decoding/encoding "machines" set on either side when you call gob.Register, but i'm not sure of the feasibility of that.
On Dec 24, 2020, at 8:21 AM, Artur Vianna <lordho...@gmail.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAE%3DAWBWmiQbVBxQ2FcWguzbd7Y62LUjmQ%3DY0qKe%3D4M0WKgoubg%40mail.gmail.com.