Hacker News new | ask | show | jobs
by fyrn- 1412 days ago
Cap'nProto Is so much better. Really a lot are, but Cap'nProto is main by the original protobuff dev so his description of why he made it is relevant. I use protobuff everday at work and honestly the generated code is incredibly awful conpared to pretty much any alternative. We're way to bought in to switch now though sadly.
3 comments

Hi. That's me. I'm glad you like it.

Unfortunately, melony is right: I've only really been able to focus on the C++ implementation of Cap'n Proto. Some of the others are solid (e.g. Go, Rust), but many are sort of half-baked weekend projects of random people, which were later abandoned. As a result it's tough for me to recommend Cap'n Proto in polyglot environments. Maybe someday I'll be able to find the time / resources to build out the ecosystem more fully. Great tooling is really important for any of this to work.

I'm also an investor in Buf FWIW. I think what they're doing is pretty cool.

Hi, I like capnproto as well, thanks for making it. :)
There aren't enough good cap'n proto code generators (compared to protobuffs/flatbuffs). It is not viable unless your stack is mainly C++.
I use it in Rust just fine, FWIW.
Which are better? I don't even have a big list of xRPC/xBuf tool - only know of two (now three). Can you point to others?