News for hackers. Stuff that matters.
Re:Give Me Back My Monolith by CoolGuySteve on Thursday March 14, 2019 @01:54AM (#19386810)
Man if you think protobuf is fast, just wait until you try C pod structs with type-length headers.

They are literally infinitely faster to encode/decode than protobuf.

They even have the same obnoxious append-only extensibility of protobuf if that’s what really gets your jimmies firing.

Re:Give Me Back My Monolith by Danieru on Thursday March 14, 2019 @02:49AM (#19386996)
FlatBuffers and then Endian concerns are gone.
Re:Give Me Back My Monolith by presscast on Thursday March 14, 2019 @06:17AM (#19387875)
Are FlatBuffers essentially Capnproto without the RPC?
Re:Give Me Back My Monolith by alexhutcheson on Thursday March 14, 2019 @11:08AM (#19389883)
FlatBuffers can be used with gRPC, so they shouldn't need a separate RPC ecosystem like Cap'n Proto: https://grpc.io/blog/flatbuffers
Re:Give Me Back My Monolith by presscast on Thursday March 14, 2019 @12:07PM (#19390542)
Right, but I'm asking if FlatBuffers' approach to encoding is similar to Cap'n Proto. It seems like the answer is "yes", but I might be missing something.
Re:Give Me Back My Monolith by kentonv on Thursday March 14, 2019 @12:15PM (#19390628)
They are both zero-copy, but the designs have a number of differences. I compared them back in 2014: https://capnproto.org/news/2014-06-17-capnproto-flatbuffers-...

Disclaimers:

1) I'm the author of Cap'n Proto; I'm probably biased.

2) A lot could have changed since 2014. (Though, obviously, serialization formats need to be backwards-compatible which limits the amount they can change...)

Re:Give Me Back My Monolith by presscast on Thursday March 14, 2019 @12:20PM (#19390687)
Cool, thanks for this! I'm happily using Cap'n Proto in a side project, and so far have really enjoyed working with it. It's a really impressive piece of engineering.
Re:Give Me Back My Monolith by netmonk on Thursday March 14, 2019 @01:57AM (#19386818)
asn1 for the win
Re:Give Me Back My Monolith by carapace on Thursday March 14, 2019 @01:53PM (#19391652)
It's a shame you're catching downvotes for mentioning ASN1. It's so much better than all these newfangled things that it makes them look like toys.
Re:Give Me Back My Monolith by rkeene2 on Saturday March 16, 2019 @03:57PM (#19409853)
I'm not sure why ASN.1 isn't more popular for a zero-copy encoding system