JavaScript ❤ binary data
summary
A practical demo of parsing GIF files in JavaScript using the binary-parser library: it reads GIF87a/GIF89a headers, little-endian 16-bit width/height, extracts 24-bit palette entries, flips the transparency bit to show image corruption, and reads the Netscape loop-count extension. The talk also covers LZW patent history, compares JSON vs binary payload sizes with a concrete ~58-byte JSON vs ~12-byte binary example, and recommends using Uint8Array/typed arrays and serialization tools like Protobuf or Thrift.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 1:00GIF file structure
- 3:10Binary numbers in GIF
- 9:59Bitwise operations
- 18:07Hexadecimal and colors
- 25:02Strings in binary
- 31:28Writing GIF parser
- 38:54Binary vs JSON efficiency
- 46:06Memory storage
- 51:29Typed arrays
- 54:22Bitwise ops in practice








