Re:Bebop: An Efficient, Schema-Based Binary Serialization Fo...
by otabdeveloper4 on Tuesday March 30, 2021 @09:11AM
(#26634162)
FlatBuffers creates its own demented and completely incompatible data structures when deserializing into C++. Which means you then need to copy the FlatBuffers structures into normal ones, defeating the entire point of "zero-copy" in the first place.
This thing it looks like uses normal C++ structures under the hood, and if so that's a huge plus.
Re:Bebop: An Efficient, Schema-Based Binary Serialization Fo...
by pdimitar on Tuesday March 30, 2021 @11:32AM
(#26635787)
I don't see why C++ considerations get priority over everything else, or are you making another point?
Re:Bebop: An Efficient, Schema-Based Binary Serialization Fo...
by otabdeveloper4 on Tuesday March 30, 2021 @12:28PM
(#26636683)
They do get priority when you're primarily coding in C++, obviously. Not everything is Javascript-first. Different requirements for different folks.
Re:Bebop: An Efficient, Schema-Based Binary Serialization Fo...
by pdimitar on Tuesday March 30, 2021 @01:14PM
(#26637351)
I am not a JS dev, don't project your frustration on me. ;)
So okay, FlatBuffers doesn't map its zero-copy philosophy perfectly everywhere -- fact of life. What would you offer then? Which other format and/or library?
Re:Bebop: An Efficient, Schema-Based Binary Serialization Fo...
by otabdeveloper4 on Tuesday March 30, 2021 @01:43PM
(#26637763)
Never used this Bebop thing, but I'd have definitely preferred it to FlatBuffers back when I was shopping for serialization libraries.
Re:Bebop: An Efficient, Schema-Based Binary Serialization Fo...
by schoetbi on Tuesday March 30, 2021 @09:06AM
(#26634117)
Agree, the ecosystem for flatbuffer and the perfomance is great. Here is the language support: https://google.github.io/flatbuffers/flatbuffers_support.htm...
To be fair though, I am open to the idea of having a separate schema definition language, at least. (And please don't say DDL, it doesn't even come close.)