Re:Connect-Web: TypeScript library for calling RPC servers f...
by fyrn- on Thursday August 04, 2022 @04:02PM
(#32347602)
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.
[ Parent
| on HN ]
Re:Connect-Web: TypeScript library for calling RPC servers f...
by kentonv on Thursday August 04, 2022 @04:20PM
(#32347799)
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.
Re:Connect-Web: TypeScript library for calling RPC servers f...
by junon on Thursday August 04, 2022 @05:26PM
(#32348497)
Hi, I like capnproto as well, thanks for making it. :)
Re:Connect-Web: TypeScript library for calling RPC servers f...
by melony on Thursday August 04, 2022 @04:10PM
(#32347690)
There aren't enough good cap'n proto code generators (compared to protobuffs/flatbuffs). It is not viable unless your stack is mainly C++.