Implementing Binary Protocols with Elixir
summary
An Elixir library that encodes and decodes HPACK header block fragments using binary pattern matching and bit-level integer parsing is implemented and exercised; a gen_server holds the static+dynamic HPACK header table, Huffman decode/encode runs for strings, and encode/decode roundtrips pass RFC-derived examples. Tests import the RFC hex dumps with a small parser to assert headers and table sizes. Implementation is on GitHub, inspired by Cowboy, and the RFC tests prove the parser works.
AI-written summary · about
chapters (17)
- 0:00Introduction
- 0:55The Web
- 2:31HTV
- 7:13Motivation
- 12:07Hback Protocol
- 13:07String with Binary
- 14:22Code Overview
- 16:37Pattern Matching
- 21:27Recursive Functions
- 23:17String pausing
- 25:44Integer encoding
- 29:17Pattern match
- 30:30Encoding
- 33:03String
- 33:48Integers
- 34:33RFC Tests
- 39:10Final Thoughts
related talks
48mBitcoin & Elixir: Living the Cutting Edge
42mIntroduction to Elixir for Rubyists
44mMedical Messaging: An Elixir For Healthcare
32mElixir for the rubyist
34mWhat you can learn from Elixirs HTTP Middleware Plug?
56mKeynote: Think Different
01h 06mWhat every Node.js developer needs to know about Elixir
03h 19mWorkshop - All Aboard The Elixir Express!
