Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Claude Code now reads AGENTS.md if there is no Claude.md(claude.com ↗)
    159comments
  2. Android 17 is the first since 3.x to add new APIs without releasing to the AOSP(grapheneos.social ↗)
    208comments
  3. How OpenAI Used Its Own LLMs to Design Its Jalapeño Chip(ieee.org ↗)
    16comments
  4. Saving another 100TB of RAM(cloudflare.com ↗)
    36comments
  5. Cloudflare Quick Tunnels(cloudflare.com ↗)
    237comments
  6. Xcode 27.1 Beta Release Notes(developer.apple.com ↗)
    63comments
  7. Cache-to-Cache: Direct Semantic Communication Between LLMs (2025)(arxiv.org ↗)
    11comments
  8. Photon-Emission-Guided Laser Fault Injection Enables RP2350 Secure Debug(ledger.com ↗)
    47comments
  9. How to Write with an LLM(sockpuppet.org ↗)
    258comments
  10. A 1542 papal cipher cracked with simulated annealing(simonklee.dk ↗)
    1comments
  11. Show HN: Cactus Needle 3: 8-29MB automation models can match DeepSeek V4 Flash(cactuscompute.com ↗)
    74comments
  12. The first new cat species discovered in 100 years(nationalgeographic.com ↗)
    47comments
  13. OpenJev(openjev.com ↗)
    239comments
  14. Cyclomatic Complexity in C#(ndepend.com ↗)
    12comments
  15. Two parallel neural ectoderm progenitors contribute to the developing brain(newscientist.com ↗)
    51comments
  16. US troop deaths during Iran war exceed Pentagon count by at least four(reuters.com ↗)
    69comments
  17. The Implications of Linguistic Illegibility for LLM Security(arxiv.org ↗)
    17comments
  18. C++26: Trivial infinite loops are no longer undefined behaviour(sandordargo.com ↗)
    172comments
  19. Warez: The Infrastructure and Aesthetics of Piracy (2021)(archive.org ↗)
    14comments
  20. Minimal Phone 2(minimalcompany.com ↗)
    160comments
  21. Size-Specialized Memory Allocation(go.dev ↗)
    3comments
  22. Inside ZCode: Silently uploading your Git history to the cloud(ferstar.org ↗)
    89comments
  23. How SpaceX streamlined the Raptor engine(construction-physics.com ↗)
    28comments
  24. A search-and-inference database from scratch in pure Zig(antfly.io ↗)
    16comments
  25. I vibed a proof of Conway's conjecture(overreacted.io ↗)
    180comments
  26. From Geometry to Algebra and Back Again: 4000 Years of Papers (2023) [video](youtube.com ↗)
    discuss
  27. US Military had close call after using AI for hallucinated intelligence report(cnn.com ↗)
    291comments
  28. North Korean nuclear test sets off years of earthquakes(science.org ↗)
    150comments
  29. Korea raises data breach fines to 10% of revenue(koreajoongangdaily.com ↗)
    78comments
  30. Cekura (YC F24) Is Hiring(ycombinator.com ↗)
    discuss

Size-Specialized Memory Allocation

12 pointsby 1d agogo.dev
3 comments
1h agoHN ↗

Super interesting!

Fil-C's GC has basically always had size-specialized allocation and I've done some experiments with this so I have my own data.

As the post says, there are two potential benefits:

- Faster memory clearing when the compiler knows the size. In Fil-C, I leverage that by having LLVM emit a memset inline, so it often ends up being some SIMD crap.

- Faster size class computation.

Interestingly, the faster size class computation isn't really faster in practice. I implemented it and that's how the ABI works today, but I'm likely to move the size class computation into the runtime to simply the ABI, since repeated experiments show that there are no savings to be had there. It's super surprising, but the numbers don't lie.

Anyway, cool to see other fast non-moving GCs also finding the same sweet spot as me.

(Posted from WebKit built with Fil-C so for extra meta, I'm using the GC I describe to write this post)

1h agoHN ↗

Not sure that protobuf change is the same thing

But you might be right on your overall point: on my big x86 CPU, it doesn't matter, but it might matter on some tiny arm thingy