~/talk

JavaScript ❤ binary data

TalkinRussianat HolyJS 2018 Moscow · 2018-11-24..11-25· [javascript, web-platform]
slides:none on file

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

  1. 0:00Introduction
  2. 1:00GIF file structure
  3. 3:10Binary numbers in GIF
  4. 9:59Bitwise operations
  5. 18:07Hexadecimal and colors
  6. 25:02Strings in binary
  7. 31:28Writing GIF parser
  8. 38:54Binary vs JSON efficiency
  9. 46:06Memory storage
  10. 51:29Typed arrays
  11. 54:22Bitwise ops in practice
~/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.