Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Owed a billion dollars in Nvidia stock (colo.to)
    254comments
  2. Thinking fast and slow in AI: The role of metacognition (2021) (arxiv.org)
    22comments
  3. Ember-1 (fireworks.ai)
    205comments
  4. When did Google get so weird? (sancho.bearblog.dev)
    667comments
  5. Prompting Claude Opus 5.5 (claude.com)
    —discuss
  6. Malleable software: Restoring user agency in a world of locked-down apps (2025) (inkandswitch.com)
    27comments
  7. Functional Mechanical Sympathy [video] (youtube.com)
    —discuss
  8. Made by Mechanical Means (felixrieseberg.com)
    1comments
  9. Guitar amp and effects pedal built on the Waveshare ESP32-S3-Touch-AMOLED-2.06 (github.com/dashersw)
    25comments
  10. Alan Kay's answer to “Did the ENIAC have a BIOS”? (quora.com)
    39comments
  11. Self-Hosting on the Dark Web (alvarezrosa.com)
    54comments
  12. Was silent reading unusual during Augustine's time? (historyofinformation.com)
    21comments
  13. There is more to code review than (automatable) detection (adaptivecapacitylabs.com)
    73comments
  14. Don't couple your Go code to GitHub (iain.rocks)
    104comments
  15. The state of SIMD in Rust in 2026 (shnatsel.github.io)
    29comments
  16. Deterministic Concurrency [video] (youtube.com)
    2comments
  17. Show HN: Lofi Cities – Pixel-art city nights with browser-generated lofi (loficities.com)
    108comments
  18. What I did at Recurse Center (thill.me)
    32comments
  19. Reading’s Bayeux Tapestry (diamondgeezer.blogspot.com)
    13comments
  20. Imp is a full port of DSPy to the BEAM (github.com/deepfates)
    7comments
  21. In an $80 motel room, a discovery to shed light on the origins of life (nytimes.com)
    91comments
  22. Replacing the old battery on rechargeable bike lights (jvns.ca)
    90comments
  23. Previously unheard recordings of John Coltrane, captured by Frank Tiberi (jazzwise.com)
    33comments
  24. Oral history of John Chowning, inventor of FM synthesis [video] (youtube.com)
    21comments
  25. Writing Efficient C++ Code (2013) (asawicki.info)
    114comments
  26. Packing Binary Is Fun (hereticpleb.vercel.app)
    3comments
  27. An Antidote to Roko's Basilisk
    8comments
  28. A New Experiment Meta-Strategy (chillphysicsenjoyer.substack.com)
    1comments
  29. The Cartesian Hand: In-Hand Manipulation with All-Linear Fingers (generalroboticslab.com)
    12comments
  30. Fakecloud: Local AWS cloud emulator for integration tests (fakecloud.dev)
    68comments

Packing Binary Is Fun

13 pointsby 6h agohereticpleb.vercel.app
3 comments
2h 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.

2h agoHN ↗

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

34m 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