Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Android 17 is the first since 3.x to add new APIs without releasing to the AOSP(grapheneos.social ↗)
    21comments
  2. Cloudflare Quick Tunnels(cloudflare.com ↗)
    187comments
  3. Saving another 100TB of RAM with math (and Rust)(cloudflare.com ↗)
    5comments
  4. Apple releases iPhone Duo simulator and Xcode 27.1 beta(developer.apple.com ↗)
    3comments
  5. Photon-Emission-Guided Laser Fault Injection Enables RP2350 Secure Debug(ledger.com ↗)
    30comments
  6. Cache-to-Cache: Direct Semantic Communication Between Large Language Models(arxiv.org ↗)
    discuss
  7. Show HN: Cactus Needle 3: 8-29MB automation models can match DeepSeek V4 Flash(cactuscompute.com ↗)
    55comments
  8. OpenJev(openjev.com ↗)
    229comments
  9. North Korean nuclear test sets off years of earthquakes(science.org ↗)
    117comments
  10. US Military had close call after using AI for hallucinated intelligence report(cnn.com ↗)
    158comments
  11. The Implications of Linguistic Illegibility for LLM Security(arxiv.org ↗)
    4comments
  12. C++26: Trivial infinite loops are no longer undefined behaviour(sandordargo.com ↗)
    134comments
  13. Systemd is a suite of basic building blocks(systemd.io ↗)
    38comments
  14. I vibed a proof of Conway's conjecture(overreacted.io ↗)
    150comments
  15. Our brain evolved from two primitive nervous systems that merged: Study(newscientist.com ↗)
    22comments
  16. Show HN: Ax-check.com – Can agents use your product?(ax-check.com ↗)
    16comments
  17. The first new cat species discovered in 100 years(nationalgeographic.com ↗)
    9comments
  18. Border agents can search cellphones without a warrant or reasonable suspicion(lawandcrime.com ↗)
    34comments
  19. Inside ZCode: Silently uploading your Git history to the cloud(ferstar.org ↗)
    83comments
  20. A heap overflow and SSO misconfiguration to compromise OpenAI internal repos(hacktron.ai ↗)
    192comments
  21. Minimal Phone 2(minimalcompany.com ↗)
    78comments
  22. Cekura (YC F24) Is Hiring(ycombinator.com ↗)
    discuss
  23. How SpaceX streamlined the Raptor engine(construction-physics.com ↗)
    5comments
  24. Warez: The Infrastructure and Aesthetics of Piracy (2021)(archive.org ↗)
    5comments
  25. Mathematicians Build Long-Awaited Graph Sandwich(quantamagazine.org ↗)
    12comments
  26. How to Write with an LLM(sockpuppet.org ↗)
    209comments
  27. A search-and-inference database from scratch in pure Zig(antfly.io ↗)
    5comments
  28. Show HN: Scry, programmable internet search w/ congestion pricing(scry.io ↗)
    12comments
  29. Jemalloc 5.4.0(github.com/jemalloc ↗)
    79comments
  30. I don't like passkeys(hawksley.dev ↗)
    641comments

Why Not Just Use JSON?

2 pointsby 5y agopreserves.gitlab.io
1 comments
5y agoHN ↗

This is the first time I've seen Preserves and I appreciate that! I've written something much simpler before [1] and understand that the specification writing is a huge undertaking. Please allow me to ask some quick questions (which answer I may have read but missed):

- Given the popularity of JSON among others, you will be almost certainly in need of the explicit JSON encoding of Preserves data model. Probably also others.

- Why a separate binary syntax? Unlike the textual format and semantics I don't see much value in yet another binary serialization format, given CBOR seems moderately successful and does have a well-defined data model. It seems that CBOR plus some already registered tags suit the needs for binary Preserves.

- It is fragile to base the textual syntax on an unspecified Unicode version. ECMAScript specifies the minimum required version (ES5 requires 3.0.0, ES2015 requires 5.1 and ES2016 requires 8.0) and XML (and also CSON) specifies identifier syntax in the way that the future version of Unicode doesn't invalidate that. I believe the latter is more suited for serialization uses.

[1] https://github.com/lifthrasiir/cson