Scorex icon indicating copy to clipboard operation
Scorex copied to clipboard

Why does Scorex use custom serialization and de-serialization?

Open Zahnentferner opened this issue 7 years ago • 1 comments

While working on #221 I noticed that most of the uses of Array happen inside Scorex's custom (de)serializers. Moreover, most of the (de)serializers are very similar to each other. That's a lot of boilerplate and code duplication.

Why does Scorex have custom (de)serializers? Why don't we use a standard (de)serialization or (de)serilization library? (cf. https://gist.github.com/ramn/5566596, http://lampwww.epfl.ch/~hmiller/pickling/, https://scalapb.github.io/generated-code.html, https://medium.com/@dkomanov/scala-serialization-419d175c888a)

Zahnentferner avatar Apr 07 '18 01:04 Zahnentferner

I agree on the value of using standard library for serialization. Pickling did not become popular, despite the strong initial push it got. Chill/kyro might be of interest https://github.com/twitter/chill

mslinn avatar Apr 19 '18 00:04 mslinn