Monday, September 30, 2019

Re: [Discuss-gnuradio] [RFC] PMT succession: experts' opinions on serialization libs

Hi Sylvain,

I'm very certain that flatbuffers does handle this correctly, yes.
Haven't tried it, though. But "serialization library that doesn't deal
with cross-platform" sounds bad, doesn't it?

Best regards,
Marcus

On Mon, 2019-09-30 at 08:37 +0200, Sylvain Munaut wrote:
> Hi,
>
> > > Tbh, I'd just assume that in all these formats, being tight-packing by
> > > default, std::complex<float> can just be represented by the equivalent
> > > of struct {float re; float im;} complex;.
>
> I haven't delved into the code, but do you know if it handles properly
> architecture differences between sender and receiver ?
> Things like 32b long vs 64b long and little endian vs big endian ?
>
> Because the message end up send across network, this matters, there
> historically has been at least one instance of a bug because PMT was
> not resilient to that when exchanging data between a x86_64 PC and an
> E310 for instance.
>
> Cheers,
>
> Sylvain
>
> _______________________________________________
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

No comments:

Post a Comment