What’s the difference between this and CBOR?
GitHub - couchbase/fleece: A super-fast, compact, JSON-equivalent binary data format
Submitted 1 year ago by lysdexic@programming.dev to programming@programming.dev
https://github.com/couchbase/fleece
Comments
jormaig@programming.dev 1 year ago
Maoo@hexbear.net 1 year ago
The main question I would have is why use it instead of protobuf? Having native support for binary values aside.
lysdexic@programming.dev 1 year ago
I’d love to see benchmarks testing the two, and out of curiosity also including compressed JSON docs to take into account the impact of payload volume.
Nevertheless, I think there are two major features that differentiate protobuff and fleece, which are:
- fleece is implemented as an appendable data structure, which might open the door to some usages,
- protobuf supports more data types than the ones supported by JSON, which may be a good or bad thing depending on the perspective.
In the end, if the world survived with XML for so long, I’d guess we can live with minor gains just as easily.
aes@programming.dev 1 year ago
“Appendable” seems like a positive spin on the “truncated YAML-file is frighteningly often valid” problem…
demesisx@infosec.pub 1 year ago
Of lambdabuffers for that matter.
ck_@discuss.tchncs.de 1 year ago
You probably wouldn’t. The main difference is that protobuf is structured while fleece is unstructured, so you would use it in places where you don’t want to (or can’t) tie yourself to a schema outright.
lemmyvore@feddit.nl 1 year ago
It’s not serialized from what I understand so it doesn’t need parsing. It’s sort of a structure+pointer dump. We’ll see how well that translates to other languages than C though.
bitcrafter@programming.dev 1 year ago
Q: Why the name “Fleece”?
A: It’s a reference to the mythical Golden Fleece, the treasure sought by Jason [emphasis mine] and the Argonauts.
I see what you did there…
demesisx@infosec.pub 1 year ago
This post leads me to piggyback and see what people think of lambdabuffers (which are not my work but something I became aware of through the Haskell community).
lupec@lemm.ee 1 year ago
I don’t have much experience with similar tools but that looks quite interesting, thanks for sharing!
demesisx@infosec.pub 1 year ago
No problem! I plan to teach for them when/if iterop becomes difficult when sending data between WASM, Haskell, Plutus, and Purescript.
mrkite@programming.dev 1 year ago
Interesting. A year ago I was looking for something exactly like this for distributing data between multiple servers. Everything required a ton of overhead or was too big to use. I ended up just using json. I did discover that Brotli can compress 3 gigs of json down into just 70 megs nearly instantly.
SoulSkill@lemmy.world 1 year ago
Brotli aged like fine wine. Almost 9 years of being in public domain.
Black616Angel@feddit.de 1 year ago
Lol
lupec@lemm.ee 1 year ago
As someone who clicked partly to check if it was Rust-based, I think that’s 100% fair lol
Black616Angel@feddit.de 1 year ago
Same 😂