Re:Bebop v3: a fast, modern replacement for Protocol Buffers
by martinky24 on Tuesday March 12, 2024 @12:25PM
(#39681378)
I see. So far protobufs have met my needs and I've been happy with them, but I've used them more in an RPC context and less as a browser based data unit, so that makes sense.
Re:Bebop v3: a fast, modern replacement for Protocol Buffers
by TexasMick on Tuesday March 12, 2024 @01:44PM
(#39682496)
I benchmarked protobuf encoding and nanopb was very good.
Even though our schema was huge, it still did serialisation in a time that was surprisingly small for our underpowered chip.
Re:Bebop v3: a fast, modern replacement for Protocol Buffers
by throwaway143829 on Tuesday March 12, 2024 @05:20PM
(#39685113)
Have you seen protobuf.js? I've dug quite deep into its generated code and have not seen any runtime magic. It's just directly working with the protobuf wire format and transferring the data to/from fields with very explicit code.
I can't speak for Google's official implementation though.
So in that sense they aren’t all that modern as they’ve failed to evolve and keep up with platform evolutions.
Bebop just aims to generate code that modern and current with its target language, works everywhere, and avoids pitfalls protobuf suffers from.