by cmrdporcupine · 3y ago · 0 comments
Right?
That’s why everybody is raving over how awesome Bard is!
Sure, there's things that can be improved, but years later they are still the most ubiquitous binary message format.
I feel there's no one trying to take that crown really.
Golang seems bigger outside of Google than inside, too.
(Like the nick, BTW. Wish i'd never sold off my TX81z)
A nontrivial fraction of all living people have heard this song at least once, and it’s 100% TX81Z at the heart: https://youtu.be/9EcjWd-O4jI?si=XgkC5avENfdTmlQF
(Also, yeah, to other replies, I now realize protobuffs are not to be joked about, I repent. Forgive me.)
A long time ago I wrote a little FM synth in C++ and I went through some painstaking effort to copy Lately Bass and actually got pretty close. It's all about the envelopes. That code is lost to time though.
I think I still have a Yamaha TQ5 downstairs, which is basically a 4 op in the same vein as the TX81Z but in a form factor that looks like a 1980s alarm clock or something. Very ... shoulder pads and avocado bathtub era: https://yamahablackboxes.com/collection/yamaha-tq5-synthesiz...
JSON is wildly imperfect, and lacks types and schema enforcement... but if I have a stream or file of it I can read it with my eyes. Protobufs are opaque blobs without the schema and a pile of code. And they use generated code which is on the whole rather annoying and of varying quality. The binary encoding of protobufs doesn't really give them much of an efficiency edge, either; in this day and age there are some very well tuned JSON etc parsers. And if you're looking for efficiency, there are other formats better than protobufs (or thrift) for that purpose.
At Google I saw it rammed into places where it really didn't belong. Embedded systems, even, causing months of delays while people struggled to get them to work acceptably on a microcontroller class machine. Dogma.
But at least there we had better tools inside Google to work with them than I've seen outside.
TLDR they're probably more good than harm, but I don't think they're a universal good and not the universal answer for how to send messages "between things"
I work in Rust and use binpack, flatbuffers, and json, or hand rolled binary layouts (often using the binary_layout crate), depending on the use case. I don't think there's a universal solution.