Generating protobuf formats with scala.meta macros

Today’s focus is on scalameta. In this introduction post we’re going to see how to create a macro annotation to generate protobuf formats for case classes. The idea is to be able to serialise any case classes to protobuf just by adding a @PBSerializable annotation to the case class declaration. Then behind the scene the […]

PBDirect – Protobuf without the .proto files

Protocol Buffer (aka Protobuf) is an efficient and fast way to serialise data into a binary format. It is much more compact than Java serialisation or any text-based format (Json, XML, CSV, …). Protobuf is schema based – it needs a description (in a .proto file) of the data structures to be serialised/deserialised. On the […]