~/talk

A modern C++ approach to JSON Sax Parsing

Talkat Core C++ 2024 · 2024-11-26..11-28· [c-and-cpp]
name:Uriel Guy
links:none on file
slides:none on file

Claims a SAX-style, event-driven JSON parser called better CPP sucks that parses gigabyte drone-show files on a Raspberry Pi (4 GB RAM) without loading a DOM. It layers an underlying token source (simdjson / nlohmann / RapidJSON), uses a stack-of-parsers state model that returns parser-instructions, and exposes simple scalar/object/list helpers. The implementation is ~450 lines, uses minimal memory (author reports kilobytes vs simdjson’s multi-gigabyte DOM), trades peak speed for low memory and streaming behavior, and still incurs many std::string allocations.

AI-written summary · about

  1. 0:00Introduction and use case
  2. 1:42Defining the problem
  3. 3:06DOM versus SAX parsing
  4. 6:19Designing the parser
  5. 7:43State management architecture
  6. 12:34Implementing the core API
  7. 15:05Refining the parser API
  8. 18:28Parsing scalar types
  9. 21:36Object and list parsing
  10. 25:01Validation and stream parsing
  11. 28:49Performance and conclusions
  12. 30:27Benchmarks and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.