Skip to content
Cosmopediaby Unity Nodes
DiscussionsCosmos-SDKI hate protobuf and grpcForum ↗

I hate protobuf and grpc

Cosmos-SDK1 posts1,465 viewsLast activity May 2019
4A
4avkaOP
May 2019

Google made a wonderous language, actually, scratch that, co-designers of C, unix and so on, reverted from their java-inspired inferno of uselessness, but - well, lock free channels are wonderous and Rob Pike is one of my heroes these days. I might be a bit biased, but in my opinion, TM and Cosmos would never have existed without Go before it. I don’t know why, but it seems to be ‘convention’ but not ‘idiom’ to use these two aforementioned serialization and rpc frameworks. Far better, and faster, according to benchmarks, is rpcx and messagepack, by somewhere around 10-20% depending on the workload. I am going to dig into how to write codecs that throw these crummy C/C++ based libraries that require separate generation phases. I personally am repulsed every time someone puts a different dep manager or build system on Go. Not that I think go should not be running generators for me automatically, but for anyone who has tried to work with C based libraries (eg OpenSSL) it is a huge pain when you want to actually start making your code fast, there is an opaque barrier between C and Go and with Go at least you can depend on things being done certain ways but with C, all that GC and…

Excerpt (1198 of 2553 characters). Read the whole post on the forum ↗

← Back to Discussions