News for hackers. Stuff that matters.
Re:How Turborepo is porting from Go to Rust by bluejekyll on Friday July 21, 2023 @11:45AM (#36815194)
Yes, I’m wondering if people have bad experiences with CBOR, thrift, flatbuffers, protobuf, messagepack, etc. There are a huge number. I think Protobuf might be the best choice across all languages at this point, maybe?

But that’s my question, if you choose a binary format, what are the issues to look out for?

Example, I work with Java, Rust, Go, and Python at work. I have specifically had issues with Avro (not my choice) which is really well supported in Java, but not much else.

Re:How Turborepo is porting from Go to Rust by f_devd on Friday July 21, 2023 @11:54AM (#36815338)
I dislike protobuf for the reason that the generated code is often quite bad (in terms of the interface in the language you are using) and in external projects it's often a manual step (sometimes with additional headache of protoc2 vs protoc3) to just build the project. In terms of message specification it's quite good though.
Re:How Turborepo is porting from Go to Rust by packetlost on Friday July 21, 2023 @11:59AM (#36815409)
This is the reason we opted for building our own code gen system instead of Thrift or Protobuf: they both generate really ugly code in the languages we wanted to use
Re:How Turborepo is porting from Go to Rust by mdtusz on Friday July 21, 2023 @12:19PM (#36815695)
Still early days, but we've been using CBOR instead of JSON lately at work for interfaces that have "settled" and it's been great. Means that you can shake out the early integration issues using human readable JSON, then just switch the ser/de once it's all playing nice.

Binary data support is pretty nice too for avoiding multipart request bodies.

Re:How Turborepo is porting from Go to Rust by importantbrian on Friday July 21, 2023 @02:03PM (#36817220)
Ah, I see what you were saying now. Yeah, I don't have direct experience with those binary formats so I can't say. I'm not an Avro fan either but there are other binary formats like parquet that are easier to work with and at least in my corner of the tech world seems to have become the de facto standard.