Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Prompting Claude Opus 5.5 (claude.com)
    39comments
  2. Owed a billion dollars in Nvidia stock (colo.to)
    275comments
  3. Thinking fast and slow in AI: The role of metacognition (2021) (arxiv.org)
    23comments
  4. Ember-1 (fireworks.ai)
    211comments
  5. When did Google get so weird? (sancho.bearblog.dev)
    706comments
  6. Malleable software: Restoring user agency in a world of locked-down apps (2025) (inkandswitch.com)
    34comments
  7. Made by Mechanical Means (felixrieseberg.com)
    1comments
  8. Nissan's third generation e-POWER powertrain (nissan-global.com)
    55comments
  9. Footguns with Postgres "at time zone 'UTC'" (bookofrevenue.com)
    4comments
  10. Maybe don't let Muse run your Facebook Marketplace account (threads.com)
    16comments
  11. Functional Mechanical Sympathy [video] (youtube.com)
    1comments
  12. Alan Kay's answer to “Did the ENIAC have a BIOS”? (quora.com)
    40comments
  13. Self-Hosting on the Dark Web (alvarezrosa.com)
    68comments
  14. Lunar Terminator Paradox (secretsauce.net)
    47comments
  15. Was silent reading unusual during Augustine's time? (historyofinformation.com)
    29comments
  16. The state of SIMD in Rust in 2026 (shnatsel.github.io)
    33comments
  17. Guitar amp and effects pedal built on the Waveshare ESP32-S3-Touch-AMOLED-2.06 (github.com/dashersw)
    32comments
  18. Don't couple your Go code to GitHub (iain.rocks)
    108comments
  19. Deterministic Concurrency [video] (youtube.com)
    3comments
  20. There is more to code review than (automatable) detection (adaptivecapacitylabs.com)
    83comments
  21. Show HN: Lofi Cities – Pixel-art city nights with browser-generated lofi (loficities.com)
    112comments
  22. In an $80 motel room, a discovery to shed light on the origins of life (nytimes.com)
    92comments
  23. What I did at Recurse Center (thill.me)
    32comments
  24. Imp is a full port of DSPy to the BEAM (github.com/deepfates)
    7comments
  25. Reading’s Bayeux Tapestry (diamondgeezer.blogspot.com)
    17comments
  26. Replacing the old battery on rechargeable bike lights (jvns.ca)
    91comments
  27. Previously unheard recordings of John Coltrane, captured by Frank Tiberi (jazzwise.com)
    33comments
  28. Oral history of John Chowning, inventor of FM synthesis [video] (youtube.com)
    21comments
  29. Writing Efficient C++ Code (2013) (asawicki.info)
    118comments
  30. Packing Binary Is Fun (hereticpleb.vercel.app)
    4comments

Packing Binary Is Fun

18 pointsby 7h agohereticpleb.vercel.app
4 comments
3h agoHN ↗

Cool. And the next enlightening step would be to generate custom parser code from message schemas. So that when de-serializer reads a next field, it does not read what name and type it will be, it expects and fails if it's not. Safer and more compiler friendly.

3h agoHN ↗

Congratulations, your strings dont support Unicode and you just ignored probably more than 3/4 or more of the world's languages.

1h agoHN ↗

Schemas save you space, but then you lose the ability to understand the data without the schema. That's where JSON has always been handy despite its inefficiencies.

Of course you can get the same kind of thing in binary. I wrote a drop-in binary JSON replacement because it's easy to write a binary one that's twice as fast as simjson and yyjson. The important thing is to never give the drop-in replacement any extras that break roundtrip compatibility.

Was a fun little project to write, and quite useful for me: https://github.com/kstenerud/bonjson

55m agoHN ↗

Schemas save you space, but then you lose the ability to understand the data without the schema. That's where JSON has always been handy despite its inefficiencies.

Of course that’s orthogonal to using a text v binary representation, you can have a schema’d text format, and a self-describing binary format.

BSON, UBJSON, MessagePack and CBOR are binary but self-describing.