Hacker GitHub

← All repos

kstenerud/ksbonjson

View on GitHub ↗ ★ 3 C

A BONJSON codec implemented in C

5 mentions on Hacker News by 1 person: 0 stories, 5 comments · first 2025-02-22 · latest 2026-01-03

Mentions per year 5 mentions · busiest year 2025 (4)
20082026
  1. …into success rather than falling into failure. BONJSON is a small spec, and easy to implement ( https://github.com/kstenerud/ksbonjson/blob/main/library/src... and https://github.com/kstenerud/ksbonjson/blob/main/library/src... ). It's not…
    comment by kstenerud · 2026-01-03 · in FracturedJson
  2. …the same capabilities, is still async-safe and crash resilient, and is 35x faster with less code. https://github.com/kstenerud/ksbonjson/blob/main/library/src... https://github.com/kstenerud/ksbonjson/blob/main/library/src...
  3. …better: modern chips have instructions that decode this field in one shot (callable via builtin): https://github.com/kstenerud/ksbonjson/blob/main/library/src... static inline size_t decodeLengthFieldTotalByteCount(uint8_t header) { return…
    comment by kstenerud · 2025-09-13 · in UTF-8 is a brilliant design
  4. …are cases where this isn't enough context to understand the function's limitations, for example https://github.com/kstenerud/ksbonjson/blob/main/library/src... That function could be modified to compensate and calculate up to 64 bits, but…
    comment by kstenerud · 2025-03-16 · in Comments Are a Code Smell (2019)
  5. …in C is less than 500 LOC of clean, safe, finished code each for the encoder and decoder. https://github.com/kstenerud/ksbonjson
    comment by kstenerud · 2025-02-22 · in Ask HN: What Are You Building?