~/talk

Working with binary data in Ruby

Talkat GrillRB 2019 · 2019-08-31..09-01· [ruby, databases]
links:none on file
slides:none on file

Ruby parses a niche OMS meter protocol end to end, replacing fragile string pack/unpack pipelines with a declarative pin data gem that models IP and MAC fields, extracts gzip original filenames, decodes BCD numeric values, and parses a compact 48‑bit timestamp and nested extension-bit lists. The production system runs for over two years at about 2,000 requests per minute, the parser is maintainable and fast enough (parsing cost is negligible versus DB work), and the declarative structures prevent unreadable unpack strings.

AI-written summary · about

  1. 0:00Introduction to binary data
  2. 5:57Bits bytes and endianness
  3. 10:56Standard library methods
  4. 17:41Parsing gzip headers
  5. 23:55Introducing bin_data gem
  6. 28:49Real-world protocol examples
  7. 33:16Production experience and recap
  8. 36:11Q&A and closing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.