Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Linux support is coming to Snapdragon X2 Series(qualcomm.com)
    137comments
  2. Claude discovers a novel enzyme system with CRISPR-like repeats(anthropic.com)
    611comments
  3. Early rogue AI agent activity and attempts to hack found on urlquery.net(transluce.org)
    1comments
  4. Ideas on modernizing the open-source desktop(lwn.net)
    30comments
  5. ArXiv receives multiyear commitments to support it as an independent nonprofit(arxiv.org)
    16comments
  6. Feds Target AI Critics as "Foreign Agents"(kenklippenstein.com)
    218comments
  7. VSCode's SSH Agent Is Bananas (2025)(fly.io)
    119comments
  8. Contrastive Language Models(contrastive-lm.notion.site)
    5comments
  9. Making portable my unportable transputer C compiler(nanochess.org)
    4comments
  10. Meta VR Glasses(meta.com)
    304comments
  11. Virtio-nvgpu: Near-native Nvidia GPU access inside a KVM guest(github.com/nestrilabs)
    27comments
  12. The "Windows XP Box" (2003)(mini-itx.com)
    17comments
  13. Lazydraw: Terminal ASCII editor for drawing diagrams and sketches(github.com/mpospirit)
    1comments
  14. Fixing the Portobello Police Station Clock(pointinthecloud.com)
    95comments
  15. OpenAI breaches Medicare, Albanese reveals(smh.com.au)
    120comments
  16. Why 'What's Opera, Doc?' looks like that(animationobsessive.substack.com)
    2comments
  17. Mercury 2.5 LLM hits 770 tokens per second(artificialanalysis.ai)
    54comments
  18. Six-year-old breaks women's world Rubik's Cube record [video](youtube.com)
    11comments
  19. Making Tailscale Faster(tailscale.com)
    53comments
  20. Italian parliament votes for return to nuclear energy(apnews.com)
    458comments
  21. The mystery animal on an ancient god's head(signoregalilei.com)
    26comments
  22. Lambda MicroEgg(philipzucker.com)
    1comments
  23. Data liberation: Apache Kafka's native cluster mirroring(redhat.com)
    1comments
  24. A brief history of Windows scroll bar shortcuts(devblogs.microsoft.com/oldnewthing)
    68comments
  25. Tokens too cheap to meter(jyn.dev)
    192comments
  26. Show HN: An open-source manufacturing ERP/MES/QMS(carbon.ms)
    12comments
  27. Gemini 3.8 text-to-speech(blog.google)
    129comments
  28. LensVLM: Compressing long context as images, expanding only relevant pages(huggingface.co)
    7comments
  29. Solving for faster SHA-1 collision detection(sam.dev)
    5comments
  30. FLAWED's Flaws and What This Means for Industry Research(suhacker.ai)
    4comments

Making portable my unportable transputer C compiler

31 pointsby 2d agonanochess.org
4 comments
1h agoHN ↗

It's always a delight to read about your projects, Oscar. Every program is a jewel.

1h agoHN ↗

how does a debug file output 8GB+? Is it running for minutes/hours? Or is it in a format that uses a lot of rich text? I would assume a text file in hex or unicode wouldn't use very much.. Is there a way to create intervals of log files so they have a cap on the size?

1h agoHN ↗

It is a simple debugger log in the transputer emulator (enabled by compilation option) which outputs each instruction executed so far, around 70 bytes per line displaying the 3 registers, the stack pointer, the instruction pointer, and the disassembled instruction.

The emulated C compiler processed a whole file ccvars.c before getting stuck in ccinter.c (this is the 5gb mark, approximately 78 millions of instructions executed). I stopped the process as soon as I saw it was stuck, but the emulator is fast, and I got extra 3 gb in the log. All this happened in less than two minutes.

21m agoHN ↗

Another reminder of how easy it is to forget how ridiculously fast computers are these days (especially when you're like me and not writing stuff close to the metal for your day job).