The Next Sereal is Coming!

Sereal is a fast, compact, binary, schema-less serialization format that aims at dynamic languages’ data structures and specifically supports many of Perl’s complex structures and concepts.

booking.development
Sep 5, 2013 · 7 min read
Image for post
Image for post
$ perl -MSereal -e 'print encode_sereal("fooooo")' | \ perl author_tools/hobodecoder.pl 0000000 61 115 114 108 1 0 102 102 111 111 111 111 111 = s r l 001 \0 f f o o o o o 0000015 Total length: 13 Sereal protocol version: 1 Empty Header. 000006: 06 102 SHORT_BINARY(6): 'fooooo'
Dumping {fooooo => 1}: 000006: 51 081 HASHREF(2) KEY: 000007: 06 102 SHORT_BINARY(6): 'fooooo' VALUE: 000014: 01 001 POS: 1
Dumping [ {fooooo => 1}, {fooooo => 1} ]: 000006: 42 066 ARRAYREF(2) 000007: 51 081 HASHREF(2) KEY: 000008: 06 102 SHORT_BINARY(6): 'fooooo' VALUE: 000015: 01 001 POS: 1 000016: 51 081 HASHREF(2) KEY: 000017: 2f 047 COPY(8) VALUE: 000019: 01 001 POS: 1

Booking.com Development

Software development at Booking.com

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store