New stories

Live mirror
30 storiesupdated 0s agoView source snapshot
  1. Interview with Paul Bogen [video](youtube.com ↗)
    discuss
  2. Divide, Consult, Conquer: Capability Laundering Through Aligned LLMs(arxiv.org ↗)
    discuss
  3. Singapore launched a novel five-year national campaign to nurture reading habits(cnn.com ↗)
    discuss
  4. Biom – A visual workspace where your AI agents' work lands(biom.dev ↗)
    discuss
  5. Hackaday Europe 2026: Bare Metal Made Easy(hackaday.com ↗)
    discuss
  6. Show HN: Plurnk (Yet *Another* AI Harness)(github.com/plurnk ↗)
    discuss
  7. Independent Lens – Ghost in the Machine: AI's troubled history, current impacts(pbs.org ↗)
    1comments
  8. Ask HN: Who has been contacted by 5+ hiring platforms?
    3comments
  9. Is There Anything Google's Fruit Fly Brain Can't Do?(nytimes.com ↗)
    discuss
  10. Callum Williams on Cybersecurity Prices(marginalrevolution.com ↗)
    discuss
  11. Probably the best laptop with Linux support and Local LLM AI [video](youtube.com ↗)
    discuss
  12. Atlas-Finance: Evaluating AI Agents Inside a Bank(joinhandshake.com ↗)
    1comments
  13. Disney's Films Used to Look Different(animationobsessive.substack.com ↗)
    discuss
  14. 1F3D9: A world where anyone's AI agent can go to live without humans(1f3d9.com ↗)
    2comments
  15. Nobody Needs a Human Router(theengineeringmanager.substack.com ↗)
    discuss
  16. Show HN: Agenttik – work on multiple projects in parallel with AI agents(github.com/pausan ↗)
    discuss
  17. Faraday Security Enforcing and HyDE Recall(medium.com/vektormemory ↗)
    discuss
  18. Show HN: Open-source tool to sell your Claude Code and Codex sessions(github.com/cookiy-ai ↗)
    1comments
  19. Moving coding-agent guardrails from prompts to hooks(tesseracted-labs-blog.vercel.app ↗)
    discuss
  20. Intel TDX Remote Attestation Verifier Without Intel Trust Authority(zatona.dev ↗)
    discuss
  21. Saving Jet Fuel(marksblogg.com ↗)
    3comments
  22. Ask HN: Why serialize documents to disk instead of memory-mapping runtime state?
    2comments
  23. The Ex-Cop Who Stole Millions to Become a Real-Life Robin Hood(atavist.com ↗)
    discuss
  24. "The Secret Life of Circuits" is here(coredump.cx ↗)
    discuss
  25. Astra's chess reward hacking fell from 30% to 0% with a 95-word agreement(echohive.ai ↗)
    discuss
  26. Gravity Linux – Linux for Apple Silicon M4 and Above(gravitylinux.org ↗)
    2comments
  27. Clarity Act Stalls in Senate as Crypto Bill Fails to Clear Key Vote(decrypt.co ↗)
    discuss
  28. Update Security Baseline: Hardening Ubuntu Desktop 24.04/26.04 LTS(github.com/eugexo ↗)
    discuss
  29. Introduction Video Gen in Img Play(apps.apple.com ↗)
    discuss
  30. Google Project Genie. Explore infinitely diverse worlds(labs.google ↗)
    discuss

Ask HN: Why serialize documents to disk instead of memory-mapping runtime state?

2 pointsby 55m ago
2 comments
Opening files like docx requires heavy string parsing and pointer allocation. After an OS swaps active RAM pages out as to flash disk as virtual memory, it can restore them almost instantly. Using 2X more flash disk space is worth if we can achieve millisecond loads. Why hasn't direct memory dumping/reloading replaced file parsing for complex document models?

I started a company in 2000 to build a commercial cross-platform desktop suite in Java. To achieve seamless live-data-linking across text, sheets and slides, we stored data objects into a 3D coordinate space (Sheet_Num,Row_Num,Column_Num) and reference/access them instead of pointers. This scheme enable us open a 50,000-pages document in 8 seconds, compared to 300+ seconds by a competing suite requiring parsing andan array of pointer construction.

Recently, some suggested that our 3D design without referencing data by pointers can possibly use OS provided mmap to restore back the entire document image as loaded into the RAM to flash disk. Instead of opening the file again with all those parsing/pointer-building work, the memory mapped buffers can be simply be brought back into RAM in milliseconds.

Our senior engineers have confirmed the feasibility and tries to prove it, but, they have encountered numerous problems to save using OpenJDK and CRaC on Linux. They told me that OpenSDK has stated that it can be done but probably did not test this part thoroughly because they never expected it be actually used.

Has any one successfully decouple a complex document substrate into off-heap memory to achieve true zero-copy mmap load or does the JVM runtime always get in the way?

36m agoHN ↗

So we can share them with each other? Are we going to pass around memory dumps instead? What about tool choice when working on a specific document format?

17m agoHN ↗

Serializing has many uses.

- Memory might not look the same on all platforms, if your app is multi-platform you stop being able to share your data cross-platform.

- The internal data structures of your app will absolutely change as your app evolves, the binary data in memory is a raw result of your data structures. So you have to commit to never changing data structures, or create complicated binary migration tools to update memory when your app updates.

- Debugging corrupted memory is incredibly tedious any sometimes impossible. Having plain text serialized data makes debugging much more straightforward.

Top my my head I would suggest to focus more on improving performance on your serialization pipeline. There might be some subset of your data that is unlikely to ever change and is identical on all platforms, maybe your serializer is hybrid in that case.